Skip to Content

How to Prompt User for Export Destination and Export Type

in VB6, we could use the RDC's CRAXDRT.Report Export method to prompt the user for the Export Destination and Export FileType.

With .NET, is there any way to prompt the user in the same way?

I have found with the CrystalDecisions.CrystalReports.Engine.ReportDocument object model, you must pre-fill the export type and destination. We want to be able to prompt the user for this information at the time the method is executed. We do not want them to pre-select a type or destination.

I have tried using the CrystalReportViewer Export method, and this will work, however a messagebox with Export Completed executes after the export. The problem with this is that this messagebox is minimized so it appears as if our application is hanging.

Any ideas on:

1. How to prompt the user for export type and destination at method execution


2. How to set the focus on the messagebox if use the crystalreportviewer export method.

Thank you

Using CRXIR2-SP3 and VB.NET 2005 - not using CR embedded in .NET 2005

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jun 06, 2008 at 02:44 AM

    You will need to create your own popup/form that prompts for the export options that you want the user to specify and then use their selectons for the export.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 10, 2008 at 06:04 PM

    You can also use the CrystalViewer's ExportReport() method to get the Export window.

    Add a comment
    10|10000 characters needed characters exceeded

    • I've opened a case with Business Objects, and they've said the same thing.

      The RDC and .NET for Crystal are very different. As BO put it, the RDC was a much more 'robust' product than the .NET for Crystal. But, they came to the same conclusion that the Viewer methods have only been tested with the Viewer and not the way we want to use them.

      They have submitted my issue as an enhancement request that will make the ReportDocument object model prompt for parameters should no parameter values get passed in via code.


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.