Ticket T285754
Visible to All Users

Cannot set report parameters' access modifier in the Report Designer at runtime

created 10 years ago

[DevExpress Support Team: CLONED FROM T285429: How to pass Application Connection string to a report]
Hello,

The Modifier Property is not available when defining report parameters while creating a report at run time therefore its not possible to set the parameters as public if they are to be used for sub report.

Thank you

Answers approved by DevExpress Support

created 10 years ago

Hello Stephen,

When you create a report at runtime, it is not compiled to a new class, and thus it cannot have additional properties, e.g., properties that return report parameters. To access the parameters of such a report, use its Parameters collection. For example:

Visual Basic
Dim reportParameter as Parameter = report.Parameters("parameter1")

    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.