Hi - I have a Stream which I get from a database blob (dataAsp1.bin) - which is a Word Document.
Aspose only prints a empty page when I execute the code below (Asp.net 2.0 / C#)
(Yes, I know, it will only print on the server - but it should print not only empty pages - right
docviewer.Document.GetText().ToString();
Reads the Blob (Word) perfectly into a string.
Can you point me to a solution that will work? Thanks! Btw: I really like your Products, they helped me a lot!
MemoryStream streamIn = new MemoryStream(dataAsp1.bin);
MemoryStream streamOut = new MemoryStream();
const string licFile = @"Aspose.Total.lic";
Aspose.Words.License license = new Aspose.Words.License();
license.SetLicense(licFile);
Aspose.Words.Document Doc = new Aspose.Words.Document(streamIn);
Aspose.Words.Viewer.DocumentRenderer docviewer = new Aspose.Words.Viewer.DocumentRenderer(Doc);
docviewer.PrinterSettings.PrinterName = "Canon i250";
docviewer.PrinterSettings.FromPage = 1;
docviewer.PrinterSettings.PrintRange = System.Drawing.Printing.PrintRange.AllPages;
docviewer.PrinterSettings.Copies = 1;
docviewer.Print();