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'.