Print external PDF files
Kim Sumner
tech at corporate-windows.com.au
Thu Feb 11 02:21:04 EST 2016
Thanks Bruno - works perfectly.
Fortunately not doing 000s of PDFs so hopefully won't choke the spooler.
Regards
Kim Sumner
Corporate Windows Pty Ltd, AUSTRALIA
Tel: + 61-3-5338-8232
Mobile: 0419-561-496
Skype: corpwin
Web: http://www.corporate-windows.com
-------------------------------------------------------------------
WebPublisher Studio - Share your data with the World
http://www.webpublisherstudio.com
-------------------------------------------------------------------
> From: Bruno Del Sol <bruno.delsol at bydesign.fr>
> Reply-To: OmnisDev List - English <omnisdev-en at lists.omnis-dev.com>
> Date: Thu, 11 Feb 2016 07:53:23 +0100
> To: OmnisDev List - English <omnisdev-en at lists.omnis-dev.com>
> Subject: Re: Print external PDF files
>
> Hi Kim,
>
> Call DLL ("SHELL32.DLL","ShellExecuteA",0,"*print*",lvFile,"","",0) Returns
> lvHINST_Explorer
>
> replacing "open" by "print" in the command above will do what you want, ie
> open the default pdf viewer (acrobat or any
> other), launch its print command, then close it.
> Be aware though, that the user will see the acrobat window open and then close
> on its desktop.
>
> I haven't tried it, but I think i'll work also in a loop, it will launch and
> close multiple instances of Acrobat and
> fill the default printer spooler. Of course, it might get ugly if you try to
> do that with a thousand pdfs...
>
> HTH
> Regards
> Bruno
>
>
> By Design
> http://www.bydesign.fr
> Bruno Del Sol
> bruno.delsol at bydesign.fr
> tel (33) 01 48 78 47 37
> 46, rue de La Tour d'Auvergne
> 75009 Paris (France)
>
> Le 11/02/16 07:27, Kim Sumner a écrit :
>> Hi all,
>> I'm sure somebody has already done this (or failed in the attempt...)
More information about the omnisdev-en
mailing list