473,395 Members | 1,702 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.

How do I pass vb.net variables to crystal reports

I have a couple of variables in vb.net that I want to have printed on
my crystal reports report.

How can I do this?

Thanks for any info

Nov 20 '05 #1
4 3330
Hello

I'm not sure i understand your question but you could
assign the value of a variable to a textbox in your
report.

Kind Regards
Jorge
-----Original Message-----
I have a couple of variables in vb.net that I want to have printed onmy crystal reports report.

How can I do this?

Thanks for any info

.

Nov 20 '05 #2
"MeNotHome" <dtfa@****nospm****insightbb.com> schrieb
I have a couple of variables in vb.net that I want to have printed
on my crystal reports report.

How can I do this?


<F1>
VS.NET
Developping with VS.NET
Creating distributed applications
Crystal reports
Implementing runtime customization
Customizing data presentation
Parameter runtime customization

(see hint in signature)
--
Armin

The tree representing the table of contents has been translated from
localized (German) version. Excuse slight deviations.

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
Nov 20 '05 #3
The best way I have found to pass variables is to create a text box on the report. Then, in your code, do something like this

Dim oRpt as MyRepor
DirectCast(oRpt.Section5.ReportObjects("txtMyTextB ox"), CrystalDecisions.CrystalReports.Engine.TextObject) .Text = strValu

You will of course have to change Section5 to whatever section you created the text box in. I hope this helps

Jason
Nov 20 '05 #4
Yeah...

And then there is the correct way to do it...

Cystal Reports has Parameter fields... Use them.. love them...
"Jason F" <an*******@discussions.microsoft.com> wrote in message
news:F1**********************************@microsof t.com...
The best way I have found to pass variables is to create a text box on the report. Then, in your code, do something like this:
Dim oRpt as MyReport
DirectCast(oRpt.Section5.ReportObjects("txtMyTextB ox"), CrystalDecisions.CrystalReports.Engine.TextObject) .Text = strValue
You will of course have to change Section5 to whatever section you created the text box in. I hope this helps!
Jason

Nov 20 '05 #5

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

Similar topics

4
by: Wayne Baswell | last post by:
I want to pass a date variable to a sql statement from Crystal Reports. The part of the query accepting the variables looks like: "Calendar_Date between To_Date('1-JUN-03','mm/dd/yy') and...
5
by: BStorm | last post by:
I have a transaction log file where the DataSet table's Description column is actually delimited into "subcolumns" based upon the transaction id. I would like to parse these into separate fields...
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
3
by: Don Wash | last post by:
Hi There! I've posted a few days back about this issue but no solutions has been found and that's why I'm re-posting this. I'm using built-in CrystalReport that comes with VS.NET 2003 to...
4
by: Marcelo | last post by:
Any suggestion? Thanks Marcelo
0
by: Linda W. | last post by:
Hi, I would appreciate any insight into the following issue.. I have an asp.net application with crystal reports being displayed.. All works fine from my IDE & I am trying to move the app to a...
2
by: Franck | last post by:
I haven't found any crystal report groups but im sure here there is people knowing about it. How do i create variables in a report. from crystal report itself not Visual studio.
3
by: Miro | last post by:
Hi, Just wondering what a good book is on visual studios 2008 ( or 2005 if no 2008 ) that teaches you how to properly use crystal reports with it. Or im assuming that as long as I can create a...
1
by: =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?= | last post by:
On reflection, you could possibly make the app a self extracting zip file which extracts the EXE and a settings file and then starts the app, then when you app closes, it can repack the settings...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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...

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.