I have a document, that printed good under the previous version I had installed, now after upgrading it started to print a this document as blank pages, when I save it to disk the document looks good, just the printing is blank, the difference between the other documents that do print and this, is that this is using a special paper size.
I am getting blank pages, here is the code I used to test
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Aspose.Words;
using System.Drawing.Printing;
namespace TestAspose
{
class Program
{
static void Main(string[] args)
{
Document doc = new Document(@"\192.168.1.47\ServerDocs\Templates\PickLabel.docx");
PrinterSettings printerSettings = new PrinterSettings();
printerSettings.PrinterName = "HP LaserJet 4250 PCL 6";
doc.Print(printerSettings);
}
}
}
Thank you for additional information. I cannot reproduce the problem on my side. Could you please check printer setting on your side?
Also you can try printing your document to TIF file using the following code:
I don’t have the “Microsoft Office Document Image Writer” printer installed, I did try using the XPS printer driver, and it worked, but to any other actual printer we have in this place I only get blank pages.
I tries both as a 32 and 64 bit version in visual studio, on Windows 7 64 bit
Hi
Thank you for additional information. But I still unable to reproduce the problem on my side. I can successfully print your document on paper.
I think there must be something wrong with HP printer settings.
Best regards,