Information générale
Titre:
FRX2Word and different paths
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement