awinash kumar

awinash kumar

  • 1.6k
  • 67
  • 1.6k

PrintPageEventHandler not working when I upload my site to I

Aug 7 2016 1:26 AM

 

PrintPageEventHandler not working when I upload my site to IIS

 

 

Hi all I am having my print code as follows
public void print() {
 try {
PrintDocument pd = new PrintDocument();
 pd
.PrintPage += new PrintPageEventHandler(pd_PrintPage);
 pd.PrinterSettings.PrinterName = "SnagIt 10";
pd
.Print();
} catch (Exception Ee) { } }

Which works fine when I build and run directly from the application, but when I host my application to my IIS I am unable to print to Snag IT what might stopping this to happen can some one tell.


Answers (2)