I want one textframe to be on the left and one to be on the right at even lengths.
My code:
Code:
public void DefineInvoice(Document document,List<TicketView1> SampleTickets)
{
Section section = document.AddSection();
// create the text frame for address
TextFrame addressFrame = section.AddTextFrame();
addressFrame.Height = "3.0cm";
addressFrame.Width = "7.0cm";
addressFrame.Left = ShapePosition.Left;
//addressFrame.RelativeHorizontal = RelativeHorizontal.Margin;
//addressFrame.MarginTop = "3.0cm";
//addressFrame.RelativeVertical = RelativeVertical.Page;
TextFrame invoiceFrame = section.AddTextFrame();
invoiceFrame.Height = "3.0cm";
invoiceFrame.Width = "7.0cm";
invoiceFrame.Left = ShapePosition.Right;
//fill in address for text frame
Paragraph paragraph = addressFrame.AddParagraph();
paragraph.AddText("Nieto LLC");
paragraph.AddLineBreak();
paragraph.AddText("6110 Google Drive");
paragraph.AddLineBreak();
paragraph.AddText("Houston, TX 77309");
paragraph.AddLineBreak();
paragraph.AddText("P: 281-890-5899");
paragraph = invoiceFrame.AddParagraph();
paragraph.AddText("INVOICE NO");