dleahy Posted April 18, 2012 Share Posted April 18, 2012 Hello fellas, Having a problem with a mystery indent... var myTable = new FPTable; myTable.AddColumns(10000,28656); myTable.AddRows(1); myTable.Rows[0].Cells[0].Font="Arial"; myTable.Rows[0].Cells[0].TextColor="Green"; myTable.Rows[0].Cells[0].PointSize="9"; myTable.Rows[0].Cells[0].Content ="Agenda:"; myTable.Rows[0].Cells[0].HAlign="left"; myTable.Rows[0].Cells[1].Font="Arial"; myTable.Rows[0].Cells[1].TextColor="Black"; myTable.Rows[0].Cells[1].PointSize="9"; myTable.Rows[0].Cells[1].Content= Field("Agenda"); return myTable.MakeTags(); Why does the text "Agenda:" have a space before it script is run during FP preview? (see attached screenshot) Quote Link to comment Share on other sites More sharing options...
step Posted April 18, 2012 Share Posted April 18, 2012 Try adjusting the margins of your table: var myTable = new FPTable; myTable.AddColumns(10000,28656); myTable.AddRows(1); myTable.Rows[0].Cells[0].Font="Arial"; myTable.Rows[0].Cells[0].TextColor="Green"; myTable.Rows[0].Cells[0].PointSize="9"; myTable.Rows[0].Cells[0].Content ="Agenda:"; myTable.Rows[0].Cells[0].HAlign="left"; [color="Red"]myTable.Rows[0].Cells[0].Margins = new FPTableMargins; myTable.Rows[0].Cells[0].Margins.Top = 60; myTable.Rows[0].Cells[0].Margins.Bottom = 60; myTable.Rows[0].Cells[0].Margins.Left = 0; myTable.Rows[0].Cells[0].Margins.Right = 0;[/color] myTable.Rows[0].Cells[1].Font="Arial"; myTable.Rows[0].Cells[1].TextColor="Black"; myTable.Rows[0].Cells[1].PointSize="9"; myTable.Rows[0].Cells[1].Content= Field("Agenda"); return myTable.MakeTags(); Quote Link to comment Share on other sites More sharing options...
dleahy Posted April 18, 2012 Author Share Posted April 18, 2012 Bingo baby! Thanks...i swear I tried that earlier but I didn't define a value for each margin... Thanks step! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.