Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening documents
Message
From
28/07/2005 07:26:17
 
 
To
28/07/2005 07:03:58
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01036508
Message ID:
01036511
Views:
9
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform