Copy link to clipboard
Copied
var imgName = "img1.tif";
myTable.columns[0].cells[0].contents = "Figure Name: " + imgName;
In the above code, I need to apply Bold to "Figure Name: " alone.
Is there any way to do this?
Hi @Karthik SG , Try this—it assumes the font has a "Bold" fontStyle
var imgName = "img1.tif";
var myTable = app.activeDocument.stories[0].tables[0];
myTable.columns[0].cells[0].contents = "Figure Name: " + imgName;
myTable.columns[0].cells[0].words.itemByRange(0,1).fontStyle = "Bold"
Copy link to clipboard
Copied
Hi @Karthik SG , Try this—it assumes the font has a "Bold" fontStyle
var imgName = "img1.tif";
var myTable = app.activeDocument.stories[0].tables[0];
myTable.columns[0].cells[0].contents = "Figure Name: " + imgName;
myTable.columns[0].cells[0].words.itemByRange(0,1).fontStyle = "Bold"
Copy link to clipboard
Copied
Thank you @rob day , it is working!