PDF Viewer DLL?

Moderator: Rathinagiri

Post Reply
EduardoLuis
Posts: 682
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina

Re: PDF Viewer DLL?

Post by EduardoLuis »

Hi Bdp2000:

You were right, in your sample don't appear error screen.-
What i was looking is to print silently and i solved it this way:

EXECUTE FILE 'SumatraPDF.EXE' PARAMETERS '-print-to-default -plugin -exit-on-print ' + cHwnd + ' ' + 'SAMPLE.pdf'

The issue i got was because i put parameter "-plugin" as the first.- Put it in the middle works find.-

By the way, i test different printScale, and the best result was putting "none".- With this parameter (none) PDF document is printed exactly with the paper size (margins) it was created.- Take in count that if on your app will be printed different format of pages, printer must be set to "legal" size.- In other terms is the as if you choose on Adobe Reader the option Select paper size from document (pdf) size.

Just a contribution.-
With regards.
Eduardo
KDJ
Posts: 243
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland

Re: PDF Viewer DLL?

Post by KDJ »

Several functions to support SumatraPDF and simple pdf viewer.
May be useful to someone.
Attachments
PdfView.zip
(7.35 MiB) Downloaded 355 times
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

PDF Viewer DLL?

Post by Pablo César »

Excellent work, Krzysztof ! :)
Very impressed by your quality.
Indeed to say: it was expected in your source codes.

Your events procedure is very good.
A good mastery in this area is fundamental to be a high quality work.

May I offer my little tip ? Or to give my opinion regarding GRID Files:

We would change ONDBLCLICK by ONCHANGE.

F12 other HotKeys, very useful.

Thank you very much for your sharing. :P

This is going to my favorites in my collection sources. :D
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
EduardoLuis
Posts: 682
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina

Re: PDF Viewer DLL?

Post by EduardoLuis »

Excellent and well done. Thanks forma share with al.
Thanls Kristof. With regards. Eduardo
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: PDF Viewer DLL?

Post by bpd2000 »

Pablo César wrote: Wed Mar 22, 2017 9:38 pm Excellent work, Krzysztof ! :)
Very impressed by your quality.
Indeed to say: it was expected in your source codes.

Your events procedure is very good.
A good mastery in this area is fundamental to be a high quality work.

May I offer my little tip ? Or to give my opinion regarding GRID Files:

We would change ONDBLCLICK by ONCHANGE.

F12 other HotKeys, very useful.

Thank you very much for your sharing. :P

This is going to my favorites in my collection sources. :D
+1
BPD
Convert Dream into Reality through HMG
mlnr
Posts: 126
Joined: Fri Aug 28, 2015 1:52 pm
DBs Used: DBF

Re: PDF Viewer DLL?

Post by mlnr »

Wow!
Thanks Krzysztof for your very useful code.
Best regards,
Gabor
hmgaams57
Posts: 129
Joined: Mon Feb 27, 2017 10:00 am

Re: PDF Viewer DLL?

Post by hmgaams57 »

Excellent work. Many thanks Krzysztof.
Said from Algeria
jozef
Posts: 23
Joined: Sat Apr 02, 2016 4:53 pm
DBs Used: DBF
Location: Bratislava, Slovak Republic

Re: PDF Viewer DLL?

Post by jozef »

Very usefull. Thanks.
edk
Posts: 909
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland

Re: PDF Viewer DLL?

Post by edk »

Dzięki Krzysztofie!
There is a small bug:
Open any PDF file, then set focus to "SumatraPanel" (press Tab key or click on SumatraPanel), then press left Alt key. The program will freeze.

Edward.
User avatar
mol
Posts: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: PDF Viewer DLL?

Post by mol »

Great job! Thank you Krzysztof!
My first run hangs up application, too.
But, after reset computer, it worked OK.
Post Reply