How to print a file.

  • Thread starter Thread starter Geir Holme
  • Start date Start date
G

Geir Holme

Hi all.
I have some ready .pdf files on my disk.

All I want to do is to send at .pdf file to one of the printers in the
controlpanel (or defaultprinter) from VB.NET. It should look like as if I
viewed it in preview and pushed the printerbutton.

I want none popups, messages, boxes, windows or whatever. Just som "ratling"
in the printer and a nice .pdf dokument laying there waiting :-)

any ideas?

thanks

regards
geir
 
Geir said:
Hi all.
I have some ready .pdf files on my disk.

All I want to do is to send at .pdf file to one of the printers in the
controlpanel (or defaultprinter) from VB.NET. It should look like as if I
viewed it in preview and pushed the printerbutton.

I want none popups, messages, boxes, windows or whatever. Just som "ratling"
in the printer and a nice .pdf dokument laying there waiting :-)

any ideas?

thanks

regards
geir

Hi, create a application that reads a directory, and adds those files to
a queue...

Then have the program render the file in the browser control. You will
need acrobat installed. If you add javascript code to the actual pdf so
that it prints automatically upon rendering it will print to the default
printer.

Well, thats atleast how i accomplished it....


Regards,
Brett Mostert
Lead Developer
Sebrio Consulting
(e-mail address removed)
 
Back
Top