overset table textfram select
Textframe contains a large table. I want to copy the overset table values to the next frame. I am using visual studio vb.net 2022. My table is within iTableCaptionFrame. the frame placed correctly. the overflows output is true. I dont know how to copy the overset values. Kindly help
Dim iTableCaptionFrame As InDesign.TextFrame = Nothing
iTableCaptionFrame = indesignDocument.TextFrames.Add(, InDesign.idLocationOptions.idAfter, parentTextFram)
iTableCaptionFrame.PlaceXML(iTGrpELm)
iTableCaptionFrame.GeometricBounds = New Object() {8, -30, -8 + tableElm.Height, tableElm.Width - 30}
iTableCaptionFrame.Fit(InDesign.idFitOptions.idFrameToContent)
indesignDocument.Selection = InDesign.idNothingEnum.idNothing
indesignDocument.Select(iTableCaptionFrame)
Dim parenOrigY1 = parentTextFram.GeometricBounds(0)
Dim parenOrigX1 = parentTextFram.GeometricBounds(1)
Dim parenOrigY2 = parentTextFram.GeometricBounds(2)
Dim parenOrigX2 = parentTextFram.GeometricBounds(3)
nextparentTextFram = parentTextFram.NextTextFrame
parentTextFram.Delete()
iTableCaptionFrame.Move(indesignApplication.ActiveDocument.Pages.Item(parentTextFramId + 2))
iTableCaptionFrame.RotationAngle = 90
iTableCaptionFrame.GeometricBounds = New Object() {parenOrigY2, parenOrigX2, parenOrigY1, parenOrigX1}
Dim tabColcount = tableElm.Columns.Count
Dim celExpandWidth = Math.Round(parentFramheight / tabColcount)
For rowNum As Integer = 1 To tableElm.Rows.Count
Dim curRow As InDesign.Row = tableElm.Rows.Item(rowNum)
For celNum As Integer = 1 To curRow.Cells.Count
If curRow.Cells.Count = tabColcount Then
Dim curCel As InDesign.Cell = curRow.Cells.Item(celNum)
curCel.Width = celExpandWidth
End If
Next
Next
If iTableCaptionFrame.Overflows = True Then
end if
