How to add a table after the first paragraph
I want to add multiple lines of text (each ending with \n) to the first paragraph in a document and then add a table after that. I can create the doc and table but there is only 1 line in the paragraph and the rest of the lines are there but covered up by the table.
doc = app.ActiveDoc;
var textLoc, tbl;
textLoc = new TextLoc (doc,MainFlowInDoc.FirstTextFrameInFlow.FirstPgf, 0);
doc.AddText (textLoc, multipleLineStringVariable );
//This works but only shows 1 line in the paragraph which makes sense
//textLoc = new TextLoc (doc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf, 0);
//My first attempt at using a Constant and this line crashed FrameMaker
textLoc = new TextLoc (doc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf, Constants.FV_OBJ_END_OFFSET);
// NewTable(format, numCols, numBodyRows, numHeaderRows, numFooterRows, textLoc);
tbl = doc.NewTable ("Format A", 4, 10, 1, 0, textLoc);
