We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Predicting Page Breaks

Hello there!

We have a .NET MVC Web application and have purchased Aspose for use in exporting Word documents. The exported content is user-generated and dynamic, and is of a varying length. We would like to present the user with a Web view of the document, and a location of where page breaks would predicted to be when loaded into MS Word as a standard letter-sized document.

There is functionality like this documented for Aspose, but it only appears to work for desktop applications - it loads up a dialog with a print preview and does not provide any information back to the application for programmatic use. You can see an example of this here:

If this is not possible, is Aspose aware of any non-Aspose ways of accomplishing this? Thank you for your help!

Hi Alex,

Thanks for your inquiry. Aspose.Words does not offer any UI or web control for printing preferences via web browsers. However, with Aspose.Words, it is possible to create Document preview, for example by converting your document to HtmlFixed, image or SWF format.

In your case, I suggest you please convert your document to HtmlFixed format. Hopefully it will serve your purpose.

Document doc = new
Document(MyDir + “in.docx”);<o:p></o:p>

doc.Save(MyDir + “out.html”,

Moreover, please try to run one of Aspose.Words demos and select SWF as a target format:
SWF produced by Aspose.Words also includes document viewer UI. So you need simply embed this SWF into your web page.