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.

TOPICS
Scripting

Views

179

Likes

Translate

Translate

Report

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

1 Correct Answer

Adobe Community Professional , Nov 08, 2017
frameexpert Adobe Community Professional , Nov 08, 2017
#target framemakervar doc = app.ActiveDoc;var tbl = doc.SelectedTbl;var tblFmt = doc.GetNamedTblFmt (tbl.TblTag);alert (tblFmt.ObjectValid ());

Likes

Translate

Translate
Jump to answer Jump to answer
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
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
varuns44789478 AUTHOR LATEST
New Here ,
Nov 08, 2017

Copy link to clipboard

Copied

thanks!

Likes

Translate

Translate

Report

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