on 06-08-2011 11:49 PM
Hi all
I want to ask about a couple of problems I have.
I creed several reports with crystal reports, these reports are displayed after a few minutes (2 minimum) may be because they are associated with a Stored Procedure?, and if so how I can optimize it, any advice?.
Another problem that occurs is given after which some reports have shown, you enter the data required by the parameters, start doing the work want to show the report and then get a message that says "The application has suffered a failure and closed.
To resolve this somehow delete the temporary files but this is only a momentary solution then the error appears again.
Thanks to everyone for the help.
Angel Uribe
One issue per thread. See the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement].
Pick which issue you want to work on here and cerate a new thread on the other issue.
- Ludek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Helloo
I m facing the same problem (time issue). Report takes too much time to load. i m using the dataset instead of stored procedure. and my code sample is as follows:
ReportDocument ReportDoc = new ReportDocument();
Database crDatabase = null;
Test_DataSet testdataset = new Test_DataSet();
ReportDoc.Load(@"c:\myReport.rpt");
SqlConnection conn = new SqlConnection(conectionString);
SqlCommand command = conn.CreateCommand();
crDatabase = ReportDoc.Database;
foreach (Table crTable in crDatabase.Tables)
{
string strQuery = "SELECT ";
for (int i = 0; i < crTable.Fields.Count; i++)
{
strQuery += crTable.Fields<i>.Name + ",";
}
if (strQuery.EndsWith(","))
{
strQuery = strQuery.Substring(0, strQuery.Length - 1);
}
strQuery += " FROM " + crTable.Name;
command.CommandText = strQuery;
SqlDataAdapter da = new SqlDataAdapter(command);
da.Fill(testdataset, crTable.Name);
}
ReportDoc.SetDataSource(testdataset);
this.crystalReportViewer1.Visible = true;
this.crystalReportViewer1.ReportSource = ReportDoc;
i need it urgently as i m running out of time please.
Thanx
Edited by: umeryounas on Jun 9, 2011 8:59 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.