The following code works on my development machine to create a targetfile and to put the html string into X. If I build and deploy an exe with this code to another machine without the path and file I get the targetfile created but it is zero KB in size and there is nothing put into variable X.
When I run the code up to the break point, I find that the "lolistener.CommandClauses.File" property contains the full path and file name of "tryprint.frx".
If I create a folder path on the deployment machine with tryprint.frx (not including tryprint.frt) the project will now run correctly on the development machine. (Note, I do have the report included in the project when I build the exe.)
How can I get lolistener.command clauses to stop looking for the frx. It must just need to see it since it isn't really reading the memo file.
....
SELECT * from category INTO CURSOR asdf ORDER BY 5
loListener = .Null.
DO (_ReportOutput) WITH 5, loListener
* loListener is the reference, lolistener.type = 5
loListener.quietmode = .t.
set step on
REPORT FORM tryprint OBJECT loListener
* lolistener.targetfilename will be the default random.htm in user temp directory
x=FILETOSTR(lolistener.targetfilename)
....
I use Ishield Express 5 with redistributables including msxml 4.0, msxml 4.0, msvfp9 runtime libs, msc runtime 7.1,gdiplus redist, and msvfp9 report applications to deploy on a test machine. The code returns the reccount() of "printfile" so I know it has the proper number of records in it. Then creates atemptarget.html on the disk but it has 0kb. The everyone user has full control properties on the /output folder. The dcom properties are correct for the exe (it runs without an error). Am I missing a redistributable? What else can I check for.
Paul Emery