c# - How to allow an activex object to print? -


i have activex control in web page print out bills. works fine on local when try in remote server, can't print out, gives me error.

system.security.securityexception: request permission of type 'system.drawing.printing.printingpermission, system.drawing, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a' failed.

the role of user app running under, doesn't have permission print. please give user, permission print.

or check application's .net trust level (you can find in features view of web application in iis management console)

add attribute above method, in making activex object , requesting print.

[system.security.permissions.permissionset(system.security.permissions.securityaction.assert, unrestricted = true)] public void blabla [    //your code } 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -