“Advance – Invoice Example.zip” is a zipped Visual Studio 2008 solution that I created to demonstrate how far DocX has evolved since version 1.0.0.1. The first time that you run InvoiceExample.exe it will check for the existence of a document called “InvoiceTemplate.docx”, because this is the first execution this document will not exist, so it is created.
Figure 1.0 - InvoiceTemplate.docx created by first run of InvoiceExample.exe
It is important to note that everything you see in the above screenshot was created by DocX. If you now run InvoiceExample.exe again the document “InvoiceTemplate.docx” is found and it is now used to create an invoice for a factitious company called “The Happy Builder”.
Figure 1.1 - Invoice_The_Happy_Builder.docx created by second run of InvoiceExample.exe
As you can see DocX has loaded the document “InvoiceTemplate.docx” into memory and customized it. This was done by setting custom property values, inserting an image, creating a picture from this image, and replacing a Table with a new Table that contains data from a data source.
This example is intended for an experienced user of DocX. A first time user may find this solution overwhelming. Over the next few days, I am going to create a video tutorial called "Getting started with DocX". This video will be targeted at the first time user of DocX.
I hope that from this example you can see how quickly Docx is growing and also how useful it is becoming. As always if you would like to report a bug, request a feature or even just say hi, please email me at coffey.cathal@gmail.com.
happy coding,
Cathal
DocX is completely free, but if you have found it useful and you would like to make a donation you can do so via paypal.




Paypal link report:
ReplyDelete"Sorry, an error occurred after you clicked the last link"
Really awesome piece of work, I will definitely it it a try. Documents looks really nice generated through this tool.
ReplyDeletevery attractive work
ReplyDeleteGreat project Cathal, makes generating data driven word docs a breeze.
ReplyDeleteSounds so interesting and will surely try.. i am sure i would be big fan after looking at it. developerjigar@gmail.com
ReplyDelete