Skip to content
Converter that converts Excel Workbooks to a single HTML page
C# HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ExcelToHtmlConverter.Api
ExcelToHtmlConverter.Core
ExcelToHtmlConverter.Docs
ExcelToHtmlConverter
ExcelToHtmlConverterTest.Core
ExcelToHtmlConverterTest
.gitattributes
.gitignore
ExcelToHtmlConverter.sln
README.md

README.md

ExcelToHtml

Converter that converts Microsoft Excel Workbooks into HTML webpages.

ExcelToHtml Logo

Project Modularization

ExcelToHtmlConverter

The UI for the Application (WPF) Model-View-ViewModel Concept

ExcelToHtmlConverter.Api

API that defines the interface for the business logic

ExcelToHtmlConverter.Core

The actual business logic of the converter. Contains the parser to parse Excel-Workbooks into an intermediate model. Renders the intermediate model with the a Razor-Template to a HTML file.

Build

msbuild -t:Clean,Build

Screenshots

The UI of ExcelToHtml Converter

An example result

Template

You can create your own customized Template for rendering your Excel-Workbook to HTML. The Template has to be a Razor-Engine Template file. The Model that you can use for rendering is defined as followed:

Workbook: Model

Workbook
- string: Name
- List<Worksheet>:  Worksheets

Worksheet
- string: Name
- List<Row>: Rows
- string: Id (autogenerated and unique)
- int: WidthPixel

Row
- List<Cell>: Cells

Cell
- string: Value
- string: BackgroundColor (starting with #)
- string: TextColor (starting with #)
- string: WidthClass (CSS class predefined according to twitter bootstrap)
- int: WidthPixel
You can’t perform that action at this time.