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

Free Support Forum - aspose.com

How to directly Read word file stored in sql server database

i am using VS 2005(vb.net ) and sql server 2005. I have uploaded a word file into the sql server now i have to read and display the data of that file directly from database. please can you help me with that.

thanks

Hi
Thank you for your interest in Aspose products. You can read data from the database to stream, then create Document object. You can use DocumentRenderer class to render or print Word documents without utilizing Microsoft Word. For example see the following code.

Stream strm = new FileStream("in.doc", FileMode.Open);
Document doc = new Document(strm);
doc.Save("out.doc");
DocumentRenderer renderer = new DocumentRenderer(doc);
Bitmap[] pageArr = renderer.GetPages();

See the following link.
https://docs.aspose.com/words/net/rendering/
Please note that Aspose.Words.Viewer namespace is currently in beta.
Best regards,

We are happy to tell you that the new Rendering Engine has replaced the “old Viewer Beta”. The Rendering Engine can print, save as images or draw onto .NET Graphics object any document page.

Please see Aspose.Words documentation to learn more about new features.

Saving to image

In additional, new Rendering engine allows you to convert Word document to PDF directly (without using Aspose.Pdf).

Saving to Pdf

The latest version of Aspose.Words is available for download from downloads section or from NuGet