Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any way to speed this up?
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01122411
Message ID:
01122668
Views:
33
>Naomi,
>
>you can drive Acrobat Reader using DDE
>
>e.g.
>
>m.lcFilename=getfile("PDF")
>run /n3 acrodr32.exe && add the path
>DDEChan = DDEInitiate("Acroview", "Control")
>ddeexecute(ddechan,'[FilePrintSilent(&lcFilename)]')
>DDEExecute(ddechan,"[AppExit()]")
>
>i haven't tested or timed this but i would expect it to be pretty quick. Especially if you need to print more than one file... you'd just need to repeat the ddeexecute for each filename
>
>
>see http://partners.adobe.com/public/developer/en/acrobat/sdk/pdf/iac/IACOverview.pdf for more info
>
>
>hth
>
>Nigel

Nigel,

Thanks for your response. In the sample code you posted can I use ShellExecute instead of run? In the meantime I downloaded FoxitReader and tried the code as is and it didn't work. I suspect the parameters are different, so I had to register on the Foxit forum and ask the question there.

Anyway, seems like we're not creating PDF here at all and we may not need to re-print them. So, I may need to divert my attention to printing prn files now.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform