PRN2PDF
Moderator: Rathinagiri
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
PRN2PDF
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.
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.
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.
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.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
-
- Posts: 1275
- Joined: Tue Sep 03, 2013 4:22 am
- Location: Tecámac, México
Re: PRN2PDF
Gracias por compartir!
Saludos
Saludos
- Agil Abdullah
- Posts: 204
- Joined: Mon Aug 25, 2014 11:57 am
- Location: Jakarta, Indonesia
- Contact:
Re: PRN2PDF
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.
What I love this forum is... Everyday I find new thing to learn & improve my skill+knowledge.
Agil Abdullah Albatati (just call me Agil)
Programmer Never Surrender
Programmer Never Surrender
- serge_girard
- Posts: 3167
- Joined: Sun Nov 25, 2012 2:44 pm
- DBs Used: 1 MySQL - MariaDB
2 DBF - Location: Belgium
- Contact:
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
PRN2PDF
Thank you guys for your interest.
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.
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.
- Attachments
-
- Prn2Pdf (Executable file).rar
- (1.06 MiB) Downloaded 577 times
-
- PRN2PDF.rar
- Source files
- (4.81 KiB) Downloaded 467 times
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- Agil Abdullah
- Posts: 204
- Joined: Mon Aug 25, 2014 11:57 am
- Location: Jakarta, Indonesia
- Contact:
Re: PRN2PDF
Pablo,
Again, Thanks for sharing.
Awating for some new things you could share for us.
Again, Thanks for sharing.
Awating for some new things you could share for us.
Agil Abdullah Albatati (just call me Agil)
Programmer Never Surrender
Programmer Never Surrender