output clarion report to disk
output clarion report to disk
(OP)
Hi
In the dos versions of clarion you had the option of sending a report to screen/printer/disk is this possible in clarion5 or 5.5
many thanks
JJ
In the dos versions of clarion you had the option of sending a report to screen/printer/disk is this possible in clarion5 or 5.5
many thanks
JJ
RE: output clarion report to disk
You could just use the copy command and loop thru the queue to copy these files to a place of your liking instead/before it gets flushed to the printer.
Or set up a printer that prints to a file and use that for the report. its a bit messy i know but if you are desperate ...
RE: output clarion report to disk
HTH,
Rick
RE: output clarion report to disk
Its a little crude, but It works
HTH
Mark
RE: output clarion report to disk
1. First I write my report in ASCII file.
2. If I want to view in on screen then I use View Ascii file template to generate viewer procedure
3. And the last important step is to print DOS Like report to windows printer. This can be done by using Windows API!
Use:
OpenPrinterA(*cstring,long,long=0),BOOL,PASCAL,RAW
WritePrinter(unsigned,long,ulong,*ulong),BOOL,PASCAL,RAW
ClosePrinter(Unsigned),BOOL,PASCAL
StartDocPrinterA(unsigned,ulong,long),ulong,PASCAL,proc
EndDocPrinter(unsigned),BOOL,PASCAL,proc
EndPagePrinter(unsigned),BOOL,PASCAL,proc
StartPagePrinter(unsigned),BOOL,PASCAL,proc
GetPrinterA(unsigned,ulong,long,ulong,long),bool,pascal,raw
SetPrinterA(unsigned, ulong, long, ulong),bool,pascal,raw
Then you can print your ascci file just like Dos command do with C:>type readme.txt > PRN without going to dos
Note: You must set OS to windows-32 bit in you project properties