Ticket Q278167
Visible to All Users

How can I hide the Parameters panel on a print preview control/window?

created 14 years ago

Hi,
I have report with parameters that I am filling through code.
I have turned off the reports RequestParameters feature i.e. rep.RequestParameters = false;
but when I load the report into the print preview window, the parameters panel is showing on the left. I want to be able to hide this permanently.
How do I do this?
Regards
Mike

Show previous comments (12)

    Hi Alex,
    Thanks for your help.
    I simply recorded what the watermark was in one of the reps and then applied it to all the pages in the mergedPS one.
    Regards

    OR OR
    Oscar Rodriguez 6 9 years ago

      Well, none of those answers worked for me. For those you are looking for another alnernative, this code might be useful:

      Visual Basic
      Dim pt As ReportPrintTool Dim ps As PrintingSystemBase 'Initialize print tool pt = New ReportPrintTool(reportObject) ps = pt.PrintingSystem 'Hide Parameters Panel before preview ps.SetCommandVisibility(PrintingSystemCommand.Parameters, CommandVisibility.None) ps.SetCommandVisibility(PrintingSystemCommand.SubmitParameters, CommandVisibility.None) pt.ShowPreviewDialog()

      NOTE THAT ps.SetCommandVisibility method is the secret. Remember to set:
      xtraReport.RequestParameters = False
      And set each parameter by code using the following property:
      xtraReport.Parameters.Item("PARAMETER_NAME").Value = PARAMETER_VALUE

      Regards, my firiends.

        Oscar,

        Brilliant solution.

        Thanks for sharing,
        Randy

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.