Doctors who use my app cannot wait for a report to be
generated to input data for the next patient, because
the report has many calculations, and prints a complex
graph using Pinacle's Graphic Server. So I now give the
option to "print now" or "batch print later".
To batch, I insert the necessary header and record number
into a file, and use this to create the reports later.
I provide a spinner that resets _pcopies, and print using
PRINTJOB / ENDPRINTJOB.
The first copy of a report is correct. *all* subsequent
copies of the same report print data from the next
(incorrect) record - from *one* REPORT FORM command.
Apparently, _pcopies re-creates multiple instances of a
report, rather than printing multiple copies, and does a
SKIP after the first copy (?).
Can someone provide me with an alternative to _pcopies -
perferably a Windows API call that will set the number of
copies *without* prompting the user?
Best,
Randy Parsons
Ten years software development
Specializing in FoxPro applications
Glendale, CA
See my web page for references:
www.datadepot.com/~parsons