Printing to a file

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

Printing to a file

Post by Nico_(Guest) » Tue Feb 19, 2002 7:46 am

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.

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

=> RE: Printing to a file

Post by kfleming » Tue Feb 19, 2002 9:26 am

What is the added PCL code meant to do?____Kathleen__R&R Support

Nico_(Guest)
Posts: 3
Joined: Tue Oct 10, 2017 12:44 pm

==> RE: Printing to a file

Post by Nico_(Guest) » Wed Feb 20, 2002 5:32 am

____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.__________

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

===> RE: Printing to a file

Post by kfleming » Wed Feb 20, 2002 7:33 am

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

Nico_(Guest)
Posts: 3
Joined: Tue Oct 10, 2017 12:44 pm

====> RE: Printing to a file

Post by Nico_(Guest) » Wed Feb 20, 2002 8:53 am

1 Why doesn^t rr send the codes?____2 Why uses rr8 ri_outfile only when using a preview?____In rr5 it all works.

Post Reply