Results 1 to 4 of 4

Thread: VB6 - Writing PDFs

  1. #1

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

    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

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

    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
    40

    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!!!)

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