Class ParamsForm
Report parameters form, it's used when the user click on show parameters icon on preview window. You can show the parameters window before executing a report. See example.
Inheritance
ParamsForm
Implements
Inherited Members
Namespace: Reportman.Reporting.Forms
Assembly: Reportman.Reporting.Forms.dll
Syntax
public class ParamsForm : Form, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl
Examples
Report rp=new Report();
rp.LoadFromFile("test.rep");
if ParamsForm.ShowParams(rp)
{
PrintOutReportWinForms prw=new PrintOutReportWinForms(rp);
prw.Preview=true;
prw.ShowPrintDialog=true;
prw.Print(rp.MetaFile);
}
Constructors
ParamsForm()
Constuctor
Declaration
public ParamsForm()
Methods
Dispose(bool)
Free resources
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
Overrides
ShowParams(Report, string)
Use this procedure to show the parameters window to the user
Declaration
public static bool ShowParams(Report rp, string caption)
Parameters
| Type | Name | Description |
|---|---|---|
| Report | rp | The Report containing the parameters |
| string | caption | Caption for the report parameters window |
Returns
| Type | Description |
|---|---|
| bool | Returns true if the user accept parameter changes |
ShowParams(Report, IWin32Window)
Use this procedure to show the parameters window to the user
Declaration
public static bool ShowParams(Report rp, IWin32Window parent)
Parameters
| Type | Name | Description |
|---|---|---|
| Report | rp | The Report containing the parameters |
| IWin32Window | parent |
Returns
| Type | Description |
|---|---|
| bool | Returns true if the user accept parameter changes |