Highlighted

How to access TblFmt from a Tbl object?

New Here ,
Nov 08, 2017

Copy link to clipboard

Copied

Is there any way to get a TblFmt from a selected Tbl which I can then use to set the TblFmt while creating a new Tbl from selected paragraphs? I am looking to convert a table to paragraphs, work on the paragraphs and then reconvert the paragraphs into a new table with the same format as previous table. I have a TextRange of selected paragraphs and am able to create a new Tbl using FCode KBD_TABLE_CONVERT but I want the new Tbl to have the same properties as the old Tbl.

Adobe Community Professional
Correct answer by frameexpert | Adobe Community Professional

#target framemaker

var doc = app.ActiveDoc;

var tbl = doc.SelectedTbl;

var tblFmt = doc.GetNamedTblFmt (tbl.TblTag);

alert (tblFmt.ObjectValid ());

TOPICS
Scripting

Views

161

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

How to access TblFmt from a Tbl object?

New Here ,
Nov 08, 2017

Copy link to clipboard

Copied

Is there any way to get a TblFmt from a selected Tbl which I can then use to set the TblFmt while creating a new Tbl from selected paragraphs? I am looking to convert a table to paragraphs, work on the paragraphs and then reconvert the paragraphs into a new table with the same format as previous table. I have a TextRange of selected paragraphs and am able to create a new Tbl using FCode KBD_TABLE_CONVERT but I want the new Tbl to have the same properties as the old Tbl.

Adobe Community Professional
Correct answer by frameexpert | Adobe Community Professional

#target framemaker

var doc = app.ActiveDoc;

var tbl = doc.SelectedTbl;

var tblFmt = doc.GetNamedTblFmt (tbl.TblTag);

alert (tblFmt.ObjectValid ());

TOPICS
Scripting

Views

162

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Nov 08, 2017 0
Adobe Community Professional ,
Nov 08, 2017

Copy link to clipboard

Copied

#target framemaker

var doc = app.ActiveDoc;

var tbl = doc.SelectedTbl;

var tblFmt = doc.GetNamedTblFmt (tbl.TblTag);

alert (tblFmt.ObjectValid ());

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 08, 2017 0
New Here ,
Nov 08, 2017

Copy link to clipboard

Copied

thanks!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 08, 2017 0