PRN2PDF

You can share your experience with HMG. Share with some screenshots/project details so that others will also be benefited.

Moderator: Rathinagiri

Post Reply
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 182 times

PRN2PDF

Post by Pablo César » Sun Sep 28, 2014 12:47 am

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 367 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.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
bpd2000
Posts: 1074
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 196 times
Been thanked: 95 times

Post by bpd2000 » Sun Sep 28, 2014 3:20 am

Nece Utility
Thank you Pablo for sharing
BPD
Convert Dream into Reality through HMG

User avatar
tonton2
Posts: 291
Joined: Sat Jun 29, 2013 1:26 pm
Location: Algerie
Has thanked: 7 times
Been thanked: 10 times
Contact:

Post by tonton2 » Sun Sep 28, 2014 9:12 am

:o c'est vraiment du bon travail Merci
L'Algerie vous salut
Y.TABET

User avatar
quartz565
Posts: 560
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Has thanked: 173 times
Been thanked: 20 times
Contact:

Post by quartz565 » Sun Sep 28, 2014 9:53 am

Thank you Pablo!
Best Regards,
Nikos.

os: Windows Server 2012 - 64
hw: HP Server E5606, 2.13GHz, 8.00 GB - Intel Xeon CPU

Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México
Has thanked: 1 time
Been thanked: 2 times

Post by Javier Tovar » Sun Sep 28, 2014 4:17 pm

Gracias por compartir!

Saludos

User avatar
Agil Abdullah
Posts: 204
Joined: Mon Aug 25, 2014 11:57 am
Location: Jakarta, Indonesia
Contact:

Post by Agil Abdullah » Mon Sep 29, 2014 7:51 am

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.
Agil Abdullah Albatati (just call me Agil)
Programmer Never Surrender

User avatar
serge_girard
Posts: 2317
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 555 times
Been thanked: 116 times
Contact:

Post by serge_girard » Mon Sep 29, 2014 1:26 pm

Thanks Pablo!

Serge

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 182 times

Post by Pablo César » Wed Oct 01, 2014 12:52 am

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 3051 times
Attachments
Prn2Pdf (Executable file).rar
(1.06 MiB) Downloaded 346 times
PRN2PDF.rar
Source files
(4.81 KiB) Downloaded 255 times
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
mol
Posts: 3197
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 214 times
Been thanked: 120 times
Contact:

Post by mol » Wed Oct 01, 2014 5:24 am

Thanks for sharing!

User avatar
Agil Abdullah
Posts: 204
Joined: Mon Aug 25, 2014 11:57 am
Location: Jakarta, Indonesia
Contact:

Post by Agil Abdullah » Fri Oct 03, 2014 11:52 am

Pablo,

Again, Thanks for sharing.

Awating for some new things you could share for us.
Agil Abdullah Albatati (just call me Agil)
Programmer Never Surrender

Post Reply