Page 5 of 17

Re: PDF Viewer DLL?

Posted: Tue Feb 21, 2017 6:51 pm
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

Re: PDF Viewer DLL?

Posted: Wed Mar 22, 2017 9:19 pm
by KDJ
Several functions to support SumatraPDF and simple pdf viewer.
May be useful to someone.

PDF Viewer DLL?

Posted: Wed Mar 22, 2017 9:38 pm
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

Re: PDF Viewer DLL?

Posted: Thu Mar 23, 2017 12:25 am
by EduardoLuis
Excellent and well done. Thanks forma share with al.
Thanls Kristof. With regards. Eduardo

Re: PDF Viewer DLL?

Posted: Thu Mar 23, 2017 8:55 am
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

Re: PDF Viewer DLL?

Posted: Thu Mar 23, 2017 9:01 am
by mlnr
Wow!
Thanks Krzysztof for your very useful code.

Re: PDF Viewer DLL?

Posted: Thu Mar 23, 2017 9:13 am
by hmgaams57
Excellent work. Many thanks Krzysztof.
Said from Algeria

Re: PDF Viewer DLL?

Posted: Thu Mar 23, 2017 9:38 am
by jozef
Very usefull. Thanks.

Re: PDF Viewer DLL?

Posted: Thu Mar 23, 2017 10:08 am
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.

Re: PDF Viewer DLL?

Posted: Thu Mar 23, 2017 1:01 pm
by mol
Great job! Thank you Krzysztof!
My first run hangs up application, too.
But, after reset computer, it worked OK.