'Declaration Public Event InitializeSSRSParametersDialog As InitializeSSRSParametersDialogEventHandler
public event InitializeSSRSParametersDialogEventHandler InitializeSSRSParametersDialog
The event handler receives an argument of type InitializeSSRSParametersDialogEventArgs containing data related to this event. The following InitializeSSRSParametersDialogEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Dialog | TBD: Gets a System.Windows.Forms.Form object that is about to be displayed. |
DocumentSource | TBD: Gets a C1.Win.C1Document.C1DocumentSource object parameters of that are edited. |
Parameters | TBD: Gets a C1.Win.C1Document.ParameterCollection collection, shortcut for the C1.Win.C1Document.C1DocumentSource.Parameters property. |
ShowDialog | TBD: Gets or sets a value that determines whether the component should display the parameters dialog. |
UserAction | TBD: Gets a value indicating whether the user causes dialog to show. This property is false when dialog showed automatically before rendering a document, true indicates that user pressed "Parameters" button in toolbar. |
C1.Win.C1Document.C1DocumentSource object has Parameters collection containing parameters used to generate a report.
This event fires before the dialog is displayed and allows you to customize the dialog by changing its caption, font, colors, etc.
You can also use this event to inspect and modify parameter values using the InitializeSSRSParametersDialogEventArgs.Parameters collection.
Finally, you can use the InitializeSSRSParametersDialogEventArgs.ShowDialog property to prevent the component from showing the parameters dialog.
private void c1PreviewPane1_InitializeSSRSParametersDialog(object sender, InitializeSSRSParametersDialogEventArgs e) { // change parameter values e.Parameters["StartDate"].Value = DateTime.Now; // don't show dialog e.ShowDialog = false; }