main logo
Subject: RE: Print to file problem
Author: "alan wyne"
Posted: 2003/08/30 19:12:00
 
View Entire Thread
New Search


Have you done a file search for any matching files with any extension on the
system?
i.e. bnaronresp20030824*.*

Just an off the wall idea, but is it writing the filename as
bnaronresp20030824.prn.txt (or some other extension)?

Or is the way it is reading the server path sending to a different location?

Alan Wyne

-----Original Message-----
From: profox-bounces At leafe .D.OT com [mailto:profox-bounces@leafe.com]On
Behalf Of James Roark
Sent: Saturday, August 30, 2003 2:31 PM
To: ProFox Email List
Subject: Print to file problem


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


[excessive quoting removed by server]





 
©2003 alan wyne
<-- Prior Message New Search Next Message -->