Page 1 of 1
Printing to a file
Posted: Tue Feb 19, 2002 7:46 am
by Nico_(Guest)
Hi,____I want to print to a file using Ri_outfile, including printer codes. It can only be done by setting the ri_printer to ^D^. Setting ri_printer to ^P^ results in printing directly to the printer.____The reason for this is that we want to add some pcl code at the beginning of the file before sending it to a queue.____Adding the pcl code in the report does not help cause it seems the Windows printer driver makes some unreadable garbage from it.____Any ideas??____Thanks.
=> RE: Printing to a file
Posted: Tue Feb 19, 2002 9:26 am
by kfleming
What is the added PCL code meant to do?____Kathleen__R&R Support
==> RE: Printing to a file
Posted: Wed Feb 20, 2002 5:32 am
by Nico_(Guest)
____We add some escape sequences for a faxserver (Tel no, id).____Here is the flow:____1 ReportCall (rr8 or rr5)__ (makes a file)____2 Add some escape sequences at beginning of created file____3 Place file in queue by using nprint or print__ (or do someting else for another process,whatever)____4 Faxserver/printserver handles the faxjob.__ (or external process handles the file)____So, its not neccesary pcl. In some cases we add some XML tags at__beginning and end of file for a Xml poller. We just want have control over the output file.____We ^ve tried to print to a file via the windows driver. But the window driver ask^s for a filename, and we dont want user interaction.____We also tried to use a rrunin parameter. But we can^t find ^our^ code in the generated PCL file. Probably ^cause the window^s drivers are more advanced than the rr5 drivers.__________
===> RE: Printing to a file
Posted: Wed Feb 20, 2002 7:33 am
by kfleming
If you try to add PCL within the report, R&R will not send the codes to the printer.__If you add XML tags however and export the report to a text file, that might give the desired result.____Kathleen__R&R Support
====> RE: Printing to a file
Posted: Wed Feb 20, 2002 8:53 am
by Nico_(Guest)
1 Why doesn^t rr send the codes?____2 Why uses rr8 ri_outfile only when using a preview?____In rr5 it all works.