Click here to Skip to main content
15,908,841 members

Comments by Alex14678 (Top 2 by date)

Alex14678 13-Jun-16 23:53pm View    
I want to print the pdf document even if Adobe software are not installed. Is there any such code that suits the mentioned requirement?
Alex14678 2-Jun-16 9:04am View    
Currently I am getting unknown exception 1346. Actually the copying is from local drive to mapped drive.
Code as below:
AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal);
WindowsIdentity identity = new WindowsIdentity(username, password);
WindowsImpersonationContext context = identity.Impersonate();

string updir = @"\\NTP-228\Alex\test1.txt";
string destPath = @"D:\Alex_BackUp\Test\test1.txt";
File.Copy(destPath,updir,true);