Link to home
Start Free TrialLog in
Avatar of judgeking
judgekingFlag for Canada

asked on

Programatically Export Crystal Report Drilldown or Subreport

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.
Avatar of Mike McCracken
Mike McCracken

I don't know of a way to capture what is being drilled into or the subreport that is open.

mlmcc
Avatar of judgeking

ASKER

The generated report with data is saved on the webserver already.  I can get the drill-down level from the CR event on the page.  So what I'd like to do is open that saved report, drill down into the same details and export that drill down.  Does that sound any more plausible?
As far as I know there is no way to just export the drilldown unless you know the page numbers to export.

mlmcc
Is it possible to catch the event when the export or print button is clicked on the report viewer?
I don't think so.

mlmcc
ASKER CERTIFIED SOLUTION
Avatar of judgeking
judgeking
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
(no other experts provided any solutions, as usual)