GetExcelRange function

GetExcelRange function

Postby damianodec » Tue Jul 10, 2018 11:02 am

hi,
I try to use GetExcelRange function and works with file excel on my pc but not work in lan.

this works:
Code: Select all  Expand view  RUN
cPath = "c:\myfolder\"
cFile = "
myfile.xls"
GetExcelRange(cPath+cFile, , , @lOpened )


I have a folder in another pc in my lan and that folder has linked on my pc with S: unit, if I try this:
Code: Select all  Expand view  RUN
cPath = "S:\"
cFile = "
myfile.xls"
GetExcelRange(cPath+cFile, , , @lOpened )

that not works.
I have full access to folder linked to S: unit (read and write)

any help?
FiveWin for xHarbour 17.09 - Sep. 2017 - Embarcadero C++ 7.00 for Win32
FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)
Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
User avatar
damianodec
 
Posts: 419
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia

Re: GetExcelRange function

Postby Enrico Maria Giordano » Tue Jul 10, 2018 11:23 am

Try this:

Code: Select all  Expand view  RUN
? FILE( cPath+cFile )


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8719
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: GetExcelRange function

Postby damianodec » Tue Jul 10, 2018 12:20 pm

hi Enrico,

Code: Select all  Expand view  RUN
msginfo(cPath+alltrim(aFile[nZ]))
oRange  := GetExcelRange(cPath+alltrim(aFile[nZ]), , , @lOpened )


this is msginfo:
S:\PREVENTIVI\ANNO_2018\dado_08 04 2018.xls

and this is GetExcelRange:
Image
FiveWin for xHarbour 17.09 - Sep. 2017 - Embarcadero C++ 7.00 for Win32
FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)
Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
User avatar
damianodec
 
Posts: 419
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia

Re: GetExcelRange function

Postby Enrico Maria Giordano » Tue Jul 10, 2018 12:26 pm

Please try with the FILE() function:

Code: Select all  Expand view  RUN
? FILE( cPath+alltrim(aFile[nZ]) )


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8719
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: GetExcelRange function

Postby damianodec » Tue Jul 10, 2018 12:33 pm

hi Enrico, this is:
Image
FiveWin for xHarbour 17.09 - Sep. 2017 - Embarcadero C++ 7.00 for Win32
FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)
Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
User avatar
damianodec
 
Posts: 419
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia

Re: GetExcelRange function

Postby Enrico Maria Giordano » Tue Jul 10, 2018 12:50 pm

It's fine. Then check lOpened value:

Code: Select all  Expand view  RUN
? lOpened


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8719
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: GetExcelRange function

Postby damianodec » Tue Jul 10, 2018 1:00 pm

.F. is the value
FiveWin for xHarbour 17.09 - Sep. 2017 - Embarcadero C++ 7.00 for Win32
FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)
Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
User avatar
damianodec
 
Posts: 419
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia

Re: GetExcelRange function

Postby Enrico Maria Giordano » Tue Jul 10, 2018 1:13 pm

So you have to ask Rao, sorry. I've never used those functions.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8719
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: GetExcelRange function

Postby damianodec » Tue Jul 10, 2018 1:15 pm

ok, thank you, I'm waiting Mr. Rao
FiveWin for xHarbour 17.09 - Sep. 2017 - Embarcadero C++ 7.00 for Win32
FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)
Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
User avatar
damianodec
 
Posts: 419
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia

Re: GetExcelRange function

Postby damianodec » Tue Jul 10, 2018 1:38 pm

in Forum I found this thread:
http://forums.fivetechsupport.com/viewtopic.php?f=3&t=30117&p=172039&hilit=getexcelrange#p172025

and I try this:
Code: Select all  Expand view  RUN
        oExcel   := ExcelObj()
        oBook    := oExcel:WorkBooks:Open( cPath+aFile[nZ] )       
        oRange  := GetExcelRange(cPath+alltrim(aFile[nZ]), , , @lOpened )


and now works...
FiveWin for xHarbour 17.09 - Sep. 2017 - Embarcadero C++ 7.00 for Win32
FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)
Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
User avatar
damianodec
 
Posts: 419
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia


Re: GetExcelRange function

Postby nageswaragunupudi » Sat Jul 14, 2018 1:03 am

Fixed in FWH 18.05
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10662
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 60 guests