|
 |
aspx thread: Setting parameters for Crystal Reports 8.0 reports
Message #1 by Lars Solem <Lars.Solem@v...> on Wed, 3 Jan 2001 09:49:24 +0100
|
|
How do I set the parameters for my report in my webform? No parameter dialog
is shown. How does this work ?
Regards, Lars
---
http://www.asptoday.com - the leading site for timely,
in-depth information for ASP developers everywhere.
---
You are currently subscribed to aspx as: $subst('Recip.EmailAddr')
To unsubscribe send a blank email to leave-aspx-$subst('Recip.MemberIDChar')@p2p.wrox.com
Message #2 by "Juan Garcia" <juan@b...> on Wed, 3 Jan 2001 09:19:12 -0600
|
|
Hi,
When calling a crystal report that uses stored procedures which expects
parameters or if the crystal report itself needs some parameters as imput
you will do something like this:
href="..Path/ReportName?prompt0='Value1'&prompt1='Value2'...and so on."
If you need to specify a selection formula, you can add it to to the call:
..&sf={columnName}='Value'
if you need the hex value for the "=" : %3d
"'" " %22 (to encapsulate strings)
I hope it helps.
Regards,
Juan M. Garcia
juan@b...
-----Original Message-----
From: Lars.Solem@v... [mailto:Lars.Solem@v...]
Sent: Wednesday, January 03, 2001 2:49 AM
To: juan@b...; aspx@p...
Subject: [aspx] Setting parameters for Crystal Reports 8.0 reports
How do I set the parameters for my report in my webform? No parameter dialog
is shown. How does this work ?
Regards, Lars
---
---
http://www.asptoday.com - the leading site for timely,
in-depth information for ASP developers everywhere.
---
You are currently subscribed to aspx as: $subst('Recip.EmailAddr')
To unsubscribe send a blank email to leave-aspx-$subst('Recip.MemberIDChar')@p2p.wrox.com
Message #3 by Lars Solem <Lars.Solem@v...> on Fri, 5 Jan 2001 10:32:00 +0100
|
|
I want the CR report to run on the server, and have made a webform with a
CrystalReportViewer component. I try to access the parameter "Yr" with
object obj = 2000;
CrystalReportViewer1.ParameterFieldInfo["Yr"].CurrentValues.Add(obj);
but I get a 'System.ArgumentException: Invalid object type' when executing
the .Add(obj). I have tried other posibilitis like .Add(2000), .Add("2000")
and so on, but always get the same exception.
Any help would be great!
Thanks, Lars
-----Original Message-----
From: Juan Garcia [mailto:juan@b...]
Sent: 3. januar 2001 16:19
To: ASP+
Subject: [aspx] RE: Setting parameters for Crystal Reports 8.0 reports
Hi,
When calling a crystal report that uses stored procedures which expects
parameters or if the crystal report itself needs some parameters as imput
you will do something like this:
href="..Path/ReportName?prompt0='Value1'&prompt1='Value2'...and so on."
If you need to specify a selection formula, you can add it to to the call:
..&sf={columnName}='Value'
if you need the hex value for the "=" : %3d
"'" " %22 (to encapsulate
strings)
I hope it helps.
Regards,
Juan M. Garcia
juan@b...
-----Original Message-----
From: Lars.Solem@v... [mailto:Lars.Solem@v...]
Sent: Wednesday, January 03, 2001 2:49 AM
To: juan@b...; aspx@p...
Subject: [aspx] Setting parameters for Crystal Reports 8.0 reports
How do I set the parameters for my report in my webform? No parameter dialog
is shown. How does this work ?
Regards, Lars
---
http://www.asptoday.com - the leading site for timely,
in-depth information for ASP developers everywhere.
---
You are currently subscribed to aspx as: $subst('Recip.EmailAddr')
To unsubscribe send a blank email to leave-aspx-$subst('Recip.MemberIDChar')@p2p.wrox.com
|
|
 |