I want to display word document on mvc page using aspose.words library

Hi,


I want to display word document into editor or some other control in the mvc page.

Is this possible using aspose.words library.

I will be waiting for your reply.

Hi Priya,


Thanks for your interest in Aspose.Words. Well, with Aspose.Words API you can programmatically generate, modify, convert, render and print documents without utilizing Microsoft Word®. However, Aspose.Words does not offer UI or web control for performing these document processing tasks.

Our sister company GroupDocs.com offers a viewer app which you may consider including in your application to view the various file formats. With GroupDocs apps, you can also have limited editing functionalities. For more information, we suggest you please contact GroupDocs support through live chat or support forums of GroupDocs.

Moreover, if you just want to view pages in web browser, you can convert all pages in your Word document to images and then display them. Here is how you can convert pages to images:

Document document = new Document(@“C:\test\In.docx”);

ImageSaveOptions options = new ImageSaveOptions(SaveFormat.Jpeg);
options.PageCount = 1;

// Save each page of the document as Jpeg.
for (int i = 0; i < document.PageCount; i++)
{
options.PageIndex = i;
document.Save(string.Format(@“C:\test\out_{0}.jpg”, i), options);
}

Please let us know if we can be of any further assistance.

Best regards,