PrintPageEventHandler not working when I upload my site to IIS
Hi all I am having my print code as follows
C#
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.


Vinay SinghRank #604 · 4K reputationPosted Aug 6, 2016, 11:42 PM EDT
awinash kumar82 reputationPosted Aug 7, 2016, 12:49 AM EDT