Before change one had to use:
Picture headPicture = header.CreatePicture();
headPicture.Height = 161;
headPicture.Width = 610;
Afer change it's possible to use oneliner:
Picture headPicture = header.CreatePicture(161, 610);
Now both options are available.
Reinserting the same document a large number of time > 100 caused the styles table to explode.
This should not have happened because each iteration contributes no new style. This has been fixed and tested with reinsertion as large as 1,000 times.
Word 2007 and 2010 has no problem opening these documents... apart from the fact that they are massive > 100MB uncompressed.
1. override InsertTable(int rowCount, int columnCount) method in Table Cell because of bug.
Cell need paragraph in the end.
2. InsertTableBeforeSelf(Table t) behaviour changed, now it returns completely new table copied from parameter table.
3. InsertParagraphAfterSelf(Paragraph p) behaviour changed, now it returns completely new paragraph copied from parameter paragraph, but only in case for this is Paragraph
4. InsertTableAfterSelf(Table t) the same as for InsertTableBeforeSelf behaviour changed, now it returns completely new table copied from parameter table.
P.S. Look please my //IMPORTANT notes in code.
Sandcastles (The documentation builders) now support Visual Studio 2010 integration. In this light I have added a Documentation project to the DocX solution. This will help to keep the DocX.chm file up to date.
The get and set methods for Paragraph.Hyperlinks where broken.
This changeset fixes that and another issue. I discovered that Word allows Hyperlinks to be defined in two ways, inline and normal. DocX now supports both.
This changeset also contains new unit tests that will hopefully prevent Hyperlink support from braking again.
Added a patch provided by ArtFeel. By default the document language use to be English (Ireland). DocX now uses CurrentCulture to infer the correct language. You can know also specify a specific language.
Thank you for this patch ArtFeel. Also thanks to MadBoy for reminding me about it, without you this might have been lost in the discussions section of codeplex. Sorry about the delay Madboy.
Refactor the Table class: RowCount, ColumnCount, Rows properties and Insert/Remove methods. Also refactor CreateTable method - extract the same method CreateTableCell. Add powerfull unit test for this.