Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: surinder singh
  Where is surinder singh?
 Hyderabad/New Delhi/Kangra
 India
 surinder singh
 To: vaishali maske
  Where is vaishali maske?
 mumbai
 India
 vaishali maske
 Tags
Subject: RE: microsoft excel 2007
Thread ID: 210468 Message ID: 210484 # Views: 30 # Ratings: 0
Version: Visual FoxPro 8 Category: Errors & Debugging
Date: Tuesday, January 06, 2009 9:59:24 AM         
   


> >
> >
> > Actually you are doing worng syntanx workbooks.open need a file name not excel object!.
> > LOCAL lobject, lcFile,lobject1
> > lobject = CREATEOBJECT('Excel.Application')
> > lobject.Visible = .T.
> > lobject.Workbooks.Open("c:\temp.xls")
> >
> >
> > Anil
> > My Blog
>
>
>
> Hi anil,
>
> This new code also shows same problem.pls tell me any other solution.
>
> Thanks,
> vaishali maske
lcXLFile = getfile("xls")
if not empty(lcXlFile)
	lobject = CREATEOBJECT('Excel.Application')
	lobject.Visible = .T.
	lobject.Workbooks.Open(lcXLfile)
endif


-----------------------------------------------------------------------------------------------
Regards
Surinder Singh
Email: sur200@indiatimes.com
Check my blog for details: http://weblogs.foxite.com/sur200
----------------------------------------------------------------------------------------
*Everything is possible but everything is not required to be happy..



COMPLETE THREAD
microsoft excel 2007 Posted by vaishali maske @ 1/6/2009 7:41:20 AM
RE: microsoft excel 2007 Posted by Anil Sharma @ 1/6/2009 7:46:11 AM
RE: microsoft excel 2007 Posted by vaishali maske @ 1/6/2009 7:56:01 AM
RE: microsoft excel 2007 Posted by Anil Sharma @ 1/6/2009 7:58:37 AM
RE: microsoft excel 2007 Posted by surinder singh @ 1/6/2009 9:59:24 AM
RE: microsoft excel 2007 Posted by vinod kabdal @ 1/6/2009 10:01:27 AM