473,395 Members | 1,689 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,395 software developers and data experts.

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!
Nov 17 '05 #1
0 4781

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

Similar topics

4
by: Wendy Elizabeth | last post by:
I would like to know how to print a crystal report that was generated in the ..NET framework using a Visual Basic.NET web application and/or a Visual basic.NET windows application. When crystal...
2
by: Karun Karunakaran | last post by:
Hi, I am using the Crystal Enterprise .NET assemblies to generate and display a crystal report in a webform. This report connects to an SQL server (running locally) using a specific username and...
1
by: Radx | last post by:
Hello All I am having a very hard timt exporting crystal report to PDF document in my ASPX page. I am able to generate the PDF document , but the i am not able to pass the parameter to the...
0
by: Radx | last post by:
Hello All I am having a very hard timt exporting crystal report to PDF document in my ASPX page. I am able to generate the PDF document , but the i am not able to pass the parameter to the...
0
by: lrobo01 | last post by:
I'm having a problem with Crystal report.net with ASP.NET. The problem occurs when exporting the report. The report uses a discrete parameter with multiple values. When the report is loaded into...
0
by: lrobo01 | last post by:
I'm having a problem with Crystal report.net with ASP.NET. The problem occurs when exporting the report. The report uses a discrete parameter with multiple values. When the report is loaded into...
0
by: cr115 | last post by:
I'm working with Visual Studio.net 2005 and trying to make a Crystal report but really i just need some answers. Does Crystal report just report tables from a database. I have a webform and want...
1
by: Habibur | last post by:
hi, I am using Eclipse plugin,Crystal Report Xi and Oracle 9i as Database and JDBC connection to connect Crystal Report with Database.There are many sql espression in my report file(*.rpt) and date...
3
by: nithya jayaraman | last post by:
Hi, pls clarify these questions. 1. How can I send some values of globla variables from VB to crystal report. I want to show these values on report. my database in MS Access My query...
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
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.