anbu s

anbu s

  • 1.5k
  • 483
  • 27.5k

iis printing process is not working

Jun 20 2018 12:11 AM
hi ,
 
      I have created asp.net web application using printing program it's working in local but IIS not working. Print SaveAs popup is not open. Please help. 
 
sample code:
 
ProcessStartInfo processstarinfo = new ProcessStartInfo();
string processpath = System.AppDomain.CurrentDomain.BaseDirectory + "TaxInvoice" + sysname.Trim() + ".txt";
processstarinfo.FileName = processpath;
processstarinfo.Verb = "Print";
processstarinfo.WindowStyle = ProcessWindowStyle.Hidden;
processstarinfo.CreateNoWindow = true;
Process p1 = new Process();
p1.StartInfo = processstarinfo;
p1.Start();
 

Answers (5)