R – Autogenerate ReportClass for Crystal Report

asp.netcrystal-reports

I'm fairly new to Crystal Reports. I have recently taken over an ASP .NET project which contains some crystal reports. There are some .rpt files with corresponding .vb files. The VB files define classes which inherit from ReportClass. I have made a new Crystal report and added it to the solution, but I only have the .rpt file and I have no idea how to generate the corresponding ReportClass. Does anyone know how to do this?

Edit
I've edited the file's Custom Tool property to be "CrystalDecisions.VSDesigner.CodeGen.ReportCodeGenerator" and change the Build Action to "Embedded Resource" and then right-clicked the file and selected "Run Custom Tool." I get an error:

"Cannot find custom tool
'CrystalDecisions.VSDesigner.CodeGen.ReportCodeGenerator' on this
system."

FYI I have Crystal Reports XI installed.

Best Answer

It doesn't generate when you build the project? Did you try specifying the same "custom tool" to use in the vs properties on the .rpt file?

Related Topic