Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Using Parameter Collection In ASP to expose Crystal Reports

Posted on 2009-05-14
4
Medium Priority
?
377 Views
Last Modified: 2012-05-07
I am using 5 files created by Business Objects to expose Crystal Reports to the browser so users will be able to print report.

Those files are AlwaysrequiredSteps.asp, MoreRequiredSteps.asp, SmartViewerActiveX.asp, cleanup.asp and the RDCrptserver11.

Then my own asp file that includes above files. I am using Crystal Reports 11 R2.

When I run these reports with my asp file *without* parameters, it works because it exposes .rpt files to browser with data and you can print them.

If, however, I attempt to run these reports with ParameterCollection, it exposes the crystal Reports viewer but no data, just blank screen.

Can someone please, please help me with a working version of files with parameters.

It will be really, really, really appreciated.

I will demo this on Monday and I am sweating like crazy trying to make this work.

Thanks so very much.

I am using my last available points but will buy more points and award them if need.

Many thanks again in advance.
0
Comment
Question by:sammySeltzer
  • 2
  • 2
4 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 24389303
Check the samples here.  There is at least one that has parameters

https://smpdl.sap-ag.de/~sapidp/012002523100005919782008E/aspxmps115.zip

mlmcc
0
 
LVL 29

Author Comment

by:sammySeltzer
ID: 24400588
first mlmcc,

I must apologize for my tardiness in responding to your post.

I have been trying to find a way to use the code that you referenced.

It works fine *if* I hardcode the id value.

If, however, I reference the variable passed through querystring, I get following error:

Error Occurred Reading Records: Type mismatch

Do you by chance or experience know how to resolve?

Here is the offending lines (only 2 lines)


I want to use variable from querystring.

For instance:

id_pid = request.querystring("id_pid")
F_FID = request.querystring("F_FID")


Thanks
Session("oRpt").ParameterFields.GetItemByName("ID_PID").AddCurrentValue(CDbl("3311"))
Session("oRpt").ParameterFields.GetItemByNames("F_FID").AddCurrentValue(CDbl("567"))

Open in new window

0
 
LVL 101

Accepted Solution

by:
mlmcc earned 340 total points
ID: 24400695
I don't know how to do it a web session.

mlmcc
0
 
LVL 29

Author Comment

by:sammySeltzer
ID: 24400795
ok, thanks
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Loops Section Overview

879 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question