|
Description
|
Returns/sets the DXF file to display in the control.
|
Syntax Visual Basic
|
[form.]DXFReader.FileName[ = Text$]
|
|
Visual C++
|
CString DXFReader.GetFileName(); void DXFReader.SetFileName(LPCTSTR lpszNewValue);
|
|
Delphi
|
property FileName: WideString;
|
|
C#
|
string DXFReader.FileName;
|
|
Remarks
|
This is the default property of the control.
The ReadDXF and WriteDXF methods use this property as filename if not indicated. Setting this property at design time will display the drawing in the control. This property is also defined as bindable. It is possible to associate it with fields in any data source, making it easier to use DXFReader in database applications.
For example the code below shows how to use DXFReader to create a batch plot utility that plots every file whose filename is contained in the field "FileName" of the table "Drawings" in the database "MyProjects.mdb":
Data1.DataBaseName = "MyProjects.mdb" Data1.RecordSource = "Drawings"
DXFReader1.DataSource = "Data1" DXFReader1.DataField = "FileName"
Data1.RecordSet.MoveFirst
While Not Data1.RecordSet.EOF DXFReader1.ReadDXF
DXFReader1.Plot
Data1.RecordSet.MoveNext
Wend
|
|
Data Type
|
String
|