Class XlsmFormatProvider
Imports and exports workbooks in Excel Macro-Enabled Workbook (.xlsm) format, preserving VBA macros and scripts.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.FormatProviders.OpenXml.Xlsm
Assembly: Telerik.Windows.Documents.Spreadsheet.FormatProviders.OpenXml.dll
Syntax
public class XlsmFormatProvider : BinaryWorkbookFormatProviderBase, IBinaryWorkbookFormatProvider, IWorkbookFormatProvider
Constructors
XlsmFormatProvider()
Properties
CanExport
Indicates whether this provider supports exporting workbooks to .xlsm format.
Declaration
public override bool CanExport { get; }
Property Value
|
System.Boolean
The value indicating whether can export. |
Overrides
CanImport
Indicates whether this provider supports importing .xlsm files into workbook instances.
Declaration
public override bool CanImport { get; }
Property Value
|
System.Boolean
The value indicating whether can import. |
Overrides
FilesDescription
Human-readable description of supported files (e.g., "Excel Macro-Enabled Workbook").
Declaration
public override string FilesDescription { get; }
Property Value
|
System.String
The files description. |
Overrides
Name
Identifier for this format provider, used for discovery and registration.
Declaration
public override string Name { get; }
Property Value
|
System.String
The name of the provider. |
Overrides
SupportedExtensions
File extensions recognized by this provider (e.g., ".xlsm").
Declaration
public override IEnumerable<string> SupportedExtensions { get; }
Property Value
|
System.Collections.Generic.IEnumerable<System.String>
The supported extensions. |
Overrides
Methods
ExportOverride(Workbook, Stream)
Writes the workbook to the stream in .xlsm format, preserving any VBA macros or scripts present.
Declaration
[Obsolete("This method is obsolete. Please use ExportOverride(Workbook workbook, Stream output, CancellationToken cancellationToken) instead.")]
protected override void ExportOverride(Workbook workbook, Stream output)
Parameters
|
Workbook
workbook
The workbook. |
|
System.IO.Stream
output
The output. |
Overrides
ExportOverride(Workbook, Stream, CancellationToken)
Writes the workbook to the stream in .xlsm format with cancellation support, preserving any VBA macros or scripts present.
Declaration
protected override void ExportOverride(Workbook workbook, Stream output, CancellationToken cancellationToken)
Parameters
|
Workbook
workbook
The workbook. |
|
System.IO.Stream
output
The output. |
|
System.Threading.CancellationToken
cancellationToken
The cancellation token used to cancel the operation. |
Overrides
ImportOverride(Stream)
Reads an .xlsm file from the stream and constructs a Workbook instance, preserving VBA macros if present.
Declaration
[Obsolete("This method is obsolete. Please use ImportOverride(Stream input, CancellationToken cancellationToken) instead.")]
protected override Workbook ImportOverride(Stream input)
Parameters
|
System.IO.Stream
input
The input. |
Returns
|
Workbook
The imported workbook. |
Overrides
ImportOverride(Stream, CancellationToken)
Reads an .xlsm file from the stream with cancellation support, constructing a Workbook instance while preserving VBA macros.
Declaration
protected override Workbook ImportOverride(Stream input, CancellationToken cancellationToken)
Parameters
|
System.IO.Stream
input
The input. |
|
System.Threading.CancellationToken
cancellationToken
The cancellation token used to cancel the operation. |
Returns
|
Workbook
The imported workbook. |