Anita Level: Big Cheese
 Registered: 19-05-2005 Posts: 24
|
server side crystal printing
I'm using the PrintToPrinter method to print a Crystal report (Ticket.rpt). The report is part of my VB project.
Here is the code:
Dim oRptTkt As New Ticket()
oRptTkt.PrintOptions.PrinterName = "someprinter" 'printerName
oRptTkt.PrintToPrinter(1, False, 0, 0)
I'm getting error msg: Request cancelled by user.
I've modified Machine.config to run framework under SYSTEM instead of local machine account. Have given access to printers to the SYSTEM account.
Still get error -- Request cancelled by user.
Can someone help? Thanks,
|