Class SVGExport
Represents the SVG export filter.
Inheritance
Implements
Inherited Members
Namespace: FastReport.Export.Svg
Assembly: FastReport.dll
Syntax
public class SVGExport : ExportBase, IComponent, IDisposable, IFRSerializable
Constructors
SVGExport()
Initializes a new instance of the SVGExport class.
Declaration
public SVGExport()
Properties
EmbedPictures
Embed images into svg
Declaration
public bool EmbedPictures { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ImageFormat
Gets or sets the image format used when exporting.
Declaration
public SVGImageFormat ImageFormat { get; set; }
Property Value
Type | Description |
---|---|
SVGImageFormat |
Pictures
Enable or disable the pictures in SVG export
Declaration
public bool Pictures { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
PrefixStyle
Gets or sets the prefix for style classes and object ids
Declaration
public string PrefixStyle { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PreserveAspectRatio
Gets or sets value indicating whether or not should to force uniform scaling of SVG document
Declaration
public AspectRatio PreserveAspectRatio { get; set; }
Property Value
Type | Description |
---|---|
AspectRatio |
UseViewBox
Gets or sets value indicating whether or not should be added 'viewBox' attribute to the svg tag
Declaration
public bool UseViewBox { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
UseWidthAndHeight
Gets or sets value indicating whether or not should be added 'width' and 'height' attributes to the svg tag
Declaration
public bool UseWidthAndHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
ExportBand(BandBase)
This method is called for each band on exported page.
Declaration
protected override void ExportBand(BandBase band)
Parameters
Type | Name | Description |
---|---|---|
BandBase | band | Band, dispose after method compite. |
Overrides
ExportPageBegin(ReportPage)
Begin exporting of page
Declaration
protected override void ExportPageBegin(ReportPage page)
Parameters
Type | Name | Description |
---|---|---|
ReportPage | page |
Overrides
ExportPageEnd(ReportPage)
End exporting
Declaration
protected override void ExportPageEnd(ReportPage page)
Parameters
Type | Name | Description |
---|---|---|
ReportPage | page |
Overrides
Finish()
This method is called when the export is finished.
Declaration
protected override void Finish()
Overrides
GetFileFilter()
Returns a file filter for a save dialog.
Declaration
protected override string GetFileFilter()
Returns
Type | Description |
---|---|
System.String | String that contains a file filter, for example: "Bitmap image (.bmp)|.bmp" |
Overrides
Serialize(FRWriter)
Serializes the object.
Declaration
public override void Serialize(FRWriter writer)
Parameters
Type | Name | Description |
---|---|---|
FRWriter | writer | Writer object. |
Overrides
Remarks
Do not call this method directly. You should override it if you are developing a new component for FastReport.
This method is called when the object needs to save the state. It may happen when:
- saving the report to the file or stream;
- saving the report to the designer's undo buffer;
- assigning the object to another object using the Assign(Base) or AssignAll methods;
- saving the object to the designer's clipboard;
- saving the object to the preview (when run a report).
ShowDialog()
Displays a dialog with export options.
Declaration
public override bool ShowDialog()
Returns
Type | Description |
---|---|
System.Boolean | true if dialog was closed with OK button. |
Overrides
Remarks
Before calling this method, set the report.
Start()
This method is called when the export starts.
Declaration
protected override void Start()