This project is read-only.
1
Vote

problem in create table

description

HI

your dll is really amazing it help me alot but when i try create tables , it give me error in word file when i try open it i use same example that you add in documentation .
could u please help me in that ?

Thanks alot

comments

Tatibah wrote May 4, 2014 at 4:44 AM

Hi Thanks for the feedback.

I have just download the dll and copied the example UsingTables.cs and I can open the document in Word 2013 just fine. It doesn't matter if the images exist or not because if they are not there I just a message within the document.

Is the document being created, if so can you attach it? This should give me a better idea where the problem is.

cheers

mask220 wrote May 4, 2014 at 11:17 AM

problem i facing it when i open document with MS Word 2007

Tatibah wrote May 8, 2014 at 12:02 PM

Thanks for your patience. There is a problem with Word 2007 and it is caused by the table borders. The easiest thing to do would be to remove the borders, you can do this by setting the border to none after the table has been created: e.g.
   Table table = new Table(2, 2);
   table.SetAllBorders(DocumentFormat.OpenXml.Wordprocessing.BorderValues.None);
There are still validation errors against Word 2007 but it ignores them. The attached image shows the changes in Visual Studio. I will also change the front page to remove the reference to Word 2007.

Sorry about that