Solved

Using Parameter Collection In ASP to expose Crystal Reports

Posted on 2009-05-14
4
352 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

734 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