Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

print to specific printer in macro

hi all,

I want to print to a object (CH01) to a specific printer (printer 1).

I have looked at some codes and want to combine them.

code 1: print object looks like this:

sub PrintReport

set lb=ActiveDocument.GetSheetObject("CH01")

lb.Print

end sub

Code 2: print report to specific printer

sub PrintReport

ActiveDocument.PrintReport "RP01", "Printer 1"

end sub


i have tried combining them and ended up with the following code.


sub PrintReport

set lb=ActiveDocument.GetSheetObject("CH01")

lb.Print, "Printer 1"

end sub



sadly this does not work as i expected(no surprise).

can you please help me.

0 Replies