Difference between revisions of "Tabulation addHeaderParagraph"

From Catglobe Wiki
Jump to: navigation, search
(Created page with "=== <span style="color:#DF8621">'''Examples'''</span> === <source lang="javascript"> //Header //We need a TabulationParagraphStyle, like with a normal paragraph. TabulationPa...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
==== Tabulation_addHeaderParagraph ====
 +
 +
Adds an paragraph to the header
 +
 +
'''Syntax'''
 +
 +
Tabulation_addHeaderParagraph(''TabulationParagraph'')
 +
 +
'''Arguments'''
 +
 +
*[[TabulationParagraph class|''TabulationParagraph'']]
 +
 
=== <span style="color:#DF8621">'''Examples'''</span> ===
 
=== <span style="color:#DF8621">'''Examples'''</span> ===
  
Line 18: Line 30:
 
Tabulation_addHeaderParagraph(new TabulationParagraph(paragraphStyleHeader1, "dd/mm/yyyy", textStyleHeaderFooter));
 
Tabulation_addHeaderParagraph(new TabulationParagraph(paragraphStyleHeader1, "dd/mm/yyyy", textStyleHeaderFooter));
 
Tabulation_addHeaderParagraph(new TabulationParagraph(paragraphStyleHeader1, "Report X", textStyleHeaderFooter));</source>
 
Tabulation_addHeaderParagraph(new TabulationParagraph(paragraphStyleHeader1, "Report X", textStyleHeaderFooter));</source>
 +
 +
[[category:Diagram/report generating CGScript functions]]
 +
 +
 +
{{note}} ''This function should be paired with function [http://wiki.catglobe.com/index.php/Tabulation_setShowResultAsPdf Tabulation_setShowResultAsPdf].''
 +
 +
'''Availability'''
 +
 +
Version 6.0

Latest revision as of 10:46, 24 June 2016

Tabulation_addHeaderParagraph

Adds an paragraph to the header

Syntax

Tabulation_addHeaderParagraph(TabulationParagraph)

Arguments

Examples

//Header
//We need a TabulationParagraphStyle, like with a normal paragraph.
TabulationParagraphStyle paragraphStyleHeader1 = new TabulationParagraphStyle();
paragraphStyle.Alignment = "left"; //The alignment decides what column the paragraph is shown in - left/center/right

//It also needs a normal TabulationTextStyle.
TabulationTextStyle textStyleHeaderFooter = new TabulationTextStyle();


Tabulation_addHeaderParagraph(new TabulationParagraph(paragraphStyleHeader1, "Test", textStyleHeaderFooter));
Tabulation_addHeaderParagraph(new TabulationParagraph(paragraphStyleHeader1, "Test Line 2", textStyleHeaderFooter));
paragraphStyleHeader1.Alignment = "center";
Tabulation_addHeaderParagraph(new TabulationParagraph(paragraphStyleHeader1, "Vox Titel", textStyleHeaderFooter));
paragraphStyleHeader1.Alignment = "right";
Tabulation_addHeaderParagraph(new TabulationParagraph(paragraphStyleHeader1, "dd/mm/yyyy", textStyleHeaderFooter));
Tabulation_addHeaderParagraph(new TabulationParagraph(paragraphStyleHeader1, "Report X", textStyleHeaderFooter));


Note Note: This function should be paired with function Tabulation_setShowResultAsPdf.

Availability

Version 6.0