Print without the print dialog box

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

Hi,

Is there anyway to print from VB.NET or C# and bypass the printer dialog
box?

Thanks
Mike
 
Mike,
You can just create a new PrinterSettings object in code which will have
the default settings in it and use that for your PrintDocument's
PrinterSettings. If you mean the printing progress dialog just set the
PrintController of your PrintDocument to an instance of
StandardPrintController as the default is a PrintControllerWithStatusDialog
which will show the progress.

Ron Allen
 
Ron,

I was meaning the initial select your printer dialog box, Anushi has come up
with a page to a work around. How's about this then... Is it possible to
change the machine to not show the printer dialog, this is because we have a
process running on a machine that will create PDF documents using the Adobe
PDF driver and we really want the application to work without user
intervention, is that possible though some registry hack or something?

Regards
Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top