Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 3636

Replace Connection on Subreports

$
0
0

I am using The Replace Connection code from this document (

http://scn.sap.com/community/crystal-reports-for-visual-studio/blog/2011/09/02/when-to-use-the-replace-connection-method-using-the-crystal-reports-or-inproc-ras-sdk-for-net ), but I have found it does not change the Provider for a subreport.  And, if I try to use this same code for a subreport, the following exception is generated when I try to use the ReportClientDocument.DatabaseController.SetTableLocation forthe subreport:

"Not supported within subreports."

 

I can use the DataSourceConnections(0).SetConnection which updates ther server, database, user id, password, but I need to update the provider so it is the same as the main report. 

 

How do you do this?


Viewing all articles
Browse latest Browse all 3636

Trending Articles