Rank: Newbie Groups: Member
Joined: 4/14/2010 Posts: 1
|
Is there a simple fix for this error?
From Fiddler response:
[NullReferenceException: Object reference not set to an instance of an object.] SmartWebControls.SmartPrint.Web.SmartPrintHandler.ProcessRequest(HttpContext context) +596 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +598 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +170
This is all I'm doing, it worked once or twice and now gives me the above error:
PrintSettings ps = new PrintSettings(); ps.ElementsToPrint = new List<UIElement> { (UIElement) this };
SmartPrintManager printMgr = new SmartPrintManager(); printMgr.AutoGeneratePrintDocumentViewer = true;
printMgr.Print(ps);
Thanks.
|
Rank: Administration Groups: Administration
Joined: 2/25/2008 Posts: 26
|
Can you post the complete Fiddler information and the domain you're calling this from? The trial only works on localhost but you should get a message if you try it on another domain rather than an exception. Without the full Fiddler trace it's hard to say though.
SmartWebControls Team
|