Print report on network Printer

Hi Guyz ,

I am wondering if someone can help me please . I have a report which i am calling from batch class . I just want this report to print on specific printer . I have over ridden the init() method with following code

str printer;

printjobsettings printjobsettings;

super();

printer="\RIP3\Warehouse HP LaserJet 4100";

element.deviceName(printer);

element.printJobSettings().setTarget(printMedium::Printer);

element.printJobSettings().preferredTarget(printmedium::Printer);

element.printJobSettings().copies(1);

But when ever i run this report it use the default printer . I dont know what is wrong with this code .

I will appreciate your help .

Regards,

Hi,

for a network printer try :

.deviceName(@"\RIP3\Warehouse HP LaserJet 4100");

(without “@” no print on network printer)

Hi,

I have similar problem with copie, i set 3 copies, but it prints only 1. What is the problem?

And another question, I select few invoice, and i want to print it directly, but can i have printer dialog while it goes to printer?