Table in header


#1

In version 2 of Aspose.Word I could insert a table into the header that was wider than the page margins of the section. I just upgraded to version 3.2.0 and now the right side of the table in the header will not go wider than the right margin defined by the page. How can I get a table inserted into the header to be the width I specify it to be and not truncate based on page margins? Below is the code I'm using to insert the header.

builder.PageSetup.TopMargin = 18
builder.PageSetup.BottomMargin = 72
builder.PageSetup.HeaderDistance = 43
builder.PageSetup.FooterDistance = 11
builder.PageSetup.OddAndEvenPagesHeaderFooter = False
builder.PageSetup.DifferentFirstPageHeaderFooter = False

'----- Header /////////////////////////////////////////////////////////////////////////////////////////////////
builder.MoveToHeaderFooter(HeaderFooterType.HeaderPrimary)
builder.StartTable()
builder.InsertCell()
builder.RowFormat.LeftIndent = -48
builder.CellFormat.Width = 550
builder.CellFormat.Shading.BackgroundPatternColor = System.Drawing.Color.FromArgb(16, 41, 91)
builder.CellFormat.VerticalAlignment = CellVerticalAlignment.Center
CTW.BorderMe(builder, "TBRL", "ThatNavy")
builder.RowFormat.HeightRule = HeightRule.Exactly
builder.RowFormat.Height = 43
builder.Font.Name = "Arial"
builder.Font.Size = 20
builder.Font.Color = System.Drawing.Color.White
builder.Write(" " & HeaderTitle)
builder.EndRow()
builder.EndTable()

'------ Save the final
Doc.Save(FilePath & "Proposal_Items\" & Stored_FileName & "_HF.doc")


#2

Please disregard the above request. I have figured it out by setting RowFormat.AllowAutoFit to False.

Thank you.