combit List & Label 30 - .NET Help
combit.Reporting.Dom Namespace / ProjectBase Class / Open Method / Open(String,LlDomFileMode,LlDomAccessMode,Boolean) Method
File to open.
Gets or sets if the file is to be read or created.
Gets or sets the access mode for the file.

If this parameter is used, syntax errors in the project are ignored. This has the advantage that projects can be opened and edited successfully even if the data structure is not known or logged in. If the flag is not set, the ExpressionError Event can be used to collect the error messages for display.

Note: But then the formulas in the project are treated like placeholders, and so the section with the used variables (see LlGetUsedIdentifiers()) can not be written correctly, if you append e.g. more columns in a table. The content of this section is then left unchanged when saving. The same applies to the case when a new table is inserted in a report container that was not used before. In addition, in this case the types of individual elements in the project file cannot be correctly identified. It is then necessary to specify the associated data source in the ListLabel object used. Only in this way can any formulas etc. be interpreted to use the correct DOM type. For such cases, this parameter must therefore not be set.



Open(String,LlDomFileMode,LlDomAccessMode,Boolean) Method
The Open method opens the project file in parameter projectFile. If you want to open an existing project file you have to obey that the project type (list, label or card) matches the class.
Syntax

Parameters

projectFile
File to open.
fileMode
Gets or sets if the file is to be read or created.
accessMode
Gets or sets the access mode for the file.
ignoreErrors

If this parameter is used, syntax errors in the project are ignored. This has the advantage that projects can be opened and edited successfully even if the data structure is not known or logged in. If the flag is not set, the ExpressionError Event can be used to collect the error messages for display.

Note: But then the formulas in the project are treated like placeholders, and so the section with the used variables (see LlGetUsedIdentifiers()) can not be written correctly, if you append e.g. more columns in a table. The content of this section is then left unchanged when saving. The same applies to the case when a new table is inserted in a report container that was not used before. In addition, in this case the types of individual elements in the project file cannot be correctly identified. It is then necessary to specify the associated data source in the ListLabel object used. Only in this way can any formulas etc. be interpreted to use the correct DOM type. For such cases, this parameter must therefore not be set.

Requirements

Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
.NET: .NET Framework 4.8, .NET 6, .NET 8, .NET 9

See Also