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.
LVL 6
judgekingAsked:
Who is Participating?
 
judgekingConnect With a Mentor Author Commented:
I found my own solution to this by creating a second report showing all details and subreports, then programmatically directing the user from the main report.
0
 
mlmccCommented:
I don't know of a way to capture what is being drilled into or the subreport that is open.

mlmcc
0
 
judgekingAuthor Commented:
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?
0
Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

 
mlmccCommented:
As far as I know there is no way to just export the drilldown unless you know the page numbers to export.

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

mlmcc
0
 
judgekingAuthor Commented:
(no other experts provided any solutions, as usual)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.