how to open crystal report in new window

60 pts.
Tags:
ASP.NET 2.0
C#
Crystal Reports
Crystal Reports XI
Hi, I m new in crystal report please help me, How to open a crystal report in new window but i want to pass parameter on parent window (web page)?

Answer Wiki

Thanks. We'll let you know when a new response is added.

Here is how I would accomplish this.

When the button is clicked to view the report, do this:

Response.Write(“<script type=’text/javascript’>window.open(‘../ViewReport.aspx?parameter=” & strValue & “‘, ‘_blank’, ‘width=800,height=600′);</script>”)

Now build ViewReport.aspx with the CR Viewer on it. In the page load event, read the parameters out of Request.QueryString feed them to the report.

Now when the click to view the report they will get a new window with the report in it.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Amitshukla
    [...] here:  how to open crystal report in new window tags: converting-some, crystal report, featured-community, microsoft, microsoft-dynamics, [...]
    0 pointsBadges:
    report
  • Rahuldjain
    Hello All, I have a problem with crystal reports at runtime...... I have a desktop application in which I have used crystal report... When I run the application, crystal report asks for parameter even though I have supplied it through code in C#. Not able to figure out why this happens..... My Report also contains a subreport which also requires parameter that is required by main report. I think parameter prompt is for subreport Is there any way to remove that prompt? Any kind of help would be appreciated... Thanks a lot Rahul
    25 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following