p_gauri7
asked on
Crystal Report Export options
Hi,
I am using Vb.NET 2005 and Crystal Reports that come with it. I want to export the report only in word format by clicking crystal report viewer's 'Export Report' button. Is there any way to make the Export file type to .doc only? Currently it defaults to .Rpt. I would like to know if there is a way to make it display .doc by default?
Thanks,
Gauri
I am using Vb.NET 2005 and Crystal Reports that come with it. I want to export the report only in word format by clicking crystal report viewer's 'Export Report' button. Is there any way to make the Export file type to .doc only? Currently it defaults to .Rpt. I would like to know if there is a way to make it display .doc by default?
Thanks,
Gauri
Yes there is. You need to install only the Word export dlls.
If there are other export dlls, it will select the first one as the default.
mlmcc
If there are other export dlls, it will select the first one as the default.
mlmcc
ASKER
emoreau,
The problem with the solution you have given is that the path to store the report be hard coded. I have to give the user the option where to store the report file.
Gauri
The problem with the solution you have given is that the path to store the report be hard coded. I have to give the user the option where to store the report file.
Gauri
you just need to replace Forms.Application.StartupP ath with the path provided by your user
ASKER
Is ther any event to capture the export button click of the crystal report viewer so that I can get the path selected by the user thru the file dialog and provide it to the ExportToDisk()?
gauri
gauri
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks mlmcc and emorea. I think it wonlt be possible to add the default file type .doc in the file dialogue of Export button of the crystal report viewer.
I will split the points between you two.
Gauri
I will split the points between you two.
Gauri
Glad i could help
mlmcc
mlmcc
C#
CrystalDecisions.Windows.F
viewer.ReportSource = ...
CrystalDecisions.CrystalRe
reportClass.ExportToDisk(C