How enter a numeric or text on a table in tm from BasicM.

Post Reply
Gimy
Posts: 6
Joined: Tue Sep 09, 2025 12:27 am

How enter a numeric or text on a table in tm from BasicM.

Post by Gimy »

Hello, some one can help with this:
I have a File abc.tmdx in where I past a table that I creat in PlanMaker. All OK.
In my Pgm.bas I do:
Dim tm as Object : Dim Table1 as Object : Set tm = CreateObject("TextMaker.Application") : tm.Application.RecentFiles.Add FName$
tm.Documents.Open FName$
Set Table1 = tm.ActiveDocument.Tables.Item(1)
'MsgBox tm.ActiveDocument.FormFields(1).Name
' give me Table1
'MsgBox tm.ActiveDocument.FormFields.Count
' give 1 !
'---------
MsgBox tm.ActiveDocument.Tables(1).Rows(2).Cells.Count ' give me 9
tm.ActiveDocument.Tables(1).Rows(2).Cells(5).PreferredWidth = 49 ' is good can change at +- and make the change in Tables(1)
The Problem is that I can not change or input MyData in the Tables
I try this:
With tm.ActiveDocument
.Tables.Item(1).Cell(rowx&,colx&) = "5"
'Error in line: 345 - Object doesn't support this property or method
.Rows(5).Cells(6) = "201" ' R: 1. Invalid procedure call or argument
.Cell(5,6) = "2022" ' R: 2. Invalid procedure call or argument
.Tables.Item.Cell(10,8) = "2022"
End With


tm.ActiveDocument.Tables(1).Cell(10, 8).TextInput.Text = "2022"
BUT all fault. How I Enter the Data in Cells ?
raitis.veksejs
SoftMaker Team
SoftMaker Team
Posts: 141
Joined: Fri Sep 15, 2017 1:29 am

Re: How enter a numeric or text on a table in tm from BasicM.

Post by raitis.veksejs »

It is currently not possible to assign a value to a TextMaker table cell using a BasicMaker script.

I have forwarded your feature wish to our product management team.
Post Reply

Return to “BasicMaker 2021 for Windows”