Results 1 to 3 of 3

Thread: Send PDF file to printer

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2003
    Posts
    28

    Question Send PDF file to printer

    Hi
    A VB6 project sends PDF files to a printer.
    Its uses Adobe Reader, but has stopped working now the user has switched to Adobe Reader 10.
    I can change the code to work with Adobe Reader 10, but am also interested in offering a solution that is not dependent on Adobe Reader.
    Does anyone have any recommendations of 3rd party components I could reference in my VB6 project to send PDf files to a printer?
    Thanks

  2. #2
    PowerPoster
    Join Date
    Aug 2010
    Location
    Canada
    Posts
    2,891

    Re: Send PDF file to printer

    I've been using QuickPDF for all of my PDF needs (including printing) for a couple of years now, and I have been very happy with it. However, it is not free (although distribution is royalty-free, so you only need a developer license), so that might be a deal-breaker for you.

  3. #3
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Send PDF file to printer

    if the pdf files are already created, you can use shellexecute API with the print verb
    this will use the default pdf reader program on any computer
    there is many examples in this forum
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width