Print Page | Close Window

Error while binding stored procedure to report

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2020
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=4471
Printed Date: 03 May 2024 at 2:43pm


Topic: Error while binding stored procedure to report
Posted By: bhaskarreddy
Subject: Error while binding stored procedure to report
Date Posted: 07 Oct 2008 at 3:07am

Regarding Crystal Report XI
By using the Embeddable crystal report control 11.5 I am trying to design the report.
By selecting schema(xml) file i am able to saving the reports.
In the same way i want the reports by using stored procedure.
Please help me in this issue.
i am placing the code to bind stored procedure to the report and the error as below
"This property is currently in read-only state and can't be modified".

 using CRAXDDRT;

  CRAXDDRT.Report DynamicReport;
 foreach (DatabaseTable DBTable in DynamicReport.Database.Tables)
  {
               CPProperties = DBTable.ConnectionProperties;
               //assigning the dll to dbtable
               try
               {
               DBTable.DllName = "crdb_ado.dll";//error here
               }
               catch { }
               CPProperties.DeleteAll();
 DBTable.ConnectBufferString = "Provider=SQLOLEDB;" + objCon.ConnectionString;//error here
}



-------------
Bhaskar Adapala,
SE,India



Print Page | Close Window