2
Answers

PrintPageEventHandler not working when I upload my site to I

awinash kumar

awinash kumar

8y
488
1

 

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)