how to change the default export type in crystal report viewer from rpt to anything else (pdf / xls ...etc)

Madmiro
Madmiro used Ask the Experts™
on
how to change the default export type in crystal report viewer from rpt to anything else (pdf / xls ...etc), if this is not applicable please advise how could I prompt the same dialog for the user programatically for the currently displayed report in a crystal report viewer control ...
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Mike McCrackenSenior Consultant
Most Valuable Expert 2011
Top Expert 2013

Commented:
I don't know of a way to do that with the Crystal export button

You could add your own buttin to the viewer and controll it through code.

mlmcc

Author

Commented:
Can you post a sample of this code
Mike McCrackenSenior Consultant
Most Valuable Expert 2011
Top Expert 2013

Commented:
Learn Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

Author

Commented:
hi mlmcc,
I have VS2008 and this sample project doesn't doesn't seem to have a valid vbproj file, if you was able to view this sample please copy the code and paste it here... Thanks
Mike McCrackenSenior Consultant
Most Valuable Expert 2011
Top Expert 2013

Commented:

Author

Commented:
mlmcc, thanks for your help but this will not do it the way it should be, this will not allow the user to simply choose the export format type from a file dialog box
Mike McCrackenSenior Consultant
Most Valuable Expert 2011
Top Expert 2013

Commented:
You could have the button open a new form and present the diakog as desired.  When selected you thenexecite the code.  

You will need to have a selection porcess to handle each export type with the appropriate codee.

mlmcc
C# ASP.NET Developer
Top Expert 2010
Commented:
http://social.msdn.microsoft.com/Forums/en/vscrystalreports/thread/58297c7f-3a43-4092-baa2-43fd513e391f

>>I decided to replace the export button with a custom one that looks identical. Then I can set up my own click handler, prompt for the export type, savefile dialog and call exportToDisk on the reportDocument.<<

Private Sub HandleExport()
...

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial