I have a web applications using CR. I have a report defined using a dataset.
The form is as follows:
<table>
<% if(!running) {%>
<tr>
<td>Web Fields to gather report criteria</td>
</tr>
<tr>
<td>Run Report Button Done Button</td>
</tr>
<% }else{ %>
<tr><td>
CR Viewer Control
</td></tr>
<tr>
<td>New Criteria Button Done Button</td>
</tr>
<% } %>
</table>
On First Load running is false
user picks criteria and runs report
report is run and assigned to viewer and stored in Session["MYREPORT"]
Problem:
When I use the viewer Change Page Button, No issues,I can click on my buttons and they work as designed
New Criteria disposes ReportDocument and sets Viewer Source to null
Done disposes ReportDocument and sets Viewer Source to null then Response.Redirect to a default page
When I print or Print and Cancel
My buttons seem to fail. The code is properly invoked. The variables are all set properly (I even checked the running variable in
the web page to separate the criteria section from the viewer). But the page returns and shows the viewer.
I either get an error or not. The error that does occasionally occur is:
Cannot evaluate expression... native... call stack
WTH is going on behind th scenes here.... I have already had to rewrite a module to handle CSV exports.... to remove the headers and collumn names from every record.....
BTW, exporting to PDF using the viewer does not adversely affect my navigation