Dynamic HTML formatting

Hello all,
So I am bringing in a blog post via xml/rss feed to the clients website. Everything is working beautifully except for the formatting. I can get it to look like I want it on my end if I ascribe a TextFormat element however, I would very much like to keep the formatting that the user specifies when they create a new blog.
How is this done?
Thanks in advance,
BAM

Hi Kglad,
Thanks for your prompt respose...
So, I think I am using the htmlText method:
info_txt.htmlText = reader.episodes[episode_cb.selectedIndex].description;
but still when the text shows up it is all clumped together in one, non-indented paragraph. No line breaks, no colors but what the textField is assigned... etc.
As far as a parser goes I wouldn't even know where to begin with that.
Thanks.

Similar Messages

  • JSP tags; html formatting problem

    Hi,
    I've implemented a jsp custom action which supports several enclosed tags in like this:
    <%@ taglib ..... prefix="myprefix" %>
    <myprefix:myTag ... >
    <myprefix:myNestedTag ... />
    <myprefix:myNestedTag ... />
    </myprefix:myTag>
    I have three classes to manage this stuff:
    * class MyTag
    * class MyNestedTag
    * class MyNestedTagParent (interface implemented by the MyTag tag handler) that contains following lines:
    =======================================================
    public int doEndTag() throws JspException {
    Enumeration enum = tabs.elements(); // tabs is a vector of // parameters names and values
    try {
         HttpServletResponse res = (HttpServletResponse) pageContext.getResponse();
         JspWriter out = pageContext.getOut();
         out.println("SOME HTML DIRECTIVES"); // shows html formatted page OK
         out.println("<%@ include file=\"page.jsp\"%>"); // shows <%@ include.......
         out.println("<jsp:include page=\"page.jsp\" />"); // shows nothing
         // "View Page Source" shows a correct code, if I do copy/paste into another jsp file and ask it in the browser window, all works as I wish!
    =======================================================
    The myTag action is supposed to form an html response and send it to the browser. As long as this action sends pure html response (only html tags) things go well, I get a page formatted depending on the myTag and myNestedTag parameters.
    However, when I try to send a jsp directive, it is not processed but sent directly to the browser. Namely, I want to include the
    <jsp:include page="page.jsp" flush="true" />
    in the response and the browser ignores this directive as if it was an unknown HTML tag. If I send
    <%@ include file="page.jsp" %>
    I see this line as is, not processed.
    I can't find a way to avoid this. And I can't find a way to avoid using INCLUDE because the part of the response has to be dynamically processed.
    Does anyone have any idea? A way to avoid using JSP directives doesn't seem possible to me, because a part of the response must be generated dynamically with the JSP methods. Anyway, if you have ideas...
    Thankfully,
         Nathaniel.

    out.println("<%@ include file=\"page.jsp\"%>"); //The jsp page needs to be compiled by the app server, before you send the response back to the client. What this means is that you can't send your jsp page as a response before it's compiled, as you're trying to do. What you can try doing is using the response stream to redirect to the jsp page like this: response.sendRedirect("page.jsp");.
    I can't find a way to avoid this. And I can't find a way to avoid >using INCLUDE because the part of the response has to be dynamically >processed.You can create the response dynamically, based on user inout etc. but processing it dynamically soen't make sense. You should process the request from the client, create the response and send the response back to the client.
    Regards,
    D.

  • Enhancing all standard texts to accept HTML format message

    Hello every one,
    Please help me with your inputs in my requirement.
    The user basically requires enhancing all standard texts to accept HTML format message being sent to recipients.
    Can you please let me know how can this be achieved?
    Thanks in Advance.
    Jayant Sahu.

    OK, I figured it out. Here's the silly key item:
    You must have a dynamic text field with embedded fonts in
    every font you might use with the html tags!
    Who would've thought. I added additional fields to my file
    (off the stage) with "foo" set to verdana bold, verdana italic, and
    verdana bold italic and embedded Basic Latin. Now it works.
    Thanks for your help.

  • How to convert table content into html format?

    Hi,
    Experts,
    How to convert internal data into HTML format is there any function module or piece of code to download content into HTML.
    Thank u,
    Shabeer Ahmed.

    Then use this code....
    REPORT  ytest_table_html1.
    *        D A T A   D E C L A R A T I O N
    *-HTML Table
    DATA:
      t_html TYPE STANDARD TABLE OF w3html WITH HEADER LINE,
                                           " Html Table
    *- Declare Internal table and Fieldcatalog
      it_flight TYPE STANDARD TABLE OF sflight WITH HEADER LINE,
                                           " Flights Details
      it_fcat TYPE lvc_t_fcat WITH HEADER LINE.
                                           " Fieldcatalog
    *-Variables
    DATA:
      v_lines TYPE i,
      v_field(40).
    *-Fieldsymbols
    FIELD-SYMBOLS: <fs> TYPE ANY.
    *        S T A R T - O F - S E L E C T I O N
    START-OF-SELECTION.
      SELECT *
        FROM sflight
        INTO TABLE it_flight
        UP TO 20 ROWS.
    *        E N D - O F - S E L E C T I O N
    END-OF-SELECTION.
    *-Fill the Column headings and Properties
    * Field catalog is used to populate the Headings and Values of
    * The table cells dynamically
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name       = 'SFLIGHT'
        CHANGING
          ct_fieldcat            = it_fcat[]
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2.
      DELETE it_fcat WHERE fieldname = 'MANDT'.
      t_html-line = '<html>'.
      APPEND t_html.
      CLEAR t_html.
      t_html-line = '<thead>'.
      APPEND t_html.
      CLEAR t_html.
      t_html-line = '<tr>'.
      APPEND t_html.
      CLEAR t_html.
      t_html-line = '<td><h1>Flights Details</h1></td>'.
      APPEND t_html.
      CLEAR t_html.
      t_html-line = '</tr>'.
      APPEND t_html.
      CLEAR t_html.
      t_html-line = '</thead>'.
      APPEND t_html.
      CLEAR t_html.
      t_html-line = '<table border = "1">'.
      APPEND t_html.
      CLEAR t_html.
      t_html-line = '<tr>'.
      APPEND t_html.
      CLEAR t_html.
    *-Populate HTML columns from Filedcatalog
      LOOP AT it_fcat.
        CONCATENATE '<th bgcolor = "green" fgcolor = "black">'
            it_fcat-scrtext_l
            '</th>' INTO t_html-line.
        APPEND t_html.
        CLEAR t_html.
      ENDLOOP.
      t_html-line = '</tr>'.
      APPEND t_html.
      CLEAR t_html.
      DESCRIBE TABLE it_fcat LINES v_lines.
    *-Populate HTML table from Internal table data
      LOOP AT it_flight.
        t_html-line = '<tr>'.
        APPEND t_html.
        CLEAR t_html.
    *-Populate entire row of HTML table Dynamically
    *-With the Help of Fieldcatalog.
        DO v_lines TIMES.
          READ TABLE it_fcat INDEX sy-index.
          CONCATENATE 'IT_FLIGHT-' it_fcat-fieldname INTO v_field.
          ASSIGN (v_field) TO <fs>.
          t_html-line = '<td>'.
          APPEND t_html.
          CLEAR t_html.
          t_html-line = <fs>.
          APPEND t_html.
          CLEAR t_html.
          t_html-line = '</td>'.
          APPEND t_html.
          CLEAR t_html.
          CLEAR v_field.
          UNASSIGN <fs>.
        ENDDO.
        t_html-line = '</tr>'.
        APPEND t_html.
        CLEAR t_html.
      ENDLOOP.
      t_html-line = '</table>'.
      APPEND t_html.
      CLEAR t_html.
    *-Download  the HTML into frontend
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = 'C:\Flights.htm'
        TABLES
          data_tab                = t_html
        EXCEPTIONS
          file_write_error        = 1
          no_batch                = 2
          gui_refuse_filetransfer = 3
          invalid_type            = 4
          no_authority            = 5
          unknown_error           = 6
          header_not_allowed      = 7
          separator_not_allowed   = 8
          filesize_not_allowed    = 9
          header_too_long         = 10
          dp_error_create         = 11
          dp_error_send           = 12
          dp_error_write          = 13
          unknown_dp_error        = 14
          access_denied           = 15
          dp_out_of_memory        = 16
          disk_full               = 17
          dp_timeout              = 18
          file_not_found          = 19
          dataprovider_exception  = 20
          control_flush_error     = 21
          OTHERS                  = 22.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    *-Display the HTML file
      CALL METHOD cl_gui_frontend_services=>execute
        EXPORTING
          document               = 'C:\Flights.htm'
          operation              = 'OPEN'
        EXCEPTIONS
          cntl_error             = 1
          error_no_gui           = 2
          bad_parameter          = 3
          file_not_found         = 4
          path_not_found         = 5
          file_extension_unknown = 6
          error_execute_failed   = 7
          synchronous_failed     = 8
          not_supported_by_gui   = 9
          OTHERS                 = 10.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    none of the above function modules r obsolete...

  • Idoc-xi-file scenario.  how to display file in html format

    I am not sure whether this is a valid question.........but want to confirm as it was asked by somebody
    In idoc-xi-file scenario.......  how to display file in html format ??
    Thanks in advance
    Kumar

    Hi Vijayakumar,
    Thanks for your reply !! You mean to say I got to use XSLT mapping and also .htm and .html extension together to produce the html file ?? or it is sufficient to use any one of them to produce the html file ??
    Regards
    Kumar

  • PZ11 - REM Statement in HTML format in ESS

    Hi
    Can we display the Remuneration statement in HTML format instead of the PDF format in ESS? If yes, how do we do that ?
    Currently our system is converting the smart_form to PDF and displaying in the PDF through PZ11 transaction.
    Thanks

    Hi VAB
    You need to call BAPI  BAPI_GET_PAYSLIP_HTML (FM) to meet your business requirement.
    The conversion from ABAP-listobject to HTML will be done via function module WWW_HTML_FROM_LISTOBJECT
    Also please notice: Note 425548 says that we must "adapt our list" so that it's layout is
    similar to an HTML table. The ESS documentation for renumeration statement says that if we change the form we must also change the HTML templates. The HTML appears to be generated from the form by a "converter routine". Documentation refers to templates HR_PAY_PAYSLIP and HR_PAY_PAYSLIP_PAGE for building the renumeration statement. using SMW0 to see them.
    Regards,
    Jun

  • Physical page is not the same in HTML format

    I am using Oracle 6i to develop some reports. While running this reports using the developer, the logical page is the same size as the physical page.
    When generating the same reports in HTML format the physical pages do not seem to be the same as the logical pages, since the contents of one page is being printed in two pages, whereas using the developer the report will print only in one page. I look at the Layout Model properties and I have set it in the following way :
    Layout Main Section
    Width : 8.5
    height : 11
    Horizontal Panels per PAge 1
    VErtical Panels per page : 1
    Orientation Default
    Report Width : 80
    Report Height : 66
    Any Help will be appreciated

    Open you QuickTime movie, go to window and select Show movie properties, select videotrack and change Transperancy (low left) and select Composition in stead of "none - allow dithering" from the drop menu. See if this helps.

  • Service cannot be reached while sending a smart form in html format

    Hello,
    I'm trying to send a smart form as email in html format and I'm getting the following error message at the beginning of the message:
    Service cannot be reached
    What has happened?
    URL http://localhost/SAP/BC/BSP/SAP/SMART_FORMS/DEFAULT.CSS call was terminated because the corresponding service is not available.
    Note
    The termination occurred in system XD1 with error code 403 and for the reason Forbidden.
    The selected virtual host was 0 .
    What can I do?
    Please select a valid URL.
    If you do not yet have a user ID, contact your system administrator.
    Error code:ICF-NF-http-c:100-u:MYUSER-l:D-i:my_test_system:0-s:403-r:Forbidden
    HTTP 403 - Forbidden
    Your SAP Internet Communication Framework Team
    .SYSTEM div#B.par{ font-family : "Courier New" ; font-size : 12pt ; font-weight : normal ; line-height : 4.23mm ; text-decoration : none ; text-align : justify ; clear : both ;}.SYSTEM div#L.par{ font-family : "Courier New" ; font-size : 12pt ; font-weight : normal ; line-height : 4.23mm ; text-decoration : none ; text-align : left ; clear : both ;}.SYSTEM a.SYSTEM span#H.char{ font-weight : bold ;}.SYSTEM span#I.char{ font-style : italic ;}.SYSTEM span#U.char{ text-decoration : underline ;}#PAGE1-001.page@media screen {#MAIN.win{ overflow : auto ;}}@media print {#MAIN.win{ overflow : hidden ;}}#PAGE1-001.page #MAIN.win.AGGR-BILL div#B.par{ font-family : "Arial" ; font-size : 12pt ; font-weight : normal ; line-height : 4.23mm ; text-decoration : none ; text-align : justify ; clear : both ;}.AGGR-BILL div#F.par{ font-family : "Arial" ; font-size : 8pt ; font-weight : normal ; line-height : 3.39mm ; text-decoration : none ; text-align : left ; clear : both ;}.AGGR-BILL div#L.par{ font-family : "Arial" ; font-size : 12pt ; font-weight : normal ; line-height : 4.23mm ; text-decoration : none ; text-align : left ; clear : both ;}.AGGR-BILL div#R.par{ font-family : "Arial" ; font-size : 12pt ; font-weight : normal ; line-height : 4.23mm ; text-decoration : none ; text-align : right ; clear : both ;}.AGGR-BILL a.AGGR-BILL span#H.char{ font-family : "Arial" ; font-size : 12pt ; font-weight : bold ;}.AGGR-BILL span#I.char{ font-family : "Arial" ; font-size : 12pt ; font-style : italic ;}.AGGR-BILL span#K.char{ font-family : "Arial" ; font-size : 8pt ;}.AGGR-BILL span#M.char{ font-family : "Arial" ; font-size : 10pt ;}.AGGR-BILL span#U.char{ font-family : "Arial" ; font-size : 12pt ; text-decoration : underline ;} div#PROJEKTE.tab@media screen { div#PROJEKTE.tab table.tr{ border-collapse : collapse ;}}@media print { div#PROJEKTE.tab table.tr{ border-collapse : collapse ;}}@media screen { div#PROJEKTE.tab table.tr{ margin-top : -1px ;}}@media print { div#PROJEKTE.tab table.tr{ margin-top : 0px ;}} div#PROJEKTE.tab table.tr div#PROJEKTE.tab .topline{ border-top : 1pt solid black ;} div#PROJEKTE.tab .bottomline{ border-bottom : 1pt solid black ;} div#PROJEKTE.tab .leftline{ border-left : 1pt solid black ;} div#PROJEKTE.tab .rightline{ border-right : 1pt solid black ;}#PROJEKTE.tab #sf--LTYPE1.tr td#C1
    and here comes the email's body: bla,bla,bla... bla.
    Do you have any idea how can I solve the problem with the css file? Any suggestion is welcome!
    Regards,
    Jaime

    I just solved the problem by activating the service  /SAP/BC/BSP/SAP/smart_forms/ through the transaction SICF. So I close the thread!
    Jaime

  • HTML format report for Daily basis Oracle Database health Checkup

    Hi All,
    Can anyone provide me the script which I can schedule in BAT file to run againt all the database and gather most of the health check related data and present the same in HTML format.
    Regards,
    Sphinx

    Hi,
    Database Health report can be obtain from my below link:
    http://rafioracledba.blogspot.com/search/label/DBA%20Daily%20activities
    It is a detailed one.Make use of point 20 in the above link to get the report you want.Hope it helps.
    Best regards,
    Rafi.
    http://rafioracledba.blogspot.com

  • Unable to receive email in HTML format on BB Torch 9860 with BIS

    I recently purchased BB Torch 9860 with OS 7 and configured by personal and work email on BIS. I am receiving emails only in text format. In some emails with images that have hyperlink, I just see a link and images not displayed. All the images comes as an attachment in the email. My friend having another BB Torch is able to view emails as HTML. But he is with BES. 
    Is there any solution for my issue? I am not receiving any options in the email preference to enable HTML format for emails.
    Appreciate if anyone could help me with this.
    Regards,
    Midhun

    Hi Midhun,
    Welcome to the Community
    To help you with the issues you're having, on your Blackberry go to your mailbox, press menu, choose options, then Email Preferences and check the box for Enable HTML Email, Download Images Automatically and Confirm External Image Download. The screen may look like the screenshot below:
    For more information please check these links:
    Blackberry Tips and Tricks
    Blackberry 101
    Enjoy!
    Ron
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up Blackberry Battery Saving Tips | Follow me on Twitter

  • Report can't fix all in HTML format

    Hi all,
    I got the report 6i patch 15 installed and try to generate the report into html format. But when generated, it seem like what you see is not what you get on print out. The report can' fix all in html format. But the same report I can view in PDF format without any problem. But just b'cos in the PDF format where I hv generated the graph can't really see all the color pattern and shading and that is why I switch to html cause I can see a nice pattern in the graph there but again I can't fix all my output in one piece of A4 paper.
    My report width is 180 character but it seem that only show 132 character in the report.
    desformat= htmlcss
    Rgds
    Lim

    Here you go:
    There are times where you’ll want to manually set your IP address in Mac OS X, so how do you do it?
    * Launch ‘System Preferences’ from the Apple menu (or Spotlight)
    * Click on the “Network” icon
    * In the lower right, click on the ‘Advanced’ button
    * In the pulldown menu next to “Configure IPv4″ select “DHCP with manual address"
    * Fill in the IP address, subnet mask, and router, as appropriate to the network you are accessing
    * Click ‘OK’
    * Click ‘Apply’
    Find out what is there first. You need to find out what you IP address is there.  Remeber you are only changing your laptop/desktop.  Nothing else.  You are only changing the last digits(numbers) in the very first box at the end.  Example: 192.168.1.XX or 192.168.0.XXX.  You may want to write the other numbers down, once you change it to manually the rest goes blank until you fill it in again then , click ok, apply. Hope it works for you

  • Freeze Spreadsheet header in Web Analysis Report (HTML format)

    Hello,
    I want to know if there is any way to freeze the spreadsheet header in Web Analysis. I know it can be done if the report is opened through Web Analysis Studio. However, when the user opens it in HTML format, the header will not be freeze.
    We are using 9.3.1
    Thanks,
    Andy
    Edited by: user642800 on Jun 4, 2009 1:22 PM

    I don't believe you can do this. We ran into the same issue last summer and it left our long scrolling dashboards useless as you couldn't see what row you were looking at once the row headers had left the screen. We talked about having some dashboards launch from workspace and others from Web Analysis but this was messy and we wanted them to one-stop shop in Workspace.
    The answer for us was to put a Check Box on the right hand side and the users only select the amount of members that fill up their screen. For instance, if we had 20 columns of data (accounts or scenarios) and only 5 were visible at one time, they would only select 5 to view at any given time.
    As far as column headers, we haven't had any complaints when those leave the screen.
    This was a huge issue for us but luckily we came up with a workaround that seems to have worked for all of our users thus far.
    Mike

  • BI Publisher Report Issue in 11G(HTML format)/ OBIEE 11.1.1.7 version

    Hi All,
    I have migrated reports from 10g to 11g. Issue i am facing is that "reports open in HTML format by default & reports alignment has been distorted in 11g".
    Also if i change the format to PDF ,its working fine.
    I am not able to figure it out where exactly the issue lies as all the parameters,layout & query are fine.
    Thanks.
    Saurabh

    Hopefully this blog article by Tim Dexter will help: http://blogs.oracle.com/xmlpublisher/2007/01/formatting_html_with_templates.html
    Thanks!

  • Jasper Report in HTML format

    Hi
    When I try to open the jasper report on browser ,It displays
    the report but not clear.The image does not display on the client.
    below is my code ,please help me......
    MY Code:
    /*3 Preview in HTML format */
    File imagedir=null;
    JRHtmlExporter exp = new JRHtmlExporter();
    StringBuffer sbuf = new StringBuffer();
    exp.setParameter(JRHtmlExporterParameter.JASPER_PRINT, print);
    exp.setParameter(JRHtmlExporterParameter.OUTPUT_STRING_BUFFER, sbuf);
    exp.setParameter(JRHtmlExporterParameter.IMAGES_DIR,imagedir);
    exp.exportReport();
    out.print(sbuf.toString());
    Thanks
    By sathesh

    Alright there is a dedicated ImageServlet(provided in jasper reporting framework) which is used to Link Static image content along with your HTML report content.
    and here is how you have to do it is ??
    is by setting few parameters for JRExporter Object and making use of image servlet provided under jasper libraries.
    ImageServlet configurations in web.xml:
    <servlet>
            <servlet-name>ImageServlet</servlet-name>
            <servlet-class>
                net.sf.jasperreports.j2ee.servlets.ImageServlet
            </servlet-class>
    </servlet>
    <servlet-mapping>
            <servlet-name>ImageServlet</servlet-name>
            <url-pattern>/imageServlet</url-pattern>
    </servlet-mapping>Html Exporter code..
    JRExporter exporter = null;
    JasperPrint jasperPrint = null;
    Connection conn = null;
    String sourceFile = ReportService.getReportSourceFile(request);
    Map map = ReportService.getParameterMap(sourceFile,request);
    String contentType = ReportService.getContentType(sourceFile,request);
    if(contentType.startsWith("text/html")){
    PrintWriter printWriter = response.getWriter();
    try{
       /* Fetching Connection from a Connection Pool VIA a service*/
      conn = DbUtils.getConnection();
      /* Creating a JasperPrint Object*/
      jasperPrint = JasperFillManager.fillReport(sourceFile,map,conn);
    exporter = new JRHtmlExporter();                          
      request.getSession().setAttribute(ImageServlet.DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE, jasperPrint);
       /* printWriter here is a reference for  response.getWriter() */
      exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
      exporter.setParameter(JRExporterParameter.OUTPUT_WRITER,printWriter);                  
      // gonna set url pattern given for Image servlet with a reponse parameter <url-pattern>/imageServlet</url-pattern> 
      exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI,"imageServlet?image=");              
       response.setContentType(contentType);
       /* Would write the HTML content to ServletStream Provided */
      exporter.exportReport();
    }catch(Exception exp){
         exp.printStackTrace();
    }finally{
      try{
         if(conn != null && !conn.isClosed())
           conn.close();
      }catch(Exception ep){
         ep.printStackTrace();
      }finally{
           conn = null;
           sourceFile = null;
           map = null;
    }For any other issues with report format and others try to go through my post.However, you might have to edit your customized settings in terms of image rendering problems or to some customized implementations.
    http://forum.java.sun.com/thread.jspa?threadID=5203324&messageID=9811077
    Hope that might help :)
    REGARDS,
    RaHuL

  • How to export the report in HTML format for desktop application

    Hi,
    i have wrote the JRC desktop application to export the report and i am able to export it in PDF and other formats as mentioned in "ReportExportFormat" API.
    i would like to know is there any API there which can export the report in HTML format.
    i know it would be possible with web based application of JRC, but how can i do it in desktop application?

    There's no mechanism for static HTML pages that displays the report.
    You can use the CrystalReportViewer DHTML viewer, but that's 'interactive'.
    Sincerely,
    Ted Ueda

Maybe you are looking for