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 to printer directly

Former Member
0 Likes
1,194

Hi experts,

I would like to know is there any way to send a form to printer directly, I have a program which can print out a document, after input the document number and click execute, it will pop-up the printer setting, choose output device, frontend printer etc. But I want to skip this screen, directly send to printer, but another problem is the printer is use OS default printer, which can be a PDF. I want to skip too. Actually, I just want to send a document to printer device when execut, no more option for choose. Thanks!

8 REPLIES 8
Read only

Former Member
0 Likes
1,148

You can do this by setting the smartform control parameters.

W_CTRLOP-NO_DIALOG = 'X'.

This will print directly without poping up any windows.

Read only

0 Likes
1,148

But i also want to choose the specific printer, not use windows default one. thanks!

Read only

0 Likes
1,148

You can do this also by smarform contol parameters.

w_ctrlop-device = 'LP01'.

'LP01' is the printer name where u want to print.

Read only

0 Likes
1,148

Can I use at Form script? Thanks!

Read only

0 Likes
1,148

Sorry i dont get your question....Does it mean u want to use the same thing in

script?

Read only

0 Likes
1,148

Hi,

You can do the same thing in smartforms & scripts. By default it will accept the printer as LP01, all you have to do is that you've to make that printer as Default Printer from which you want to take the print out.

Rgds

Prateek

Read only

Former Member
0 Likes
1,148

RSTXPDFT4

Read only

0 Likes
1,148

Well I think the question was not for converting to PDF format. It was for sending the document to printer directly without showing the dialog screen.