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);
opts.PageIndex = 0;
opts.PageCount = doc.PageCount;
opts.PageSavingCallback = new HandlePageSavingCallback();
doc.Save(MyDir + @"17.6.png", opts);
private class HandlePageSavingCallback : IPageSavingCallback
{
    public void PageSaving(PageSavingArgs args)
    {
        args.PageFileName = string.Format(MyDir + @"Page_{0}.png", args.PageIndex);
    }
}