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

VB.NET App: Send value to Crystal Report

15
How to send value from frontend to report in VB.Net

Actually I have a form in VB.Net and there is a textbox. Now i want to send the textbox value to Crystal Report. How can i do this? Please help
Nov 27 '07 #1
2 12550
dip_developer
648 Expert 512MB
How to send value from frontend to report in VB.Net

Actually I have a form in VB.Net and there is a textbox. Now i want to send the textbox value to Crystal Report. How can i do this? Please help
You have to use a parameter fields of Crystal report for this....

1.Open Field Explorer window in Crystal report.
2.Go to Parameter Fields.
3.Right click on Parameter Fields-------->Click on New..
4.In the pop-up window give a Name for your parameter and give its Data Type.say its Name is mytextBoxValue and Data Type is String.
5.A parameter field[mytextBoxValue ] will be added under Parameter Fields...Drag this field to your report and place where you want to show your textbox value.
6.Now in the code behind file write the following code to pass your TextBox value to this Crystal report parameter field.

Expand|Select|Wrap|Line Numbers
  1.  
  2. Dim txtValue As String=TextBox1.Text 
  3. Dim myReport As New CrystalReport1
  4. myReport .SetParameterValue("mytextBoxValue", txtValue )
  5.  
Nov 28 '07 #2
Robin25
22
It's really work for me! Thank you so much
Apr 2 '14 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: KenMorris | last post by:
The best way to describe the problem is this: I have a Windows-based app, designed in Visual Basic .NET. In the application, I have a form that contains a Crystal ReportViewer control, and that...
0
by: murl | last post by:
I have created a crystal report using crystal9.0, that is linked to a stored procedure in sql2k which requires 2 parameters to be met, a beggining date(smalldatetime) and a...
0
by: murl | last post by:
I have built a crystal report using crystal9.0 that is linked to a stored procedure built in sql2k, which requires 2 parameters beginningdate(smalldatetime),and endingdate(smalldatetime). When the...
0
by: Simon | last post by:
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...
4
by: javatopia | last post by:
Hello, I am trying to show a Crystal Reports 10 Enterprise report in an ASP.NET page (C#). I can run the report via the admin console just fine. When I try to show the report, after setting up...
6
by: toufik | last post by:
Hi, I've a crystal reports Report, Is it possible to send it by email? how? Thanks
3
by: Hugh O | last post by:
Hi, I have been trying to load a Crystal Report newly created via VS.Net 2003. I am using a simply ASP form with only the Crystal Report Viewer. The sample report results display in the...
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: EricJudge06 | last post by:
We are converting some reports from Crystal Reports to Microsoft SQL Reporting Services (SSRS) in an ASP 2.0 VB.Net web app. Crystal had a function called PrintToPrinter which was being used to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.