Page 1 of 1

PRN2PDF

Posted: Sun Sep 28, 2014 12:47 am
by Pablo César
When we have old systems in Clipper, was very common to create a printing or text files (PRN or TXT). I remember I had used a third party program to convert to PDF files.

Following example would be usefull for that propose which accepts in command line (Prompt at DOS command) or just execute without any parameter.

I shall make some another improvements with some more options. This is working with Epson and HP internal printer commands (ESC command).

I hope to contribute to assist in learning and you enjoy this example. :D
EpsonPDF.rar
(60.79 KiB) Downloaded 720 times
I intend to improve in line command options to add more parameters just to allow with:

1. No_Load PDF
2. Set nMargin
3. Set nTop
4. Set LandScape/Portrait
5. Force Epson or HP ESC commands

P.S. I have forgotten to thank to Fernando from PCToledo forum whos has contributed and I adapted and made some more implementations to our community. Thanks Fernando, thanks amigo Toledo for this opportunity.

Re: PRN2PDF

Posted: Sun Sep 28, 2014 3:20 am
by bpd2000
Nece Utility
Thank you Pablo for sharing

Re: PRN2PDF

Posted: Sun Sep 28, 2014 9:12 am
by tonton2
:o c'est vraiment du bon travail Merci

Re: PRN2PDF

Posted: Sun Sep 28, 2014 9:53 am
by quartz565
Thank you Pablo!

Re: PRN2PDF

Posted: Sun Sep 28, 2014 4:17 pm
by Javier Tovar
Gracias por compartir!

Saludos

Re: PRN2PDF

Posted: Mon Sep 29, 2014 7:51 am
by Agil Abdullah
Many Thanks.... I tried and it worked well.

What I love this forum is... Everyday I find new thing to learn & improve my skill+knowledge.

Re: PRN2PDF

Posted: Mon Sep 29, 2014 1:26 pm
by serge_girard
Thanks Pablo!

Serge

PRN2PDF

Posted: Wed Oct 01, 2014 12:52 am
by Pablo César
Thank you guys for your interest. :D

Sometimes same print command is defined in more than one way.
For example: CHR(27)+"P" and CHR(18) which makes to turn normal size of font.

So to attend this, PRN2PDF supports many other equivalent of same command by considering nested element of an array.

Some other print commands were added and user options in form for GUI.
Screen.PNG
Screen.PNG (20.43 KiB) Viewed 8057 times

Re: PRN2PDF

Posted: Wed Oct 01, 2014 5:24 am
by mol
Thanks for sharing!

Re: PRN2PDF

Posted: Fri Oct 03, 2014 11:52 am
by Agil Abdullah
Pablo,

Again, Thanks for sharing.

Awating for some new things you could share for us.