Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

output clarion report to disk

Status
Not open for further replies.

jjyxk845

Programmer
Aug 22, 2002
18
GG
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
 
Not that i know of but if i recall correctly clarion uses a queue which stores the path of the meta files used for the reports (cant remember the name on the spot).

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 ...
 
There is a 3rd party template available which allows you to store your reports for later printing. I think you can also sent them as attachments to e-mail, etc. I can't remember which one it is, but if you post your question in the 3rd party area of the SoftVelocity news group I'm sure they'll find you. <S>

HTH,
Rick
 
If you set up a generic text printer on your machine, and set the port to be a file, Then print to that printer, you can output text.

Its a little crude, but It works

HTH

Mark
 
What I have done is
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top