Convert Word Doc to ePub
Even though most of people share more documents electronically than we print, MS Word document is still the hottest tool for designing content around paper documents. MS Word documents can still work great for sharing with others and distributing online, and it often can be better to save your files in an eReader friendly format. PDF is another choice for sharing but on some eReader devices like Nook, Kindle and Sony Reader it doesn't look nice. And, it takes up valuable space on Netbook or iPad.
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.
using System;
using Spire.Doc;
namespace Doc2epub
{
class Program
{
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();
doc.LoadFromFile(@"..\..\..\..\..\..\Data\DocToEpub.doc", FileFormat.Doc);
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.
doc.SaveToFile(@"..\..\result.epub",FileFormat.EPub);
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.
using System;
using Spire.Doc;
namespace Doc2epub
{
class Program
{
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();
doc.LoadFromFile(@"..\..\..\..\..\..\Data\DocToEpub.doc", FileFormat.Doc);
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.
doc.SaveToFile(@"..\..\result.epub",FileFormat.EPub);
After finish the code above, press F5 to start the project. Then, the ePub document will be generated under the project bin->debug folder.
Effective Screenshot:
Effective Screenshot:
More about Spire.Doc
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…
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…