Display in WinForm

Hi All, can someone point me in the right direction or provide some code examples, I need to be able to display a document (from memory stream) in a winform. I am having a difficult time trying to figure this out using the current documentation. Basically, I am trying to cut out using OfficeInterop and only use Aspose.

Hi Mike,

Thanks for your inquiry. First of all please note that Aspose.Words for .NET is a class library that enables your applications to perform a great range of document processing tasks. Aspose.Words supports DOC, DOCX, RTF, HTML, OpenDocument, PDF, XPS, EPUB and other formats. With Aspose.Words you can generate, modify, convert, render and print documents without utilizing Microsoft Word®. For more information, please go through the documentation below:
https://docs.aspose.com/words/net/product-overview/

Secondly, Aspose.Words does not offer any user interface control to view/edit MS Word documents in winForms. However, you can easily display document in winForms by converting document to images and view the images in winForms. Please use the following code snippet to convert your document to images.
https://reference.aspose.com/words/net/aspose.words.saving/imagesaveoptions/

Document doc = new Document(MyDir + "in.docx");
ImageSaveOptions options = new ImageSaveOptions(SaveFormat.Png);
options.PageCount = 1;
for (int pageIndex = 0; pageIndex < doc.PageCount; pageIndex++)
{
    string outputFileName = MyDir + string.Format("{0}_{1}.png", "Out", pageIndex + 1);
    options.PageIndex = pageIndex;
    doc.Save(outputFileName, options);
}

Hope this answers your query. Please let us know if you have any more queries.

Thank you, that is very helpful.

Hi Mike,

Thanks for your feedback. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.