Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any way to speed this up?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01122411
Message ID:
01122668
Vues:
36
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform