Skip to Content
author's profile photo Former Member
Former Member

Dynamic database type for Command Table objects

Hi all,

I am using (vs 2003) with Crystal Reports XI r2. We have a report viewer application that takes any of our reports, sets it up for their current database (either MS Access or Oracle depending on the client type), and loads it for viewing. We have code that takes care of this dynamic database connection fine for regular tables, but is failing on Command Table objects.

I have been able to modify the user data for a particular database type, but not change the database type entirely. For instance, if I write a report pointed to an Oracle data source in the Crystal IDE, then a user loads the report into a viewer with an Oracle data source, I can set the new data source fine with their information. If a customer tries to load the report into a viewer with an MS Access data source, the connection attributes will obviously fail.

I've searched the forums and tried looking at the CrystalDecisions.ReportAppServer.DataDefModel.CommandTable class in more detail, but with no luck. Does anyone have an example of working code that will accomplish this database type change using .NET RAS for Command Tables?

Any help or insight is appreciated!


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.