Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems printing a word document
Message
 
À
17/06/2015 09:45:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01621073
Message ID:
01621075
Vues:
45
>Try this:
>
>? ShellExecute(0,"print",gota,"","",0)
>
>The variable without "&".
>
>HTH
>Gerhard
>
>>If I print a given document it works fine
>>
>>DECLARE INTEGER ShellExecute ;
>>IN SHELL32.DLL ;
>>INTEGER nWinHandle,;
>>STRING cOperation,;
>>STRING cFileName,;
>>STRING cParameters,;
>>STRING cDirectory,;
>>INTEGER nShowWindow
>>? ShellExecute(0,"print","c:\what.doc","","",0)
>>
>>But if I go looking for the document with the following code I get error
>>
>> function name is missing ).
>>
>>in shell execute line - what is the correct syntax of this line
>>
>>gota=getfile()
>>
>>
>>DECLARE INTEGER ShellExecute ;
>>IN SHELL32.DLL ;
>>INTEGER nWinHandle,;
>>STRING cOperation,;
>>STRING cFileName,;
>>STRING cParameters,;
>>STRING cDirectory,;
>>INTEGER nShowWindow
>>? ShellExecute(0,"print",&gota,"","",0)

Works great thanks - is there any way to stop the Word window opening up
Specialist in Advertising, Marketing, especially Direct Marketing

I run courses in Business Management and Marketing
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform