Free Support Forum - aspose.com

Open aspx page and save as word doc

How can I open an aspx page and save all of its content as a word document?


This message was posted using Page2Forum from Java and .NET Differences in Aspose.Words - Aspose.Words for .NET and Java

How can I load an aspx page and save its content to a word document?


This message was posted using Page2Forum from Loading, Saving and Converting - Aspose.Words for .NET and Java

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. You can use the same code as provided in the following thread to achieve this:

http://www.aspose.com/community/forums/thread/182892/aspx-to-docx.aspx

Best regards.

Thanks. It extracted all the info, but the formatting is way off.

How can I set margins, font and font size to reduce the number of pages?

Thanks again for your help

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Please see the following link to learn how to change page margins:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/aspose.words.pagesetup.leftmargin.html

You can use the same technique as described in the following thread to change font of a whole document:

http://www.aspose.com/community/forums/thread/185263/setting-font-in-a-document-using-the-documentbuilder.aspx

Hope this helps.

Best regards.