Free Support Forum - aspose.com

How to hide print progress dialog

Is there a way to

1. hide print progress (pages) dialog
2. non-blocking function call Print()

Document doc = new Document(Application.StartupPath + “\test.doc”);
AsposeWordsPrintDocument asposDoc = new AsposeWordsPrintDocument(doc);
asposDoc.PrinterSettings.PrintFileName = “test.spl”;
asposDoc.PrinterSettings.PrintToFile = true;
asposDoc.Print();


Thanks

Hi

Thanks for your request. Try using the following code to print you document:

PrinterSettings settings = new PrinterSettings();

settings.PrintFileName = "test.spl";

settings.PrintToFile = true;

doc.Print(settings);

Best regards,