I have a really bad situation that I have fighting for over a week: VFP6/sr5 nonGUI app that gets data from a SQL server, formats and prints a report to a file. Set up as a exe that will run on a robot server (CA Unicenter). The first version is running fine every day - prints out three reports to files then files are sent to appropriate printers. This version adds two reports to the original app (also written by me). I can get the reports file to print while running within Fox but running on desktop will not print reports. App will write a log file and the remote messaging shows a file being written but no physical file. I have questioned the usual suspects: REPORT FORM BNANORESP TO FILE (CFILENAME) NOCONSOLE Cleared the memo fields on the reports, Set print to default ETC. BTW = cfilename is format cfilename="\serversharefoldernaronresp20030824.prn" Older app runs OK but I cant get this one to fire a file. no errors no messages no indication of any failures at all. Note: older app writes file to default folder - so nopathing is involved. The logfile writes Ok to same path. cString = "log message' cfile = "\serversharefolderlogfile.txt" Strtofile(cString, cfile, .t.) I know I have overlooked something obvious but we just can't seem to fine what. Remember - this does work running the exe from the command line but does not work when clicking the exe in a test (empty) folder. TIA Jim Roark, Dallas Foxil
©2003 James Roark |