Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
Malimerge call from VFP
Versions des environnements
Network:
Windows 2003 Server
Hi all
My VFP9 call Word with following code
DECLARE INTEGER ShellExecute IN Shell32.DLL INTEGER hwnd, ;
STRING @lpOperation, STRING @lpFile, STRING @lpParameters, ;
STRING @lpDirectory, INTEGER nShowCmd
lcParms = ""
lcDir = addbs(toApplication.ProjectDirectory)+'DOCS'
lcFile = alltrim(juststem(tcOutputFileName))+'.DOC'
lcOp = 'open'
lnshow = 3
lnError = ShellExecute(0, @lcop, @lcfile, @lcparms, @lcdir, lnshow)
MS Word will prompt following
Opening this documet will run following SQL command:.
...........
Data from your database will be placed in the docuemnt. Do you want to continue?
which I have to click Yes. Is there a way to bypass this prompt and goto Word directly?
Your advice and assistance really much appreciated.
Thanks & Best Regards
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement