Crystal Reports API Problem
-
I am working on an applicaiton that needs to support different databases. I created the reports using SQL Server as the database, and for others i am setting the databse information and table locations from the code. Now in some of the reports i have got subreports, having parameters mapping to the fields in the main report. Since the parameter is defined with an '@Parameter' in sql server and ad 'Parameter (no @)' in oracle for stored procedures I had to change the name of the parameters from code too. This is working ok. Now the problem is that I had to modify the links accroding to the new parameter field names. but the problem is that i am unable to retrieve the mapping field names of the subreport. There is a call available as ISubreportLinkPtr->MainReportField->GetName ISubreportLinkPtr->SubreportField->GetName The main report one return the correct name of the field in the main report but the subreport one always returns the first database field instead of the actual mapping field. Anyone got any idea please reply quick. Thanx. Rahim Rattani Software Engineer, Matrix Systems (Pvt) Ltd., Karachi - Pakistan