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)
 

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