GetExcelRange function

Post Reply
User avatar
damianodec
Posts: 422
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia
Contact:

GetExcelRange function

Post by damianodec »

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

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

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: 422
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia
Contact:

Re: GetExcelRange function

Post by damianodec »

hi Enrico,

Code: Select all | Expand

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
Enrico Maria Giordano
Posts: 8767
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 5 times
Contact:

Re: GetExcelRange function

Post by Enrico Maria Giordano »

Please try with the FILE() function:

Code: Select all | Expand

? FILE( cPath+alltrim(aFile[nZ]) )


EMG
User avatar
damianodec
Posts: 422
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia
Contact:

Re: GetExcelRange function

Post by damianodec »

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
Enrico Maria Giordano
Posts: 8767
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 5 times
Contact:

Re: GetExcelRange function

Post by Enrico Maria Giordano »

It's fine. Then check lOpened value:

Code: Select all | Expand

? lOpened


EMG
User avatar
damianodec
Posts: 422
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia
Contact:

Re: GetExcelRange function

Post by damianodec »

.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
Enrico Maria Giordano
Posts: 8767
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 5 times
Contact:

Re: GetExcelRange function

Post by Enrico Maria Giordano »

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

EMG
User avatar
damianodec
Posts: 422
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia
Contact:

Re: GetExcelRange function

Post by damianodec »

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: 422
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia
Contact:

Re: GetExcelRange function

Post by damianodec »

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

        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
nageswaragunupudi
Posts: 10729
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 10 times
Contact:

Re: GetExcelRange function

Post by nageswaragunupudi »

Fixed in FWH 18.05
Regards

G. N. Rao.
Hyderabad, India
Post Reply