Crystal report Print

Hello All,

I am trying to print the Crystal report directly without viewing the report.

I am using follwing code to give print.......

chReport:SelectPrinter("HP LaserJet P3005 PCL 6", "bs_01_printer1", "IP_10.55.2.91").
chReport:paperOrientation() = 1.
/* 0 = Printer Default; 1 = Portrait; 2 = Landscape */
chReport:printOut(FALSE).

where driver name = "HP LaserJet P3005 PCL 6"
printer name = "bs_01_printer1"
port number = "IP_10.55.2.91"

Still the prints are going to default printer. Prints are not going to the Bs_01_printer1.

Please help me with this.
Thanks in advance
 
Top