As a new standard for eBooks, EPUB (stands for "electronic publication") is the accepted standard format for digital book publishing. EPUB is designed for reflowable content in which the text display can be optimized for the particular display devices. Because of its special features, it superseded the Open eBook standard. And through Spire.Doc, developers can easily make ePub from Word document.
Spire.Doc is a .NET Word component which enables developers use C#/VB.NET convert Word Doc to ePub with a few clicks. Download Spire.Doc and make sure Spire.Doc and Visual Studio are correctly installed on system. Follow the simple instruction below to convert Word Doc to ePub.
Step 1 Create Project
Create a C# or VB.NET project in Visual Studio and add Spire.Do.dll as reference. The default setting of Spire.Doc.dll is placed under "C:\Program Files\e-iceblue\Spire.Doc\Bin”. Select assembly Spire.Doc.dll and click OK to add it to the project.
static void Main(string args)
Step 2 Load Word Document
Spire.Doc allows developers to create Word document or directly load an existed Word file. Spire.Doc supports Word 97, Word 2003, Word 2007 and Word 2010.
//Load Word document
Document doc = new Document();
Step 3 Convert Word to ePub
To convert Word to ePub, we can easily use the following code. Besides converting Word Doc to ePub, we can also use Spire.Doc to convert Word Doc to PDF, XML, HTML, RTF, Dot, Text, etc.
Spire.Doc is an MS Word component which enables user to perform a wide range of Word document processing tasks directly, such as generate, read, write and modify Word document for .NET and Silverlight. Click to learn more…