Quantcast
Channel: PTC Community : All Content - Arbortext
Viewing all articles
Browse latest Browse all 1645

Change cell border color using edit source APP

$
0
0

Hello everyone,

 

I am currently working on a process which publish an xml to PDF. I use APP. I would like to have a table which borders are gray and header row is with gray background. Like in this figure:

output.jpg

The the header shading, I follow the instruction from topic: "How to colour table header in PDF". It works well. Thanks for Joachim Groos!

 

However, when I do the same for table cell border, it goes into problem. Here are what I do:

1. I create a Property set "table-cell-frame" which create a rule, and then I add that rule into current table cell. Like this:

styler1.jpg

2. I added that property to context "entry anywhere in thead"

 

The output, in fact, is working as desired. However, there are errors in event log. The errors are:

"Pg 4 JavaScript: Error: Error: fRules.addRule: Invalid object addRule([object fRule])@:0 onEnter([object Object],[object Object])@stylesheet0:PropertySet:table-cell-frame:onEnter:24

onEnter([object fStreamPos])@stylesheet0:Element:entry:theadentry7936:onEnter:23 runMacro("sprint \"_app:spFormatWithIndex\"",true)@:0 @_app:FormatWithIndex:3

. [1500]  (2:"stylesheet0:Element:entry:theadentry7936:onEnter"#93) (1:"editorDom0"#{0;/RDStyle/ResolvedMap/techinfomap/division[1]/concept/conbody/table/tgroup/thead/row/entry[1]/p}) "

 

I guess those javascript errors are because addRule() is called from a wrong context. But why the results show the correct layout?

 

I have checked in the help for anywhere using addRule(), unfortunately, there is no example for calling that function from a cell. Changing the border manually using "Modify Borders" dialog is not an option.

 

Does anyone has experience with this? Thanks in advance for  any idea how this behave like this and what can I do to resolve!

 

With best regards,

Thao Nguyen


Viewing all articles
Browse latest Browse all 1645

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>