Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
how to put numbers for paragraphs and titles
aelmrabti
I need to add numbers to titles and paragraphs in PDF and DOC reports
1 Tilte1
1.1 sub-title1
1.2 sub-title1
2 Tilte2
...
I have not found a way how to do it
, any help please
Find more posts tagged with
Comments
mcremer
<blockquote class='ipsBlockquote' data-author="'aelmrabti'" data-cid="83709" data-time="1317722035" data-date="04 October 2011 - 02:53 AM"><p>
I need to add numbers to titles and paragraphs in PDF and DOC reports<br />
<br />
1 Tilte1<br />
1.1 sub-title1<br />
1.2 sub-title1<br />
2 Tilte2<br />
...<br />
<br />
I have not found a way how to do it
, any help please<br /></p></blockquote>
<br />
Youl probably need to script this.<br />
<br />
Using somting as <br />
<br />
For the title<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>vars["MAIN"] = vars["MAIN"] + 1
vars["sub"] = 0
vars["MAIN"]</pre>
<br />
For the sub<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>vars["sub"] = vars["sub"] + 1
vars["MAIN"] + '.' + vars["sub"]</pre>
<br />
then the header of course
. Maybe a nice feature to request
.
aelmrabti
Thanx,
Do you have a simple example,
i didn't understand what to do to header
mcremer
<blockquote class='ipsBlockquote' data-author="'aelmrabti'" data-cid="83727" data-time="1317740091" data-date="04 October 2011 - 07:54 AM"><p>
Thanx,<br />
<br />
Do you have a simple example,<br />
<br />
i didn't understand what to do to header
<br /></p></blockquote>
<br />
You edit your header add this script:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
vars["MAIN"] = vars["MAIN"] + 1
vars["sub"] = 0
vars["MAIN"] + dataSetRow["headername"]
</pre>