Solved

Using Parameter Collection In ASP to expose Crystal Reports

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

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…
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/…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now