cybeh
asked on
Directlly Export crystal report to an Excel file
Hi,
I am using VB and Crystal Report XI. May I know how can I export crystal report directly to excel once it's generated?
I know if I want it to be print, I can call this
CRViewer1.PrintReport
Is there anything that I can do to export to excel?
Please advice. Thanks.
I am using VB and Crystal Report XI. May I know how can I export crystal report directly to excel once it's generated?
I know if I want it to be print, I can call this
CRViewer1.PrintReport
Is there anything that I can do to export to excel?
Please advice. Thanks.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Really appreciate if someone can convert dylanyee code into VB. Thanks.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
m_Report.ExportOptions.Exp ortFormatT ype = ExportFormatType.Excel
The of "ExportFormatType" of "ExportFormatType.Excel" gave error of variable not defined.
The of "ExportFormatType" of "ExportFormatType.Excel" gave error of variable not defined.
You may need to include additional dlls or VB may use different constants.
If you delete Excel and the . then add the . do you get a list?
mlmcc
If you delete Excel and the . then add the . do you get a list?
mlmcc
I think ExportFormatType is reference from CrystalDecision.shared dll, I can't figure it out now since I am away from my office currently.
dylan
dylan
ASKER
"If you delete Excel and the . then add the . do you get a list?"
NO
NO
ExportFormatType is reference from CrystalDecisions.Shared.
CrystalDecisions.Shared.Ex portFormat Type
Could you try add a reference to CrystalDecisions.Shared.dl l and add Import CrystalDecisions.Shared to your code?
dylan
CrystalDecisions.Shared.Ex
Could you try add a reference to CrystalDecisions.Shared.dl
dylan
Glad i could help
mlmcc
mlmcc
http://support.businessobjects.com/library/kbase/articles/c2016289.asp
Spykair