By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,417 Members | 1,178 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,417 IT Pros & Developers. It's quick & easy.

How do I pass vb.net variables to crystal reports

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
"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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.