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

Free Support Forum - aspose.com

Word file editor

Does Aspose provide some word file utility such as editor or view, so that when doc file is created, the user is able to open or print without using MS office.


Hi Rong,


Thanks for your inquiry. Aspose.Words for .NET is just a class library and with it you can programmatically generate, modify, convert, render and print documents without utilizing Microsoft Word®. So, it does not offer any UI or web control to view/perform document processing tasks.

If you just want to view pages of document, you can convert all pages in your Word document to images and use them according to your requirement. Here is how you can convert pages to images:


Document doc = new Document(MyDir + @“in.docx”);

ImageSaveOptions opts = new ImageSaveOptions(SaveFormat.Png);<o:p></o:p>

opts.PageIndex = 0;<o:p></o:p>

opts.PageCount = doc.PageCount;<o:p></o:p>

opts.PageSavingCallback = new HandlePageSavingCallback();<o:p></o:p>

doc.Save(MyDir + @“17.6.png”, opts);<o:p></o:p>


private class HandlePageSavingCallback : IPageSavingCallback<o:p></o:p>

{<o:p></o:p>

public void PageSaving(PageSavingArgs args)<o:p></o:p>

{<o:p></o:p>

args.PageFileName = string.Format(MyDir + @“Page_{0}.png”, args.PageIndex);

}<o:p></o:p>

}