[]
        
(Showing Draft Content)

C1.WPF.FlexReport.C1FlexReport.Save

Save Method

Save(string)

Saves the current report definition to a file.

Declaration
public void Save(string fileName)
Parameters
Type Name Description
string fileName

Full name of the file to be created (if the file already exists, it will be overwritten).

Remarks

This method does not embed pictures and subreports into the output file. It only saves subreport names and saves images in external files.

Save(string, bool, FontEmbedType)

Saves the current report definition to a file.

Declaration
public void Save(string fileName, bool embedAll, FontEmbedType embedFonts = FontEmbedType.None)
Parameters
Type Name Description
string fileName

Full name of the file to be created (if the file already exists, it will be overwritten).

bool embedAll

Whether to embed images and subreports into the output file.

FontEmbedType embedFonts

Whether and how to embed fonts into the output file.

Save(string, bool, bool, bool, FontEmbedType)

Saves the current report definition to a file.

Declaration
public void Save(string fileName, bool embedImages, bool embedSubReports, bool saveAll = false, FontEmbedType embedFonts = FontEmbedType.None)
Parameters
Type Name Description
string fileName

Full name of the file to be created (if the file already exists, it will be overwritten).

bool embedImages

Whether to embed images into the output file.

bool embedSubReports

Whether to embed subreports into the output file.

bool saveAll

Save all reports.

FontEmbedType embedFonts

Whether and how to embed fonts into the output file.

Save(Stream, bool, bool, bool, FontEmbedType)

Saves the current report definition to a stream.

Declaration
public void Save(Stream stream, bool embedImages, bool embedSubReports, bool saveAll = false, FontEmbedType embedFonts = FontEmbedType.None)
Parameters
Type Name Description
Stream stream

The stream to save to.

bool embedImages

Indicates whether to embed images into the output stream.

bool embedSubReports

Indicates whether to embed subreports into the output stream.

bool saveAll

Save all reports.

FontEmbedType embedFonts

Indicates how to embed fonts into the output stream.

Save(XmlWriter)

Saves the current report definition to an XmlWriter object.

Declaration
public void Save(XmlWriter writer)
Parameters
Type Name Description
XmlWriter writer

An XmlWriter object where the report definition will be saved.

Remarks

This method does not embed pictures and subreports into the output file.

Save(XmlWriter, bool, FontEmbedType)

Saves the current report definition to an XmlWriter object.

Declaration
public void Save(XmlWriter writer, bool embed, FontEmbedType embedFonts = FontEmbedType.None)
Parameters
Type Name Description
XmlWriter writer

An XmlWriter object where the report definition will be saved.

bool embed

Whether to embed images and subreports into the output stream.

FontEmbedType embedFonts

Indicates how to embed fonts into the output stream.

Save(XmlWriter, bool, bool, FontEmbedType)

Saves the current report definition to an XmlWriter object.

Declaration
public void Save(XmlWriter writer, bool embedImages, bool embedSubReports, FontEmbedType embedFonts = FontEmbedType.None)
Parameters
Type Name Description
XmlWriter writer

An XmlWriter object where the report definition will be saved.

bool embedImages

Whether to embed images into the output stream.

bool embedSubReports

Whether to embed subreports into the output stream.

FontEmbedType embedFonts

Whether and how to embed fonts into the output stream.