Class PrintOutWinForms
Report processing driver using Windows.Forms, it can preview, print, show a print dialog.
This driver does not support interaction with the Report, like altering Report parameters in
preview window. But is useful when working the already generated MetaFiles.
The PrintOutReportWinForms at Reportman.Reporting.Forms provides the full interactive functionality
like page setup or altering parameters at preview window.
Inheritance
PrintOutWinForms
Assembly: Reportman.Drawing.Forms.dll
public class PrintOutWinForms : PrintOutPrint, IDisposable
Report rp=new Report();
rp.LoadFromFile("test.rep");
PrintOutWinForms prw=new PrintOutWinForms;
prw.Print(rp.MetaFile);
Constructors
Declaration
public PrintOutWinForms()
Fields
Declaration
protected PreviewWinFormsControl FPreviewWindow
Field Value
Declaration
Field Value
Declaration
public const int MAX_SERIECOLORS = 21
Field Value
MainForm
Set MainForm to avoid problems with modal dialogs
Declaration
Field Value
Declaration
public SendMailEvent OnMail
Field Value
Show a message when the report is empty (no data available to print)
Declaration
public bool ShowEmptyReportMessage
Field Value
Set it to true to show an icon in task bar for the preview window
Declaration
public bool ShowInTaskbar
Field Value
When the output is the printer, before processing, a standard print dialog will be shown to the user
Declaration
public bool ShowPrintDialog
Field Value
By default GDI+ is ude, if this is set to false the Internal GDI functions will be used
Declaration
Field Value
Declaration
public PreviewWindowMode WindowMode
Field Value
Declaration
protected PreviewMetaFile previewmetafile
Field Value
Properties
Set preview if you want the output on the screen
Declaration
public bool Preview { get; set; }
Property Value
Declaration
public PreviewWinFormsControl PreviewWindow { get; }
Property Value
Set this property to true, combined with Preview, to show the standard system preview dialog,
instead of the Report Manager preview dialog.
Declaration
public bool SystemPreview { get; set; }
Property Value
Methods
Declaration
public static void AddFunctionToChart(Chart nchart, Series serie, SeriesItem sitem)
Parameters
| Type |
Name |
Description |
| Chart |
nchart |
|
| Series |
serie |
|
| SeriesItem |
sitem |
|
Free memory consumed by graphics resources
Declaration
public override void Dispose()
Overrides
Declaration
public override void DrawChart(Series nseries, MetaFile ametafile, int posx, int posy, object achart)
Parameters
Overrides
Declaration
public Bitmap DrawChartBitmap(Series nseries)
Parameters
| Type |
Name |
Description |
| Series |
nseries |
|
Returns
Declaration
public override void DrawString(Graphics gr, string atext, Font font, Brush brush, Rectangle arec, StringFormat sformat)
Parameters
Overrides
Declaration
public override void DrawString(Graphics gr, string atext, Font font, Brush brush, float posx, float posy, StringFormat sformat)
Parameters
Overrides
Declaration
public bool ExecutePrintDialog()
Returns
FormatFlatsToTextFormatFlags(StringFormat)
Declaration
public static TextFormatFlags FormatFlatsToTextFormatFlags(StringFormat oldflags)
Parameters
Returns
Declaration
public override SizeF MeasureString(Graphics gr, string atext, Font font, SizeF layoutarea, StringFormat sformat, out int charsfit, out int linesfit)
Parameters
Returns
Overrides
Process a MetaFile, printing or previewing
Declaration
public override bool Print(MetaFile meta)
Parameters
| Type |
Name |
Description |
| MetaFile |
meta |
MetaFile to print
|
Returns
Overrides
When the user does not handle the no data to print event. A message is shown
Declaration
protected override void ProcessNoDataToPrint()
Overrides
Declaration
public static bool SelectDefaultPrinter(Form MainForm = null)
Parameters
| Type |
Name |
Description |
| Form |
MainForm |
|
Returns
Used in derived versions to manager events for report alteration (page setup and parameters)
Declaration
protected virtual void SetReportEvents()
Implements