Skip to Content
0
Former Member
Oct 08, 2009 at 02:17 AM

Using Session and ReportDocument.Close()

35 Views

I'm assigning the report into Session since it's the only way the prev and next buttons would work. After I added the Page_Unload event to close and dispose the report document I'd get "Object reference not set to an instance of an object." when I try to go to the next page. Is there another way to close and dispose the report document other than in the Page_Unload event?

Thanks.