lothos12345 Posted November 20, 2006 Posted November 20, 2006 I am impersonating and administrator logon for one of my visual basic.net applications. My problem comes in when I try to print the a report using the application, it keeps going to the default printer under the administrator account and not the user who is currently logged into the computer. I am working with Crystal Report 9.0, I am stopping the impersonation right before the print but it still goes to the administrator account for the default printer. How can I resolve this? Any help offered is greatly appreciated. Quote
barski Posted November 26, 2006 Posted November 26, 2006 had the same problem a while back. i'm certain there's some option in crystal that can be set to fix this because it didn't happen to all my reports. however i could never find that option so i System.Drawing.Printing.PrinterSettings printSettings= new System.Drawing.Printing.PrinterSettings(); string printerName = printSettings.PrinterName; if(printerName!="") { yourReportDoc.PrintOptions.PrinterName = printerName; } yourReportDoc.PrintToPrinter(1,false,0,0); Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.