cancel
Showing results for 
Search instead for 
Did you mean: 

How to Prompt User for Export Destination and Export Type

nancy_budd
Participant
0 Kudos

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

and/or

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member184995
Active Contributor
0 Kudos

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.

Answers (1)

Answers (1)

Former Member
0 Kudos

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

nancy_budd
Participant
0 Kudos

I am using the CrystalReportViewer.ExportReport() method.

The 'Export completed' message box is minimized after the export.

I need to know how the focus gets set on this messagebox so that it will pop up in front of our non-vb application.

former_member184995
Active Contributor
0 Kudos

You can only use the viewers export function if you are actually using the viewer on a windows form. You would need to code your own export functionality.

nancy_budd
Participant
0 Kudos

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.

Thanks.