HTML Conversion

Hello,
I have written a simple ABAP program  which produces a summary list. I am now
trying to convert this list into an HTML output.
I am using the FM  WWW_LIST_TO_HTML, which seems to be working fine.
However, when I look at the html output file I see that there are lots of
<b>&nbs p</b> all over the place. I know that <b>&nbsp</b> represents a non breaking
space in html. But why are they in the output? and why does it print the extra
space between the 's' and 'p'
Any ideas anyone????
Thanks
Andy

Hi andy,
                check the FM's
WWW_HTML_FROM_LISTOBJECT" to covernt the data from internal table to html
ITS_GENERATE_HTML_FROM_DYNPRO.
Regards

Similar Messages

  • Smartform to HTML conversion

    Hi,
    I need to convert Smartform data stream into HTML format and
    pass the same to Webdynpro application where it will be displayed on the browser.
    I have specified Smartform output format as 'XSF output+HTML'.
    Use of BSP application is ruled out due to certain limitations.
    The FM ‘CONVERT_OTF’ returns data in ASCII or PDF format only.
    Can any one tell some Function Module name to convert
    Smartform data to HTML format or any other way out?
    thanks.

    check out this link
    Smartform to HTML conversion
    thnks
    jaideep
    *reward points if useful

  • HTML Conversion Error

    I just installed Kablink Teaming 2.1 on SLES11_X64 and can not view uploaded files. I get the following error.
    HTML Conversion Error
    Error: com.sun.star.connection.NoConnectException: java.net.ConnectException: Connection refused
    I checked and made sure I was pointing to the right place for fonts, and all my folders had correct rights. Everything looks good, and I can download the files, I just can't use the view feature.
    Any help?

    There is information about WebDAV and edit-in-place using various
    versions of Office on Windows 7 in the Novell Teaming 2.1 readme. You
    might want to check that out, if you haven't already.
    In terms of using Novell's OO edition for document conversion, it's my
    experience that Novell's version of OO installed on Linux does not
    contain all the features of OO regarding document conversion.
    Specifically, the installation guide has a section entitled "Installing
    OpenOffice.org as the Document Converter for Teaming" that talks about
    when running the OO installer, to use the custom option and select ALL
    optional components. Some of these components are additional conversion
    handlers for OO that have not been included in the version of OO Novell
    includes with Linux.
    Having said that, you are correct in pointing out that the Stellent
    converters used in Novell Teaming provide a much richer set of
    converters than does OO used with Kablink Teaming. That's one of the
    benefits of the Novell Teaming product vs. Kablink Teaming.
    MacWiz.
    On 3/29/10 3:06 PM, csday wrote:
    >
    > I made a lot of changes and fixes over the weekend and found out some
    > differences between teaming and kablink. I am running MS office 2k7 on
    > top of Win7. Edit does not work correctly unless you download the MS
    > office web managment pack from early May, and I found out that I must
    > run the different office app's i.e "word, excel, etc.." in compatibility
    > mode "winxpsp3". That is fine and dandy except that doing that broke my
    > ability to open office files on my local workstation. With office 2k3
    > on xp it works great with no issues. I did get the OpenOffice server
    > running and the only thing that fixed was viewing my .doc and .xls
    > files, I could not view files uploaded from office 2k7 in xml form. If
    > I could find OpenOffice Novell edition for Linux, I am sure it would
    > work fine.
    >
    > I am not sure what to do with my Win7 machines running Office 2007, the
    > changes required to make it work with teaming seem to break other
    > functions of the app. Right now I am running Novell Teaming and Kablink
    > side by side to see which is going to be a better fit for us. One big
    > pro for Novell Teaming is I can view visio's and all office types to
    > include xlm format, I'm sure OO novell edition will fix that, but
    > OpenOffice won't be able to view those visio's.
    >
    >

  • RTF to HTML conversion - Non-English Text

    Hello,
    I am trying to convert a RTF file to a HTML file. Below is the code that I am using. I am not able to convert non-english text properly (German, French, Swedish etc). I like to know the proper way of doing this and if there is a more efficient way of doing this conversion in general (It is taking around 1 minute for this to complete on a 300 MHz, 320 MB iBook). Thanks.
    Regards
    Sarat
    Code Begins
    public class FormatConverter {
    private DefaultStyledDocument tempRTFDoc;
    private HTMLEditorKit htmlKit;
    private RTFEditorKit rtfKit;
    public FormatConverter () {
    tempRTFDoc = new DefaultStyledDocument();
    htmlKit = new HTMLEditorKit();
    rtfKit = new RTFEditorKit();
    public String convert(String strText) {
    String strResult = "";
    StringReader reader = new StringReader(strText);
    try {
    tempRTFDoc.remove(0,tempRTFDoc.getLength());
    rtfKit.read(reader,tempRTFDoc,0);
    ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
    htmlKit.write(byteArrayOutputStream,tempRTFDoc,0,tempRTFDoc.getLength());
    strResult = byteArrayOutputStream.toString();
    catch(IOException ie){}
    catch(BadLocationException ble){}
    return strResult;
    public static void main(String args[]) {
    // Read the rtf file from disk
    FileInputStream in = null;
    try {
    in = new FileInputStream("sample.rtf");
    } catch (java.io.FileNotFoundException ioe) {
    System.out.println("sample.rtf file not found");
    byte []input = new byte[10000];
    try {
    in.read(input);
    } catch (java.io.IOException ioe) {
    System.out.println("Error reading from sample.rtf");
    // Do the conversion
    FormatConverter conv = new FormatConverter();
    String strHTML = conv.convert(new String(input));
    // Write the html file to disk
    FileWriter out = null;
    try {
    out = new FileWriter("output.html");
    } catch (java.io.IOException ioe) {
    System.out.println("Error creating file output.html");
    try {
    for (int i = 0; i < strHTML.length(); i++)
    out.write(strHTML.charAt(i));
    } catch (java.io.IOException ioe) {
    System.out.println("Error writing to file output.html");
    // Close the files
    try {
    if(in != null)
    in.close();
    if(out != null)
    out.close();
    } catch (java.io.IOException ioe) {
    System.out.println("Error closing files");
    System.out.println("Conversion done");
    System.exit(0);
    Code Ends

    hi,
    i'm also trying to do the same thing (convert rtf to html). i was wondering if your conversion handles tables and if so if you could post the code as i'm having trouble finding out info about rtf's.
    in terms of stripting out the body tags there are a number of different ways of doing this, here's one way>
    myBigHtmlString = your html doc loaded in to a string;
    String[] tagsToStripOutArray = {"<html>","</html>","<body>", "</body>", "etc", "etc"};
    int pos=0;
    for (int x=0; tagsToStripOutArray.length; x++) {
    pos = myBigHtmlString.indexOf(tagsToStripOutArray[x]);
    if (pos != -1){ // if tag exists in string strip it out
    myBigHtmlString = myBigHtmlString.substring(0,pos)+myBigHtmlString.substring(pos+(tagsToStripOutArray[x].length());
    }// end for
    i haven't compiled this so there maybe errors,
    cheers,
    ben

  • Xml to html conversion using xslt

    xml contains exponential no i.e. number in scientific notation. When it is converd to HTML, we get NaN for that number. It happens in JDK 1.4 i.e. WLS8.1 with jdk 1.4 bea jrockit jvm.
    It worked fine with wls7 using xalan-j_2_1_0/bin/xalan.jar
    ANy solution?

    Do you know of a method in the xdk that takes a well formed HTML doc and using xsd / xslt convert back to original xml spec?
    Because you created (and as long as you create) the HTML from XML it will be well formed (every tag will be ended with an end-tag) and you can therefore transform it back into XML.
    Most times it will not be possible to convert HTML found on the 'internet' into XML because this HTML is not well formed. For example, many people forget to end a paragraph of text within HTML with the </p> tag.
    We are evaluating using xslt to convert the XML to a form based medium for content maintenance. Wondering if once a XML document is parsed to HTML (DOM) can it be parsed back to XML for subsequent update to stored value in blob column. Specifically interested in conversion (parser) from HTML to XML
    Simply can HTML (in DOM format validated against a xsd) be transformed back to XML ?

  • WinHelp to HTML conversion problem.

    I am converting a WinHelp project to HTML Help and have
    elected to import my .HPJ file to an HTML project. All seems to go
    well with the import. When I open the project from RoboHelp HTML, I
    can generate HTML help "successfully" but when I try to open the
    CHM file, I get this message: "Cannot open the file:
    mk:@MSITStore:D:\... ...\!SSL!\Microsoft_HTML_Help\MyProject.chm"
    I have successfully converted several other WinHelp projects
    with this approach.
    My coworker tried the conversion on a different PC and
    experienced the same problem.
    Any suggestions?

    Hello Mike,
    Welcome to the Forums.
    Check this
    thrwead.
    I think it may help.
    Brian

  • Clean pdf to html conversion

    I am searching for a clean conversion from pdf to html or xml. I know that there are many solutions, which follow the way of keeping the positions and layouts of several contents. But I am searching for a conversion tool, which converts into clean html without css or into xml. Existing products create a mess of thousand div-tags and span-tags, but you cannot differentiate between a header and a table.
    Example (what I need):
    <h1>This is a header 1</h1>
    <p>This is text</p>
    <img src="..... />
    <h2> This is header 2 </h2>
    <table>.....This is a table ....... </table>
    Existing solutions:
    <div style="position:.....">Text</div>
    <div style="position:.....">Text</div>
    <div style="position:.....">Text</div>
    <div style="position:.....">Text</div>
    Is there any product, which can do that? (batch conversion on servers (e.g. JAVA))

    Given that CSS is part of HTML - I don't see why that would be an issue.
    Since this is Adobe's forum, we offer a Java-focused server side solution called LiveCycle ES.

  • SAP Screens to HTML conversion

    Hi Friends,
    I need to convert SAP Transaction screens into HTML pages.
    SAP GUI for HTML gives only BHTML pages but not normal HTML pages.
    Even from EP TRansaction iview, teh same SAP GUI for HTML pages will be displayed. Even we can not save them also.
    Can anybody suggest any good method to convert SAP screens into normal HTMl pages?
    Thanks lot!!
    Kind regards,
    Ramesh.

    Hi u can use one of these FM
    convrt the itf to html.
    CONVERT_ITF_TO_HTML            Text Conversion of the Internal SAPscript Format (ITF) to HTML
    CONVERT_ITF_TO_HTML_CSS
    SAPSCRIPT_WWW_DOCU_TO_HTML
    SAPSCRIPT_WWW_ITF_TO_HTML
    Thanks & Regards.
    D Tarun Kumar

  • Database to text/ascii/html conversion

    I need to convert an Oracle db to a text file. Preservation of the exact format of the db is not critical, although desireable, but the entire contents of the db in text format (headers aside) is. Is there a filter or migration utility that will easily do this? Conversion to html or xml would be acceptable. Thank you in advance.

    This is not the right forum, and the question really doesn't make sense. There's no simple mapping between a relational database and a flat text file.
    You can generate XML from an individual table of the database - see the XML developers kit for more details.

  • RTF to HTML Conversion to include in JSP

    I have an RTF file which I need to display in a JSP page.
    I have converted the file successfully using RTFEditorKit and HTMLEditorKit, and now have a string which is a complete HTML file.
    Unfortunetly I need to show this String in a JSP - this has a title at the top of the page and an exit button at the bottom. I cannot simply print the String as it contains HTML headers and so the page does not display correctly.
    Is there a way to include the HTML string in the jsp successfully?
    I don't want to output the HTML to a file and then include the file or use object or iframe to include the file.
    Is there an easy way perhaps to strip the header tags from the String?
    Or create the HTML string without the header tags at all?
    Thanks

    hi,
    i'm also trying to do the same thing (convert rtf to html). i was wondering if your conversion handles tables and if so if you could post the code as i'm having trouble finding out info about rtf's.
    in terms of stripting out the body tags there are a number of different ways of doing this, here's one way>
    myBigHtmlString = your html doc loaded in to a string;
    String[] tagsToStripOutArray = {"<html>","</html>","<body>", "</body>", "etc", "etc"};
    int pos=0;
    for (int x=0; tagsToStripOutArray.length; x++) {
    pos = myBigHtmlString.indexOf(tagsToStripOutArray[x]);
    if (pos != -1){ // if tag exists in string strip it out
    myBigHtmlString = myBigHtmlString.substring(0,pos)+myBigHtmlString.substring(pos+(tagsToStripOutArray[x].length());
    }// end for
    i haven't compiled this so there maybe errors,
    cheers,
    ben

  • Generated lists not working in HTML conversion

    Using FM 8.0p277
    I have been asked to convert a book to HTML for the first time. When I do this, FM crashes with an error log that I cannot locate in the Program Files folder, as indicated in the error message. I believe it is the generated files that have caused the error(s). Originally, my List of Figures seemed to be the issue, so I tried generating HTML files of just the TOC and the main document in the book. They produced files fine except the links that work in FM from the TOC to the locations in the main file seem broken. If I open the TOC HTML file and click on one of the links, it does open the main document, but always the beginning of the document. I assume that is because I didn't create the HTML from the book file, but from individual files, so I created a book of just the TOC and main document and tried to save as HTML. FM crashed again. Has anyone had a similar experience, both of FM crashes as a result of creating HTML files and of not being able to locate the error logs in the directory indicated?
    Janice

    Janice,
    The standard answer to questions about HTML export is that the feature is not very robust and likely will not produce the result that you want. It might be useful for certain rudimentary applications but generally FrameMaker users use a third-party application such as Mif2Go, RoboHelp, or a Quadralay product for this purpose. You might get lucky and receive an answer to your specific question, but I think it would be unlikely.
    Russ

  • Adobe Acrobat Pro - .pdf to html conversion not exporting correctly

    Hi There - I have downloaded the trial version of Adobe Acrobat Pro. I uploaded a .pdf file and it is saved as a .html file. It looks great on their platform, although when I download the .html file it saves everything incorrectly.  I can call them tomorrow, but I would like to see if anyone has any ideas on why this might be a problem? Thanks so much. -Beth

    You do not have all the fonts embedded, but the basic document looks fine. There is an issue withe the printer setup in your browser that is leading to part of the page running off the paper - but that is a browser issue and not Acrobat. In some cases, a simple fix is to print as landscape.

  • MS-Word Doc to Filtered HTML Conversion

    Hi Dear all
    In my application i want to convert MS Word Document to Filtered Html (Since there are two options available in word that is save as webpage and second one save as webpage filtered what i need is the html generated by saving a word doc as web page filtered). However i want that my application that is java based should do it automatically so that the user need not to first convert it into filtered html and then open in my app.
    so please is there any way or apis or components available that can automatically convert a word doc to filtered html in java. i need urgent help in this regard
    thanks

    Maybe this can help: [http://poi.apache.org/]
    I haven't looked at it to much.
    Edited by: Farmor on Jul 24, 2008 8:51 AM

  • Transport Agent Text To HTML Conversion Problem

    I have been building a transport agent that works fine except when I have to convert a plain text email to html. I have been looking for samples on how to use the textconverters and texttohtml. However, I'm not sure what they really are supposed to do. If
    I use it to convert the body it will convert what was plain text to html as in the example below...but it never converts the actual body type to html so it's still a plain text email with a body that has html text in it. Therefore, when read...it doesn't display
    properly. Are the converters supposed to change the mail body type also? Can you change the mail body type?
    <html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
    <meta name="Generator" content="Microsoft Exchange Server">
    <!-- converted from text -->
    <style><!-- .EmailQuote { margin- padding- border- } --></style></head>
    <body>
    <font size="2"><span style="font-size:10pt;"><div class="PlainText">Hello<br>
    </div></span></font>
    </body>
    </html>

    Hello, do you  find answer?

  • Font setting in HTML Conversion Settings not honoured by acrobat

    Hi,
    I have Helvetica LT Std font family minstalled on my PC.
    In Acrobat 9, when I go to Create PDF --> From Web page --> Settings --> Settings (File Type : HTML), I select Body text font as "Helvetica LT Std" and size as 14.
    Now when I try to print any html page (E.g. http://infolab.stanford.edu/~ullman/fcdb/oracle/or-proc.html) to pdf, everything is appearing in Tahoma (eeks!!).
    Why is no Acrobat taking the Body font text font setting that I had specified?
    Please help ....
    Thanks in advance
    Suddha Satta Ray

    You might try the preferences in your browser (as I understand your question). Mine has selections for default fonts and a selection of overriding the HTML document fonts (at least as I read the preferences). For some reason, Tacoma has become the default for MS products from what I have seen. I can't find a font button in IE, but there may be one. As you might expect, IE is far from my first choice of browser.

  • Mif to XML/HTML conversion w/o FrameMaker

    Hello fellows,
    Are you aware of any way to convert a Mif file to HTML outside of Framemaker? In the past, there were attempts to create tools that convert Mifs to XML, but they weren't really successful.
    Thank you for your suggestions in advance!

    Oh, easy-peasy … all you need is a programmer, someone who understands FM source and something like sed, awk or perl <roflwlia> It's amazing just how much information shows up in a .mif file – I've just opened one I was using yesterday, and by searching for <String I see that there are 125 lines of 'content' (fewer, actually, since some of them are for headers and footers) in a file of 126671 lines.
    You might get something recognisable to use as a starting-point – though without checking I'm not sure how far it would get you with tables – by pulling out PgfTag and String entries, but I suspect the overall answer to "any way to …" may still be "start with a good text editor and {beverage of choice}". Good luck!

Maybe you are looking for