Impersonating and Crystal Report

lothos12345

Well-known member
Joined
May 2, 2002
Messages
294
Location
Texas
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.
 
had the same problem a while back. im certain theres some option in crystal that can be set to fix this because it didnt happen to all my reports. however i could never find that option so i

Code:
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);
 
Back
Top