Spire.Doc -A boost for .NET Developers

4.00 avg. rating (87% score) - 1 vote

Recently I got an opportunity from a China-Based Company E-Iceblue, to review one of their products. This for an instant bewildered me as I thought was I that eligible or it was my destiny!! Their product was Spire.doc.Spire.Doc for .NET is a professional Word .NET library specially designed for developers to create, read, write, convert and print Word document files from any .NET( C#, VB.NET, ASP.NET) platform with fast and high quality performance. It doesnot need Microsoft Word to be installed as it is an independent component(A Word.Net component)

I could not believe that we could  incorporate Microsoft Word document creation capabilities into any developers’ .NET applications. Strange right!!  It supports C#, VB.NET, ASP.NET and ASP.NET MVC. One important thing is it can convert the documents to the formats with High Quality.

 

How to Install Spire!!

Its easy and simple, not complex as trivial ones. The Spire.Doc installation is clean, professional and wrapped up in a MSI installer. The first few slides are mandatory informatory and license agreement as it is in most of the products we install right!! and none of us in individuals when we install read the EULA(End User License Agreement)but as an organization or company, it is required to completely go through it before investing.

Spire Doc. is a light weight product, it consumes only 180 MB for installation. Yes when as we download and install it creates chaos if our net speed is slow, but thats not the case in any organizations.

The MSI option provides a full experience, including:

  1. Installs the assemblies (multiple assemblies to support different versions of the .NET Framework)
  2. Installs the demo projects with source code
  3. Installs the documentation locally on the developer’s machine
  4. Adds the assembly to the Add Reference dialog box in Visual Studio

After the installation, the developer must manually add a reference to the assembly. Locally-installed documentation is available by means of Windows HTML Help, which is completely available and searchable while disconnected from the Internet.

 

Functionalities

Below are the list of functionalities provided by the Spire.Doc(I call it “Magic Doc“):-

  • Spire.Doc for .NET is a totally independent .NET Word class library which doesn’t require Microsoft Office installed on system. Microsoft Office Automation is proved to be unstable, slow and not scalable to produce MS Word documents. Spire.Doc for .NET is many times faster than Microsoft Word Automation and with much better stability and scalability.
  • By using Spire.Doc for .NET, users can save Word Doc/Docx to stream, save as web response and convert Word Doc/Docx to XML, RTF, EMF,TXT, XPS, EPUB,HTML and vice versa. Spire.Doc for .NET also supports to convert Word Doc/Docx to PDF and HTML to image.
  • A common use of Spire.Doc for .NET is to create Word document dynamically from scratch. Almost all Word document elements are supported. Mainly includes page,sections, headers, footers,footnotes,paragraphs, lists, tables, text, fields, hyperlinks, bookmarks, comments, images, background settings,printing features, document settings and protection. Furthermore, drawing objects including shapes, textboxes, images, OLE objects and controls are supported as well.
  • By using Spire.Doc, developers can build any type of a 32-bit or 64-bit .NET application including C#, VB.NET, ASP.NET, Web Services and WinForms for .NET Framework version from 2.0 to 4.5.
  • High performance for generating Word documents with huge pages. Superior performance support for reading and writing Word documents.

And Many More…This is what I explored in this span of time.

Lets Start

STEPS

  1. Lets go with a Console Application. Start a console application in Visual Studio 2012/13 and name your application SpireDemo. Name your app as SpireDemo.
  2. Then in the Solution Explorer , select the reference and add the assemblies related to SpireDoc. “Spire.Doc.dll“->Spire.Doc,Spire.License,Spire.pdf.
  3.  Now its time to Code:-

 

We could save in any format as mentioned for instance

 

All the File formats are present in an Enumeration FileFormat.cs

Now Question is Did that work?

Yes perfect !! Its working really nice. Playing and juggling with this product, I will explore many new things. Will keep on sharing.

Thank you.(E-Iceblue)