Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tutorial on runtime programming of CR? in .NET

Status
Not open for further replies.

drdad5727

Programmer
Feb 28, 2005
28
US
I'm looking for a tutorial on the run time programming aspects of CR. I am not looking for help on writing CR reports, but rather modifying their behavior at run time. I have an example that uses the COM/ActiveX interface to Crystal, but I want to do it in .NET. So, a tutorial or advice on how to convert from one to the other would be nice.

First, I want to specify the SQL statement at run time. I think I can do this by setting the DataSource of the ReportObject. I wonder what the constraints are. How do I write the SELECT portion of the statement so that the report can find the fields it wants?

I also want to set the grouping dynamically. I think I can do this by modifying the ConditionField of the Group object, but I don't know how to suppress unwanted grouping levels. The reports I'm working with specify lots of grouping levels but expect only some to be used.

I also need to specify the fields to be totalled in the group areas. I have no idea how to do that.

I appreciate any help you can give me. I haven't been able to find anything that talks about this stuff.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top