Ask a Question related to ASP.NET General, Design and Development.
-
Simon #1
send a parameter to Crystal report in webform application
Hi,
I am using ASP.NET with C# and Crystal Report. I have a textbox et
a asp.net button. I send a number in the texte, I push the button and
I want to see the report with value related to the number in the
textbox. The problem is that I need to call the crystal report
function in the "override protected void OnInit(EventArgs e)" function
to see my graphic and picture in the report. When I push the button,
the content of the textbox is not filled yet in the OnInit... how can
I send parameters to crystal report if I must use the OnInit ? Page
load is too late...
my crystal report function looks like that (where txtIDPaquet.Text is
the name of the parameter field..):
crFunction()
{
mReportDocument = new ReportDocument();
mReportDocument.Load(Server.MapPath("\\" + Request.ApplicationPath) +
"\\" + CST.PREFIXE_RAPPORTS + CST.FICHIER_RAPPORT_HISTORIQUE_PAQUET);
crystalView.SelectionFormula = "{TablePaquets.ID} = " +
txtIDPaquet.Text;
this.crystalToolBar.Visible = true;
this.crystalView.Visible = true;
lblMessageErreur.Visible = false;
crystalView.ReportSource = mReportDocument;
crystalToolBar.activeCrystalToolBar(mReportDocumen t,crystalView);
}
thank you!
Simon Guest
-
How to display Crystal Report
Hi all, I dont know how to display a parameterized Crystal report in Asp.Net page... e.g. I give input of Student Code range and then click on View... -
Pls Hlp : crystal report
Hi, Am getting the following error: cpeaut32 error '800a753c' Invalid enum value. & the code is as follows : set MyParam = ... -
Formatting a Crystal Report
Hi, I have a report that I render out as PDF. I have two sections in my Details section of the report. I want to format the background of... -
ASP + Crystal Report 9
I am beginner on Crystal Report. I want to ask a basic question. How can i display a report in ASP? I search for many web and try the sample... -
Parameter Passing to crystal report
Here is some code I use to pass 1 parameter to a Crystal Report: Dim crColParameters As ParameterFieldDefinitions Dim crColParameter As...



Reply With Quote

