Programatically Export Crystal Report Drilldown or Subreport
Posted on 2011-03-01
I'm using CRXI in ASP.NET to display reports, and also programatically generating PDF and XLS files in the background in case the user wants to save or print a copy. The problem is, when the user is currently in a drill-down view and 'prints', he only wants to print his current view on his page.
How can I tell what he's currently viewing and export only that? Can I 'read' the drop-down in the viewer, can I catch the data on the DrillDown event, something? I can't use the CR built-in export button, it has to be my own code.