|
-
Aug 6th, 2018, 05:15 AM
#1
Thread Starter
Member
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!!!)
-
Aug 6th, 2018, 05:30 AM
#2
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
-
Aug 6th, 2018, 05:43 AM
#3
Re: VB6 - Writing PDFs
 Originally Posted by MorkenTheMonk
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!
-
Aug 6th, 2018, 08:03 AM
#4
Thread Starter
Member
Re: VB6 - Writing PDFs
 Originally Posted by gibra
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!!!)
-
Sep 2nd, 2020, 01:09 AM
#5
New Member
Re: VB6 - Writing PDFs
Anyone know where to find this resource, because 'psc' doesn't workinkg anymore!?!
Thanks
-
Sep 2nd, 2020, 01:40 AM
#6
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
-
Sep 2nd, 2020, 01:53 AM
#7
-
Sep 2nd, 2020, 05:10 AM
#8
Fanatic Member
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
-
Sep 2nd, 2020, 08:19 AM
#9
Re: VB6 - Writing PDFs
We've had a PDF printer driver in Windows for a long time now.
-
Sep 2nd, 2020, 12:13 PM
#10
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|