Page 1 of 1
Print to file
Posted: Tue May 22, 2007 5:16 am
by Ben_(Guest)
I print reports through my accounting software (Cougar Mountain) and I was trying to figure out how to print the data to a file. I cannot use the ini file RI_PRINTER etc.. ____Problem is, I would need the file name to change. I^d like it to be the invoice number. I can print to file using my software but the file name is set and cannot be changed. If I set up the printer in RR to "print to file" I also have to enter the file name and I got an empty text file.. blank.. 0kb.. ____Any work-arounds?
==> RE: Print to file
Posted: Tue May 22, 2007 10:47 pm
by Ben_(Guest)
How do you do this?____You then output the summary band to a text file
=> RE: Print to file
Posted: Wed May 23, 2007 9:25 am
by kfleming
If you do not mind printing the report twice, there is a roundabout way to get there. Every time you run a report in Cougar, it adds a record to the file CMSRUNIN.DBF that is in the main cougar folder. This DBF is a R&R runtime control file that has the inputs to the report.____So you run the report in Cougar so that the last record is your report that you want to output to file.__You then create an R&R report and place the fields from the CMSRUNIN.DBF in the summary band so that it captures the last record in the file. You use one line per field and add text add the start of the line with the field name.__Example:__RI_REPORT= <place CMSRUNIN->RI_REPORT here>__RI_MASTER= <place CMSRUNIN->RI_MASTER here>____And you add a line that has__RI_OUTFILE=<your file name>____You then output the summary band to a text file and then use this text file as a runtime input file. So you would export to myreport.txt and then run the command line:__RRWRUN.EXE /Tmyreport.txt__ __Takes a few steps but will get you the desired result.____Kathleen__R&R Support
===> RE: Print to file
Posted: Thu May 24, 2007 10:36 am
by kfleming
You can use File Export and then select Text as the export type.____Kathleen__R&R Support