• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to access TblFmt from a Tbl object?

New Here ,
Nov 08, 2017 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

277

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
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 08, 2017 Nov 08, 2017

#target framemaker

var doc = app.ActiveDoc;

var tbl = doc.SelectedTbl;

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

alert (tblFmt.ObjectValid ());

Votes

Translate

Translate
Community Expert ,
Nov 08, 2017 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 ());

Votes

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
community guidelines
New Here ,
Nov 08, 2017 Nov 08, 2017

Copy link to clipboard

Copied

LATEST

thanks!

Votes

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
community guidelines