none
HTML to DOC/RTF conversion - align tables/paging while converting RRS feed

  • Question

  • Hi All,

    This is my first post. 

    I am developing a web application in .NET 1.1 (visual studio 2003). 

    I am using Microsoft.Interop.Word DLL in my web project. 

    I used this code: http://social.msdn.microsoft.com/Forums/en-SG/worddev/thread/587c1977-7850-4577-a74a-289461fcf61a

    -------

    I changed .doc to .RTF in the code as i wanted my file to be RTF.

    Here i am able to embed the images in the generated RTF file. But the main problem I am facing is:

    1. The html I am using has 3 HTML blocks like 

       <html>

    </html>

       <html>

    </html>

       <html>

    </html>

    So I am removing the HTMLs from middle part and putting everything in one HTML block-> rewriting an html file and then converting it.

    The RTF file generated has the complete body of html but the Paging is improper. i.e. The header which should come on 2nd page is coming on 1st page's bottom.

    Please help me with this. Is there any property by which we can set the pagebreak dynamically (while converting). 

    2. It is not reading the CSS file for the <table> tag in html file .. i.e. In RTF file the table comes with increased font, and left aligned.. which is improper.

     

    Please help. 

    Thanks in Advance...

     

    • Moved by Lie You Monday, April 18, 2011 6:44 AM (From:Visual C# General)
    Friday, April 15, 2011 3:14 PM

Answers

All replies