473,387 Members | 3,033 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

ReportDocument.Load

Hello everybody,
I am trying to create a web application to generate Crystal Report with
Parameters. However I noticed that
ReportDocument.Load is used twice when the parameter page is loaded for the
first time and then again when the user enters the parameters in the
parameters page.
1) The first time ReportDocument.Load is used when the Crystal Report is
loaded and the parameter page is created.
2) The second time the ReportDocument.Load is again used when the user
enters the parameters in the parameters page.
My problem is I do not want the ReportDocument.Load to be used
twice along with the Parameter table . Would be greatful if anyone can help
me with any solution. The code is written below..
private void Page_Load(object sender,System.EventArgs e)
{
string reportname= "C:\ReportWithParameter.rpt"
LoadReportName(reportname)
}
private void LoadReport(string reportName)

{
crDoc=new CrystalDecisions.CrystalReports.Engine.ReportDocum ent();
crDoc.Load(reportName);

CrystalDecisions.CrystalReports.Engine.ParameterFi eldDefinitions
crParamFieldDefinitions =
crDoc.DataDefinition.ParameterFields;
// create the table to hold the controls
Table table = new Table();
table.Width = 300;
table.BorderWidth=1;
table.BackColor = Color.LightGray;
table.BorderColor = Color.Gray;
table.CellSpacing = 10;
// table.GridLines = GridLines.Horizontal;
string paramName;

TableRow
summaryRow = new TableRow();
TableCell summaryCell = new TableCell();
ParamTable.Rows[0].Cells[0].Controls.Add
(table);

Session["Report"] = crDoc;
}

}
Pls guide...

Rahil





}

--
Message posted via http://www.dotnetmonster.com
Nov 19 '05 #1
0 2689

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: drolaw | last post by:
Hello, I am attempting to use the CrystalDecisions.CrystalReports.Engine.ReportDocument object to open a Crystal Enterprise InfoObject object as a crystal report. I have retrieved the InfoObject,...
3
by: Jason Huang | last post by:
Hi, In our .Net 2003 + CrystalReports 10, do we have an Exception Handler for ReportDocument.Load? Thanks for help. Jason
0
by: RWoodsLap | last post by:
I have a report server that uses Crystal Reports to create our company's reports, but I'd like to move the application to SQL 2008 FILESTREAMs. I'd like to load the report directly from SQL 2008...
1
by: murthychvrm | last post by:
why we declare "ReportDocument doc;" in this coding?what it is doing here? using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.