Table Location for DocumentFormat.OpenXml.Wordprocessing.Table

  • Thread starter Thread starter JRMD Designer
  • Start date Start date
J

JRMD Designer

Guest
Hi;

I am traying to control table location on document. It is adding the table that I want but it is always adding at the end of the document.

My table postion property is :


DocumentFormat.OpenXml.Wordprocessing.Table table = new DocumentFormat.OpenXml.Wordprocessing.Table();


TablePositionProperties tblloc= new TablePositionProperties { HorizontalAnchor = HorizontalAnchorValues.Page, VerticalAnchor = VerticalAnchorValues.Page, TablePositionX = 0, TablePositionY = 0 };

table.AppendChild<TablePositionProperties>(tblloc);


doc.Body.Append(table);



I want to add anchor string on document and replace this string(or text) with the table in code.

Thank you in advance.

Continue reading...
 
Back
Top