Skip to Content
author's profile photo Former Member
Former Member

parameters in viewer then PDF

Visual Studio 2012 with CRforVS 13.0.5

I have my C# displaying the report in the browser in PDF format when there are no parameters, or when all parameters are passed.


If the user needs to be prompted to enter data into a parameter, then the viewer is displayed..

CrystalReportViewer1.ReportSource = reportPath;

The user enters the parameters, and the report is displayed in the viewer, they can then print or export to PDF..

I was wondering if it is even possible to have the viewer used for the parameter entry, then instead of displaying in the viewer, having the report ExportToStream and display in PDF format..

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Feb 28, 2013 at 10:17 PM

    Hello Shannon

    Good question and one asked before 😊

    Unfortunately, the parameter screen is controlled by the viewer and there is no API that will launch it without the viewer. E.g.; your only option is to create your own parameter screen, capture the user input and pass that to the report engine.

    BTW., this would make a great addition to the SAP Idea Place. If you do add it, let me know and I'll vote it up. I'll also tweet it. The more votes, the better the chance of getting this into the product in a subsequent SP or version.

    - Ludek

    Follow us on Twitter

    Got Enhancement ideas? Try the SAP Idea Place

    Share Your Knowledge in SCN Topic Spaces

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.