Difference between revisions of "Tabulation setPdfMargin"

From Catglobe Wiki
Jump to: navigation, search
m (MortenHattingVoltelen moved page Tabulation setPDFMargin to Tabulation setPdfMargin: Wrong name)
Line 1: Line 1:
 +
{{Function_Template|Name=Tabulation_setPdfMargin|ReturnType=Empty
 +
|Parameters=
 +
|Name=<nowiki>SetMarginType</nowiki>|ConstantType=Number|EnumType=PDFMARGIN,
 +
|Name=<nowiki>SetMarginPoints</nowiki>|ConstantType=Number|IsInteger=1
 +
}}
 +
=== <span style="color:#DF8621">'''Examples'''</span> ===
  
 +
<source lang="javascript">
 +
//Set the margins on the header or footer:
 +
//Tabulation_SetPDFMargin(marginType, margin)
 +
// Diagram_PdfHeader_Margin_Top / Diagram_PdfHeader_Margin_Bottom
 +
// Diagram_PdfFooter_Margin_Top / Diagram_PdfFooter_Margin_Bottom
 +
//Needs a DCS
 +
Tabulation_setPdfMargin(Diagram_PdfHeader_Margin_Top , 100);
 +
Tabulation_setPdfMargin(Diagram_PdfFooter_Margin_Bottom, 100);
 +
</source>

Revision as of 17:08, 21 June 2016

SetMarginPoints


Please write a description and submit to code to autogen it next time

Syntax

SetMarginPoints(array emails);

Arguments

emails: array. Array of emails.

There are 2 ways of using array emails:

The first way: Each email is an EmailBlacklist object

The second way: Each email is an array with pair of email and comment {email, comment}

Return type

Number. Number of emails added to Blacklist

Examples

//Set the margins on the header or footer:
//Tabulation_SetPDFMargin(marginType, margin)
// Diagram_PdfHeader_Margin_Top / Diagram_PdfHeader_Margin_Bottom 
// Diagram_PdfFooter_Margin_Top / Diagram_PdfFooter_Margin_Bottom
//Needs a DCS
Tabulation_setPdfMargin(Diagram_PdfHeader_Margin_Top , 100);
Tabulation_setPdfMargin(Diagram_PdfFooter_Margin_Bottom, 100);