Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FRX2Word and different paths
Message
From
01/09/2000 02:35:06
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
FRX2Word and different paths
Miscellaneous
Thread ID:
00411610
Message ID:
00411610
Views:
49
I find FRX2word quite a usefull component.
But i experienced the following problem:
my report rpttest.frx is in the path v:\reports
this report is based on a table tbltest which resides in v:\tables
My program prgTest.prg resides in v:\modules

When i execute prgtest (which is not more than the standard code you can find in frx2words helpfile), the program halts with the following message:

"cannot find table v:\reports\tbltest.dbf"

That is true, cause tbltest.dbf resides in v:\tables.

De debugger showed that the class halted at the following position:
* Report form *

for i = 1 to this.cursors
F2W_cUseCommand=allt(F2W_cCurSource[i])
if !empty(allt(F2W_cCurAlias[i]))
F2W_cUseCommand=F2W_cUseCommand+" ALIAS "+allt(F2W_cCurAlias[i])
endif
if !empty(allt(F2W_cCurOrder[i]))
F2W_cUseCommand=F2W_cUseCommand+" ORDER "+allt(F2W_cCurOrder[i])
endif
if !empty(allt(F2W_cCurDBC[i])) and file(allt(f2w_cCurDBC[i]))
F2W_cUseCommand=cReportPath+allt(F2W_cCurDBC[i])+"!"+F2W_cUseCommand
else
F2W_cUseCommand=cReportPath+F2W_cUseCommand
endif
x=trans(i)
select &x
Here !----> use &F2W_cUseCommand
if !empty(F2W_cCurFilter[i])
set filter to &F2W_cCurFilter[i]
endif
endfor
select 1
endif

Is there anyone who experienced the same problem and managed to solve it ?

Many thanks in advance: Bjorn
Next
Reply
Map
View

Click here to load this message in the networking platform