I build the following code in a project to an exe which I then call from a vfp 9 mtdll that is called from an asp page. On my development machine I get a great html stream displayed on the IE browser. When I deploy this on a test machine the target file is created but is empty so nothing is returned.
Define Class getreport as Custom OlePublic
...
...
SELECT * from category INTO CURSOR asdf ORDER BY 5
loListener = .Null.
DO (_ReportOutput) WITH 5, loListener
loListener.quietmode = .t.
REPORT FORM tryprint OBJECT loListener
X=FILETOSTR(lolistener.targetfilename)
REturn X
I have found that the "loListener.commandclauses.file" property contains the development machine's full path reference to the frt and frx of "tryprint". Of course this file path is not on the deployment test machine. If I create the folders and put the frx/frt files on the deployment box the exe performs correctly. The frx is included in the project when the exe is built.
Why should I need to also have copies outside the exe???
What am I missing.