|
 |
aspx thread: Crystal Report parameter
Message #1 by "Bob Piric" <bpiric@l...> on Tue, 17 Sep 2002 21:40:09
|
|
After finishing up my report (works fine and displays properly on web
page) i just added one parameter and included it in my selection formula
(startDate for some field). My problem is how to pass that parameter to
report from code behind. Could anyone please provide me with simple code?
I'm using VB for code behind.
Thanks, Bob
Message #2 by "Bob Piric" <bpiric@l...> on Wed, 18 Sep 2002 14:37:02
|
|
And allow me to answer myself, and for future reference if anyone has same
problem... You can find solution here:
http://support.crystaldecisions.com/communityCS/FilesAndUpdates/vbnet_web_d
iscreteparams.exe.asp
Cheers,
Bob
Message #3 by "Rafael Gava de Oliveira" <rgoliveira@f...> on Thu, 19 Sep 2002 14:11:45 -0300
|
|
I=B4ve made a method to do that. You could put in yout class.
protected void SetParameterDiscrteToExport(string paramName, object
paramValue)
{
ParameterValues vs =3D new ParameterValues();
ParameterDiscreteValue pdv =3D new ParameterDiscreteValue();
=09
vs =3D oRpt.DataDefinition.ParameterFields[paramName].CurrentValues;
pdv.Value =3D paramValue;
vs.Add(pdv);
oRpt.DataDefinition.ParameterFields[paramName].ApplyCurrentValues(vs);
}
-----Original Message-----
From: Bob Piric [mailto:bpiric@l...]
Sent: ter=E7a-feira, 17 de setembro de 2002 18:40
To: ASP+
Subject: [aspx] Crystal Report parameter
After finishing up my report (works fine and displays properly on web
page) i just added one parameter and included it in my selection formula
(startDate for some field). My problem is how to pass that parameter to
report from code behind. Could anyone please provide me with simple
code?
I'm using VB for code behind.
Thanks, Bob
---
ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=3D1861007442
ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=3D1861007450
These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.
---
|
|
 |