Solved

Using Parameter Collection In ASP to expose Crystal Reports

Posted on 2009-05-14
4
356 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 85 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

636 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