Print to file

Meeting place for R&R customers and clients to share tips and ideas. Post your questions, messages or problems here.
Post Reply
Ben_(Guest)
Posts: 9
Joined: Tue Oct 10, 2017 12:44 pm

Print to file

Post by Ben_(Guest) » Tue May 22, 2007 5:16 am

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?

Ben_(Guest)
Posts: 9
Joined: Tue Oct 10, 2017 12:44 pm

==> RE: Print to file

Post by Ben_(Guest) » Tue May 22, 2007 10:47 pm

How do you do this?____You then output the summary band to a text file

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: Print to file

Post by kfleming » Wed May 23, 2007 9:25 am

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

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

===> RE: Print to file

Post by kfleming » Thu May 24, 2007 10:36 am

You can use File Export and then select Text as the export type.____Kathleen__R&R Support

Post Reply