Results 1 to 10 of 10

Thread: VB6 - Writing PDFs

  1. #1

    Thread Starter
    Member MorkenTheMonk's Avatar
    Join Date
    Sep 2017
    Location
    Scotland, UK
    Posts
    42

    VB6 - Writing PDFs

    I've a project which writes to the default Windows Printer using Printer.Print, Printer.EndDoc, etc. We use a 3rd party app such as doPDF or PDF Creator to grab the print-queue and create PDFs when required.

    Anyone any experience of creating PDF output directly from VB6? I know we could use setdefaultprinter API call to set the print driver to one of the PDF-writers, but wondered whether there was a way to write directly to PDF?

    Thanks in advance.
    __________________________________________________________________________________________
    MorkenTheMonk
    SCOTLAND

    (Stuck supporting a 16-bit VB3 application over 20 years old! Deep Joy!!!)

  2. #2
    gibra
    Guest

    Re: VB6 - Writing PDFs

    Try this

    PDF Printer Class by NeO78 (from psc cd)
    http://www.planet-source-code.com/vb...61936&lngWid=1

    Read my comments

  3. #3
    Wall Poster TysonLPrice's Avatar
    Join Date
    Sep 2002
    Location
    Columbus, Ohio
    Posts
    3,969

    Re: VB6 - Writing PDFs

    Quote Originally Posted by MorkenTheMonk View Post
    I've a project which writes to the default Windows Printer using Printer.Print, Printer.EndDoc, etc. We use a 3rd party app such as doPDF or PDF Creator to grab the print-queue and create PDFs when required.

    Anyone any experience of creating PDF output directly from VB6? I know we could use setdefaultprinter API call to set the print driver to one of the PDF-writers, but wondered whether there was a way to write directly to PDF?

    Thanks in advance.
    I believe Microsoft Word will export directly to a PDF.
    Please remember next time...elections matter!

  4. #4

    Thread Starter
    Member MorkenTheMonk's Avatar
    Join Date
    Sep 2017
    Location
    Scotland, UK
    Posts
    42

    Re: VB6 - Writing PDFs

    Quote Originally Posted by gibra View Post
    Try this

    PDF Printer Class by NeO78 (from psc cd)
    http://www.planet-source-code.com/vb...61936&lngWid=1

    Read my comments
    That is a fantastic resource. Will take quite a bit of work to squeeze it into my project (using lots of Printer.DrawStyle, Printer.Line, Printer.CurrentX/Y calls) but I'll have a wee go at creating some transition functions (e.g. take my .DrawStyle call and convert it to your .PDFSetLineStyle).

    Thanks Gibra
    __________________________________________________________________________________________
    MorkenTheMonk
    SCOTLAND

    (Stuck supporting a 16-bit VB3 application over 20 years old! Deep Joy!!!)

  5. #5
    New Member
    Join Date
    Jan 2016
    Posts
    4

    Re: VB6 - Writing PDFs

    Anyone know where to find this resource, because 'psc' doesn't workinkg anymore!?!
    Thanks

  6. #6
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    6,733

    Re: VB6 - Writing PDFs

    Some members from this forum are trying to find a way to preserve the content of PSC, see this thread:
    https://www.vbforums.com/showthread....anetSourceCode

  7. #7
    Hyperactive Member gilman's Avatar
    Join Date
    Jan 2017
    Location
    Bilbao
    Posts
    273

    Re: VB6 - Writing PDFs


  8. #8
    Fanatic Member
    Join Date
    Jun 2016
    Location
    España
    Posts
    630

    Re: VB6 - Writing PDFs

    this is the file of PDF Printer Class by NeO78 (from psc cd)
    PDF_Printer.zip

    but now that I have tried it, the antivirus marks me as a virus.
    I think I remember that it worked without problems for a long time.
    Greetings

  9. #9
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: VB6 - Writing PDFs

    We've had a PDF printer driver in Windows for a long time now.

  10. #10
    Lively Member
    Join Date
    Aug 2017
    Posts
    78

    Re: VB6 - Writing PDFs


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