Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening documents
Message
De
28/07/2005 07:26:17
 
 
À
28/07/2005 07:03:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01036508
Message ID:
01036511
Vues:
10
This message has been marked as the solution to the initial question of the thread.
Alessio

open Excel with automation?
With Thisform
  .oExcel         = CREATEOBJECT( "excel.application")
  .oExcel.Workbooks.Open( lcFileToOpen)
  .oExcel.Visible	= .T.
  .oExcel.Range("A1").Select
Endwith  
or: (think this works):
ShellExecute( 0, "Open", "myPDFDoc.PDF", ["] + lcFileToOpen + ["], "", 1)	    
or:
DECLARE INTEGER ShellExecute IN "Shell32.dll" ;
    INTEGER hwnd, ;
    STRING lpVerb, ;
    STRING lpFile, ;
    STRING lpParameters, ;
    STRING lpDirectory, ;
    LONG nShowCmd
 
lcPDFfile = "c:\mydir\myfile.pdf"
* Open PDF file
=Shellexecute(0,"Open", lcPDFfile, "","",7)
* Print PDF file
=Shellexecute(0,"Print", lcPDFfile, "","",0)
or:
oShell 	= CreateObject( "WScript.Shell")
oShell.Run( ( lcFullPathAndExtension), 1, .T.)	
HTH

Ciao

Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform