Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows10 print to pdf automation
Message
De
21/03/2016 12:23:17
 
 
À
21/03/2016 08:11:29
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Divers
Thread ID:
01633396
Message ID:
01633428
Vues:
216
yes you are right, in office2007 saving an opened file to pdf is built in.Addon is recquired for office2003.
Shellexecute with option "print" fails always for files other than txt files.
it works only with txt files.
local m.lcfile
m.lcfile=getfile()
&&shellexecute
DECLARE INTEGER ShellExecute IN SHELL32.DLL INTEGER nWinHandle,;
                                            STRING cOperation,;
                                            STRING cFileName,;
                                            STRING cParameters,;
                                            STRING cDirectory,;
                                            INTEGER nShowWindow

result = ShellExecute(0, "print", m.lcfile,"","",1)
if  m.result<=32
messagebox("Fails")
endi
same thing with shellexecute and "edit" verb.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform