Solved

Using Parameter Collection In ASP to expose Crystal Reports

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

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 28

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 100

Accepted Solution

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

mlmcc
0
 
LVL 28

Author Comment

by:sammySeltzer
ID: 24400795
ok, thanks
0

Featured Post

Independent Software Vendors: 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…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

726 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