Gets or sets the file name, when the drawing's bitmap image is exported. An empty string indicates that no export filename has currently be specified for the drawing's image. In this case a constructed filename is used. A filename is constructed in the following form: <document_filename>_<number>.<extension>. The technical article Loading and Saving Images describes where newly created image files are stored.

Syntax

public string ExportFileName { get; set; }
Public Property ExportFileName() As String

Examples

The following example shows how to use the TXTextControl.DataVisualization.DrawingFrameExportCompressionQuality property. Here, it is set to an empty string. Remember, this indicates that a constructed filename is used.

TXTextControl.Drawing.TXDrawingControl myDrawingControl = new TXTextControl.Drawing.TXDrawingControl();
TXTextControl.DataVisualization.DrawingFrame drawingFrame = new TXTextControl.DataVisualization.DrawingFrame(myDrawingControl);

drawingFrame.Activate();
drawingFrame.ExportCompressionQuality = 100; 
drawingFrame.ExportFileName = ""; // here, the ExportFileName is set
drawingFrame.ExportFilterIndex = 1;
drawingFrame.ExportResolution = 100;
drawingFrame.SaveMode = TXTextControl.ImageSaveMode.Auto;

textControl1.Drawings.Add(drawingFrame, -1);
Dim myDrawingControl As TXTextControl.Drawing.TXDrawingControl = New TXTextControl.Drawing.TXDrawingControl()
Dim drawingFrame As TXTextControl.DataVisualization.DrawingFrame = New TXTextControl.DataVisualization.DrawingFrame(myDrawingControl)

drawingFrame.Activate() ' here, the Activate method is used
drawingFrame.ExportCompressionQuality = 100
drawingFrame.ExportFileName = "" ' here, the ExportFileName is set
drawingFrame.ExportFilterIndex = 1
drawingFrame.ExportResolution = 100
drawingFrame.SaveMode = TXTextControl.ImageSaveMode.Auto

textControl1.Drawings.Add(drawingFrame, -1)