Windows Printer Dialog

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
Joerg Hamacher
Posts: 124
Joined: Thu Feb 11, 2016 12:01 am

Windows Printer Dialog

Post by Joerg Hamacher »

Hello everybody,

how can I open the windows printer dialog (in a form and / or in a web page)?
And how can I assign the selected printer to the printing process in RDMLX?
Reports are generated and printed with the RDMLX commands.

Best regards,
Joerg
User avatar
Stewart Marshall
Posts: 417
Joined: Thu Nov 05, 2015 5:25 pm

Re: Windows Printer Dialog

Post by Stewart Marshall »

Hi Joerg

Have a look at the Windows Printing Extensions

Regards
Stewart Marshall

Independent IT Consultant
www.marshallfloyd.com.au
Joerg Hamacher
Posts: 124
Joined: Thu Feb 11, 2016 12:01 am

Re: Windows Printer Dialog

Post by Joerg Hamacher »

Hi Stewart,

can I set these extensions "on the fly" in a LANSA form?

Best regards,
Joerg
MarkD
Posts: 692
Joined: Wed Dec 02, 2015 9:56 am

Re: Windows Printer Dialog

Post by MarkD »

This seems to say you can - http://docs.lansa.com/14/en/lansa015/in ... _value.htm
Windows printing extension parameters such as WPEN, WPPN, WPPS, WPPD, WPFD, WPDF, WPDS, WPFO and WPAS may be specified in this parameter. Any value specified in argument 2 should follow the same rules as defined for use of the windows printing extension parameter on the command line. (Refer to Windows Printing Extensions.)
Joerg Hamacher
Posts: 124
Joined: Thu Feb 11, 2016 12:01 am

Re: Windows Printer Dialog

Post by Joerg Hamacher »

Hi Mark,

thank you for this information - it is working!
I put WPEN and WPPD in the initialize event of a form, then called a function with the print commands - and the printer dialog appears.

Best regards,
Joerg
Post Reply