Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
Dear all,
I using the FOSI and the APP source edit for the box, but when the box across pages, we lost 2 line, can I add it in the source edit? thanks!
the APP source:
the example is:
var fish = formatting.fish[ template.stylerFish ];
var block = arguments[0];
var paragraph = block.defaultParagraph;
var style = block.defaultStyle;
var contextProp = arguments[1];
//Create a rule to apply to the block
//Rule is 2pt thick, solid, red and applied to all sides of the block
var rule = new fRule;
rule.sides = fRule.SIDE_BOX;
rule.thickness = "2pt";
rule.lineColor = "red";
rule.lineStyle = fRuleLine.LINE_SOLID;
//Apply the rule to the block
block.rules.addRule(rule);
//Add some padding to the block to provide some space between the rule and the content
block.paddingTop = block.paddingBottom = block.paddingLeft = block.paddingRight = "3pt";
and the "box" also can get the border:
var block = arguments[0];
var paragraph = block.defaultParagraph;
var style = block.defaultStyle;
//Apply a -2.999pt rule to the block to offset the main rule
var rule = new fRule();
with (rule) {
thickness = "-2.999pt";
lineColor = "None";
sides = "tblr";
}
block.rules.addRule(rule);
//Apply the main rule to the block
var rule = new fRule();
with (rule) {
//Line thickness
thickness = "1pt";
//Line colour
lineColor = "Black";
//Sides (top, bottom, left and right)
sides = "tblr";
//Fill colour specifies background for boxing
fillColor = "#FFFFFF";
}
block.rules.addRule(rule);
//Apply a final rule to the block to remove the offset
var rule = new fRule();
with (rule) {
thickness = "2pt";
lineColor = "None";
sides = "tblr";
}
block.rules.addRule(rule);
the FOSI source:
boxing toffset=3pt boffset=3pt loffset=2pt roffset=2pt thick=1pt inclr=#FFFFFF
Can I add the lines for the end/head of pages by update the source? Or could you give me any tips please?
Your assistance will be highly appreciated in this regard.
Thanking you
Solved! Go to Solution.
This is by design.
Its purpose was to indicate that the table is continued on the next page.
A workaround is described in article 58143
https://www.ptc.com/appserver/cs/view/solution.jsp?n=CS58143
\TableSplitPreBrk=0
\TableSplitPostBrk=0
\TableRulePreBrk=1
\TableRulePostBrk=1
doctypes\mysample\mysample.dtd
doctypes\mysample\mysample.tmx
local\docs\sampledoc.xml
local\docs\sampledoc.tmx
This is by design.
Its purpose was to indicate that the table is continued on the next page.
A workaround is described in article 58143
https://www.ptc.com/appserver/cs/view/solution.jsp?n=CS58143
\TableSplitPreBrk=0
\TableSplitPostBrk=0
\TableRulePreBrk=1
\TableRulePostBrk=1
doctypes\mysample\mysample.dtd
doctypes\mysample\mysample.tmx
local\docs\sampledoc.xml
local\docs\sampledoc.tmx
Hi Tim,
Thank you very much for your detailed answer, I will try to follow it!