PDF Viewer DLL?

Moderator: Rathinagiri

Post Reply
EduardoLuis
Posts: 523
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina
Been thanked: 28 times

Re: PDF Viewer DLL?

Post by EduardoLuis » Tue Feb 21, 2017 6:51 pm

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: 178
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland
Been thanked: 183 times

Post by KDJ » Wed Mar 22, 2017 9:19 pm

Several functions to support SumatraPDF and simple pdf viewer.
May be useful to someone.
Attachments
PdfView.zip
(7.35 MiB) Downloaded 76 times

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

Post by Pablo César » 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
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

EduardoLuis
Posts: 523
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina
Been thanked: 28 times

Post by EduardoLuis » Thu Mar 23, 2017 12:25 am

Excellent and well done. Thanks forma share with al.
Thanls Kristof. With regards. Eduardo

User avatar
bpd2000
Posts: 953
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 127 times
Been thanked: 43 times

Post by bpd2000 » Thu Mar 23, 2017 8:55 am

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: 63
Joined: Fri Aug 28, 2015 1:52 pm
DBs Used: DBF
Location: Hungary
Has thanked: 22 times
Been thanked: 7 times

Post by mlnr » Thu Mar 23, 2017 9:01 am

Wow!
Thanks Krzysztof for your very useful code.
Best regards,
Gabor

hmgaams57
Posts: 87
Joined: Mon Feb 27, 2017 10:00 am
Been thanked: 2 times
Contact:

Post by hmgaams57 » Thu Mar 23, 2017 9:13 am

Excellent work. Many thanks Krzysztof.
Said from Algeria

jozef
Posts: 17
Joined: Sat Apr 02, 2016 4:53 pm
DBs Used: DBF
Location: Bratislava, Slovak Republic
Has thanked: 4 times

Post by jozef » Thu Mar 23, 2017 9:38 am

Very usefull. Thanks.

edk
Posts: 168
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland
Has thanked: 49 times
Been thanked: 99 times

Post by edk » Thu Mar 23, 2017 10:08 am

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: 2853
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 123 times
Been thanked: 65 times
Contact:

Post by mol » Thu Mar 23, 2017 1:01 pm

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

Post Reply