I have generated HTML Content and I am writing it to a word File. I want to Know How many Pages it will take when Written to the Word Document.
+1
A:
This cannot be answered in a general way. Font sizes, paper size, margins, layout etc. are to be taken into account, and the exact font rendering may also differ (kerning etc.). Therefore, just create the Word document (you could use WordML) and let word compute the number of pages for you.
Lucero
2009-05-04 07:23:06
Actually I want to Add Header and Footer Per Page, can u suggest some way to achieve it
2009-05-04 07:28:05
Basically WordML is just a Word document as plain XML. Assuming that you've got XHTML as source, you can create a XSL transform which converts the HTML as needed into a WordML document, including footnodes or anything else you like.
Lucero
2009-05-04 07:55:12
Useful links:http://en.wikipedia.org/wiki/Microsoft_Office_XML_formatshttp://msdn.microsoft.com/en-us/library/aa212812(office.11).aspxhttp://www.codeproject.com/KB/aspnet/HTMLtoWordML.aspx3rd-party component capable of doing this:http://www.aspose.com/categories/file-format-components/aspose.words-for-.net-and-java/default.aspx
Lucero
2009-05-04 07:59:33