User`s guide
12 Classes – Alphabetical List
12-100
A session-unique ID is generated as part of document element creation. The generated
tag has the form CLASS:ID, where CLASS is the class of the element and ID is the value
of the Id property of the object. You can specify a tag to replace the generated tag.
Specify your own tag value, for example, to make it easier to identify where an issue
occurred during document generation.
Width — Width of page
'8.5in' (default) | string
The string must have the format valueUnits, where Units is an abbreviation for the
units in which the width size is expressed. Valid abbreviations are:
• no abbreviation — pixels
• cm — centimeters
• in — inches
• mm — millimeters
• pi — picas
• pt — points
• px — pixels
Examples
Set Page Orientation and Size
Change the page orientation and size specified by the default DOM template.
import mlreportgen.dom.*;
d = Document('myreport','docx');
open(d);
s = d.CurrentDOCXSection;
s.PageSize.Orientation ='landscape';
s.PageSize.Height = '8.5in';
s.PageSize.Width = '11in';
append(d,'This document has landscape pages');
close(d);