PDF Viewer DLL?

Moderator: Rathinagiri

Post Reply
EduardoLuis
Posts: 480
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina
Been thanked: 20 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: 137
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland
Been thanked: 95 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 59 times

User avatar
Pablo César
Posts: 4041
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 99 times
Been thanked: 172 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: 480
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina
Been thanked: 20 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: 911
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 81 times
Been thanked: 15 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
HMG Convert Dream into Reality

mlnr
Posts: 54
Joined: Fri Aug 28, 2015 1:52 pm
Location: Hungary
Has thanked: 19 times
Been thanked: 5 times

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

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

hmgaams57
Posts: 43
Joined: Mon Feb 27, 2017 10:00 am
Been thanked: 1 time
Contact:

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

Excellent work. Many thanks Krzysztof.
Said from Algeria

jozef
Posts: 16
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: 91
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland
Has thanked: 17 times
Been thanked: 36 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.
Locutio est argentum, silentium est aureum

User avatar
mol
Posts: 2713
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 82 times
Been thanked: 27 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

Who is online

Users browsing this forum: No registered users and 2 guests