API Reference
Cmdlet
ConvertTo-OfficeExcelHtml
Converts an Excel workbook to an HTML review document.
Remarks
Converts an Excel workbook to an HTML review document.
Examples
Export a workbook as semantic HTML.
PS>
ConvertTo-OfficeExcelHtml -Path .\Report.xlsx -OutputPath .\Report.html -Title 'Workbook Review' -PassThru
Loads the workbook and writes an HTML file with tables, formulas, comments, charts, and image inventory where available.
Export a visual review artifact.
PS>
ConvertTo-OfficeExcelHtml -Path .\Report.xlsx -Profile VisualReview -OutputPath .\Report.visual.html
Uses the OfficeIMO Excel visual review profile.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
ConvertTo-OfficeExcelHtml [-EmptyCellText <String>] [-MaxRowsPerSheet <Nullable`1>] [-NoDefaultStyles] [-OutputPath <String>] [-PassThru] [-Password <String>] -Path <String> [-Profile <SemanticTables|VisualReview>] [-Theme <Plain>] [-Title <String>] [<CommonParameters>]#Parameter set:
PathParameters
- EmptyCellText String
- Text used for empty cells in semantic table output.
- MaxRowsPerSheet Nullable`1
- Maximum number of used rows to emit per worksheet.
- NoDefaultStyles SwitchParameter
- Do not include OfficeIMO default CSS styles.
- OutputPath String
- Optional output HTML path. When omitted, HTML text is returned.
- PassThru SwitchParameter
- Emit a FileInfo when saving to disk.
- Password String
- Password used to open an encrypted workbook package.
- Path String
- Path to the workbook to convert.
- Profile OfficeExcelHtmlProfile
- HTML conversion profile.
- Possible values:
SemanticTables,VisualReview - Theme OfficeVisualThemeKind
- Built-in HTML document theme.
- Possible values:
Plain,WordLike,TechnicalDocument,GitHubLike,Compact,Report - Title String
- Optional HTML document title.
Outputs
System.String System.IO.FileInfo
ConvertTo-OfficeExcelHtml [-EmptyCellText <String>] [-MaxRowsPerSheet <Nullable`1>] [-NoDefaultStyles] [-OutputPath <String>] [-PassThru] [-Profile <SemanticTables|VisualReview>] [-Theme <Plain>] [-Title <String>] -Workbook <ExcelDocument> [<CommonParameters>]#Parameter set:
WorkbookParameters
- EmptyCellText String
- Text used for empty cells in semantic table output.
- MaxRowsPerSheet Nullable`1
- Maximum number of used rows to emit per worksheet.
- NoDefaultStyles SwitchParameter
- Do not include OfficeIMO default CSS styles.
- OutputPath String
- Optional output HTML path. When omitted, HTML text is returned.
- PassThru SwitchParameter
- Emit a FileInfo when saving to disk.
- Profile OfficeExcelHtmlProfile
- HTML conversion profile.
- Possible values:
SemanticTables,VisualReview - Theme OfficeVisualThemeKind
- Built-in HTML document theme.
- Possible values:
Plain,WordLike,TechnicalDocument,GitHubLike,Compact,Report - Title String
- Optional HTML document title.
- Workbook ExcelDocument
- Workbook instance to convert.
Outputs
System.String System.IO.FileInfo