2
Answers

PrintPageEventHandler not working when I upload my site to I

awinash kumar

awinash kumar

8y
492
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)
0
awinash kumar

awinash kumar

NA 11 718 8y
no error is coming that's strange for even nothing is in eventviewer log.
you can try the sample code at you end i think same issue occures.
0
Vinay Singh

Vinay Singh

NA 5.9k 126.1k 8y
Are you getting any kind of error.