Skip to Content
0
Nov 12, 2019 at 03:02 AM

[ ABAP OLE ] How to print with local non-system default printer?

309 Views

Mentors,

Now I want to use abap ole technology to print an excel sheet. But with the following code, the system default printer is used every time. This is not what I want. I want to set another printer in my code. Is there any way to print with the printer I set up which is a non-system default printer?

GET PROPERTY OF O_EXCEL 'ACTIVEWORKBOOK' = O_TMPL_WORKBOOK.
CALL METHOD OF O_TMPL_WORKBOOK 'PRINTOUT'.