Cmdlet
ConvertTo-OfficeExcelHtml
Converts an Excel workbook to an HTML review document.
Syntax
ConvertTo-OfficeExcelHtml
[-EmptyCellText <String>]
[-MaxRowsPerSheet <Int32>]
[-NoDefaultStyles]
[-OutputPath <String>]
[-PassThru]
[-Password <String>]
[-Path] <String>
[-Profile <SemanticTables| VisualReview>]
[-Theme <OfficeVisualThemeKind>]
[-Title <String>]
[<CommonParameters>]#Parameter set:
PathConvertTo-OfficeExcelHtml
[-EmptyCellText <String>]
[-MaxRowsPerSheet <Int32>]
[-NoDefaultStyles]
[-OutputPath <String>]
[-PassThru]
[-Profile <SemanticTables| VisualReview>]
[-Theme <OfficeVisualThemeKind>]
[-Title <String>]
-Workbook <ExcelDocument>
[<CommonParameters>]#Parameter set:
WorkbookExamples
Export a workbook as semantic HTML.
ConvertTo-OfficeExcelHtml -Path .\Report.xlsx -OutputPath .\Report.html -Title 'Workbook Review' -PassThruLoads the workbook and writes an HTML file with tables, formulas, comments, charts, and image inventory where available.
Export a visual review artifact.
ConvertTo-OfficeExcelHtml -Path .\Report.xlsx -Profile VisualReview -OutputPath .\Report.visual.htmlUses the OfficeIMO Excel visual review profile.
Parameters
- -EmptyCellText String
- Text used for empty cells in semantic table output.
- -MaxRowsPerSheet Int32
- 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.
- -Workbook ExcelDocument
- Workbook instance to convert.
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.