cDocument
ClassThe cDocument class is the main document builder. It stores document metadata, page defaults, font settings, optional header and footer paragraphs, and generated RTF output.
Public fields and properties:
Author As String
Operator As String
Title As String
Subject As String
PageWidth As Integer
PageHeight As Integer
PageMarginLeft As Integer
PageMarginRight As Integer
PageMarginTop As Integer
PageMarginBottom As Integer
PageLandscape As Boolean
PageNumbersOn As Boolean
PageNumberStart As Integer
PageNumberMarginRight As Integer
PageNumberMarginTop As Integer
FontDefaultName As String
FontDefaultCharSet As Integer
FontDefaultHeight As Integer
Header As cParagraph
Footer As cParagraph
LastPage As IntegerPublic methods:
Function Save(sRTFFile As String) As Boolean
Function Rtf() As String
Function InsertPage(Page As cPage) As Boolean
Function FontIndex(FontName As String, Optional CharSet As Integer = -1) As Integer
Function ColorIndex(RGBColor As Integer) As IntegerEnum:
Enum gsRTFAlignment
aLeft = 0
aRight = 1
aCenter = 2
aJustified = 3
End Enum