PDF Viewer DLL?
Moderator: Rathinagiri
-
- Posts: 683
- Joined: Tue Jun 04, 2013 6:33 pm
- Location: Argentina
Re: PDF Viewer DLL?
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
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?
Several functions to support SumatraPDF and simple pdf viewer.
May be useful to someone.
May be useful to someone.
- Attachments
-
- PdfView.zip
- (7.35 MiB) Downloaded 386 times
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
PDF Viewer DLL?
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.
This is going to my favorites in my collection sources.
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.
This is going to my favorites in my collection sources.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
-
- Posts: 683
- Joined: Tue Jun 04, 2013 6:33 pm
- Location: Argentina
Re: PDF Viewer DLL?
Excellent and well done. Thanks forma share with al.
Thanls Kristof. With regards. Eduardo
Thanls Kristof. With regards. Eduardo
Re: PDF Viewer DLL?
+1Pablo 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.
This is going to my favorites in my collection sources.
BPD
Convert Dream into Reality through HMG
Convert Dream into Reality through HMG
Re: PDF Viewer DLL?
Excellent work. Many thanks Krzysztof.
Said from Algeria
Said from Algeria
-
- Posts: 23
- Joined: Sat Apr 02, 2016 4:53 pm
- DBs Used: DBF
- Location: Bratislava, Slovak Republic
Re: PDF Viewer DLL?
Very usefull. Thanks.
Re: PDF Viewer DLL?
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.
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?
Great job! Thank you Krzysztof!
My first run hangs up application, too.
But, after reset computer, it worked OK.
My first run hangs up application, too.
But, after reset computer, it worked OK.