Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Send file from Application server to printer

Former Member
0 Likes
361

Hi,

I have a file in application server i want my program to directly fetch the file from the application server and send it to the printer?

Can any one please help me in this?

Thanks,

Sandeep.

2 REPLIES 2
Read only

Clemenss
Active Contributor
0 Likes
323

Hi Sandeep,

open/read dataset as text file, use WRITE / to output to spool. No way to circumvent the spool.

Regards,

Clemens

Read only

Former Member
0 Likes
323

Hi Clemens & Sandeep, hi everybody.

you may "surround" the write statements with a NEW-PAGE PRINT ON... NEW-PAGE PRINT OFF in order to send the output directly to the printer.

For example:


  WRITE: / 'Hi, on screen'.

  NEW-PAGE PRINT ON.
  WRITE: / 'now to the printer'.
  NEW-PAGE PRINT OFF.

  WRITE: / 'back on screen'.

I hope it helps. Kind regards,

Alvaro