Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal Reports Parameter Fields

Status
Not open for further replies.

Baxtalo

Programmer
Jul 11, 2002
3
US
Hi there,

I need to start a crystal report .rpt file up that has parameter fields. I want to pass in the values as text from an html form on my asp page. I have managed to get the Crystal Reports .rpt file to open but the parameterized fields are empty. How can I make this work? Honestly, I don't think this is very clear in the examples but it seems like something that must be done often.

Thanks in advance.
--
Baxtalo
 
Hi,
Mainly set some
Code:
<INPUT TYPE=&quot;text&quot; Value=&quot;Enter parameter 1 here&quot; Name=&quot;prompt0&quot; >
items in your form..
1 for each parameter that the report expects..They are 0 based in the order they were created ( not used) so parameter1 = prompt0, etc...
If you want to hide the parameters, use &quot;hidden&quot; input type fields and specify the Value..
hth,
[profile]


 
I have tried this but without success. The CrystalDecisions.com example files show to use session objects to set the parameters and the file supposedly will read the session object and fill in the parameter fields. I have created the object as the example shows but things differ a bit since they are using it for a @formula value. So I'm guessing that you're not using my version or were just offering general principles for passing from one asp file to another but I want to start a Crystal Reports file. You're right about getting the form information with an input field on the html form but I'm looking for how asp actually creates a parameters object and how it send the information to the form via session objects. Thanks anyway. Perhaps you didn't really see what I was looking for.
--
Baxtalo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top