How to ask for missing parameter values when exporting?

    When I do a preview of a report (using a ReportDocument and ReportViewer object), Crystal Reports will let the user enter parameter values that are missing.

    However, when I do an export (using the ExportToDisk method of a ReportDocument object), this doesn’t happen, I get an error message “Missing parameter values” instead. The same goes for the PrintToPrinter method.

    Can I have CR ask for missing parameter values automatically when doing an export to disk or printing, or do I have to write my own code in this case?

    When I do a preview of a report (using a ReportDocument and ReportViewer object), Crystal Reports will let the user enter parameter values that are missing.However, when I do an export (using the ExportToDisk method of a ReportDocument object), this doesn't happen, I get an error message "Missing parameter values" instead. The same goes for the PrintToPrinter method.Can I have CR ask for missing parameter values automatically when doing an export to disk or printing, or do I have to write my own code in this case?

    How to ask for missing parameter values when exporting?

    Very Helpfull

    User Rating: Be the first one !
    Add Comment
    1 Answer(s)

      Hi George,

       

      No, without interaction from the viewer when exporting through code you need to fill in the log on and parameter info first. Reason being some applications do not use the viewer so there is no handler to prompt for the values.

       

      You need to create your own Parameter and log on UI’s.

       

      Always been this way, exporting and printing assume the report is complete and all properties are set.

       

      Don

      Add Comment

        Hi George,

         

        No, without interaction from the viewer when exporting through code you need to fill in the log on and parameter info first. Reason being some applications do not use the viewer so there is no handler to prompt for the values.

         

        You need to create your own Parameter and log on UI’s.

         

        Always been this way, exporting and printing assume the report is complete and all properties are set.

         

        Don

        Add Comment

        Your Answer

        By posting your answer, you agree to the privacy policy and terms of service.