473,785 Members | 2,816 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(EventArg s 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.Tex t is
the name of the parameter field..):
crFunction()
{
mReportDocument = new ReportDocument( );
mReportDocument .Load(Server.Ma pPath("\\" + Request.Applica tionPath) +
"\\" + CST.PREFIXE_RAP PORTS + CST.FICHIER_RAP PORT_HISTORIQUE _PAQUET);
crystalView.Sel ectionFormula = "{TablePaquets. ID} = " +
txtIDPaquet.Tex t;
this.crystalToo lBar.Visible = true;
this.crystalVie w.Visible = true;
lblMessageErreu r.Visible = false;
crystalView.Rep ortSource = mReportDocument ;
crystalToolBar. activeCrystalTo olBar(mReportDo cument,crystalV iew);
}
thank you!
Nov 17 '05 #1
0 4801

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

Similar topics

4
2286
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 reports runs by itself, you can do a print preview to see what the report will look like. I would like to know how to do this using crystal reports that is embedded in the Visual Studio.net 1.1 professional and enterprise architect versions. ...
2
3908
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 password. I use the InfoStore object to query for the report from the CE server (also running locally) and bind it to the CrystalReportViewer control in the webform. I am getting an "SQL Server logon failed" when I try to generate this
1
1528
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 report (Crystal). It looks like , it completely ignores the parameter i am passing and just brings all the records from the database. When i run the report directly from Crystal , it works fine. So I know report works fine . For some strange...
0
1019
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 report (Crystal). It looks like , it completely ignores the parameter i am passing and just brings all the records from the database. When i run the report directly from Crystal , it works fine. So I know report works fine . For some strange...
0
1807
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 the crystal report view it shows all the values from the discrete parameter. But when I export the report it only shows the values from the last discrete parameter value enter. My code is listed below:
0
2819
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 the crystal report view it shows all the values from the discrete parameter. But when I export the report it only shows the values from the last discrete parameter value enter. My code is listed below:
0
929
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 it to print up in Crystal report form but only if it takes on the format of my webform is that possible any extra help on Crystal Reports would be awsome thanks people.
1
2459
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 parameter.When I run this .rpt file from Crysta Report window it is running correctly.But When I send this date parameter from JSP,then I am getting ORA1003:no statement persed error.Can anyone help me in this situation.....
3
6730
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 is as follows...
0
9645
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10329
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10152
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9950
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7500
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6740
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2880
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.