Crystal Reports in VB.Net 2003
-
Hi, I need to print Receipt(Bill) in VB.Net application. I created that Receipt using crystal report wizard and I put report name as myBill.rpt. My application has "Print" button. I need to print that receipt directly after clicking that "Print" button without using Crystal Report Viewer tool. Is it possible? What are the coding I'll add to that "Print" button. Any one can help me, pls send me some sample code ? Regards Kusal
-
Hi, I need to print Receipt(Bill) in VB.Net application. I created that Receipt using crystal report wizard and I put report name as myBill.rpt. My application has "Print" button. I need to print that receipt directly after clicking that "Print" button without using Crystal Report Viewer tool. Is it possible? What are the coding I'll add to that "Print" button. Any one can help me, pls send me some sample code ? Regards Kusal
Kusal wrote:
Is it possible? What are the coding I'll add to that "Print" button. Any one can help me, pls send me some sample code ?
Off course ,possible.. try this code in Print button's Click event
Dim myRpt as myBill myRpt .Refresh() myRpt .PrintOptions.PrinterName = "Path of the printer" myRpt .PrintOptions.PaperSource = "Printer tray" myRpt .PrintToPrinter(1, False, 1, 1)
hope it will workTirtha Miles to go before I sleep
-
Kusal wrote:
Is it possible? What are the coding I'll add to that "Print" button. Any one can help me, pls send me some sample code ?
Off course ,possible.. try this code in Print button's Click event
Dim myRpt as myBill myRpt .Refresh() myRpt .PrintOptions.PrinterName = "Path of the printer" myRpt .PrintOptions.PaperSource = "Printer tray" myRpt .PrintToPrinter(1, False, 1, 1)
hope it will workTirtha Miles to go before I sleep