The
iOutputInfo type is used to get the details of a report print or export job, or the details of a print job performed programmatically from the report viewer. The details of the print job are returned by different WLanguage properties.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see
Declaring a variable.
iDestination(iViewer)
iPrintReport(MyReport)
arrOutputInfo is array of iOutputInfo
arrOutputInfo = iDocumentPrinted(iListOutput)
FOR EACH OutputInfo OF arrOutputInfo
Trace("----------------------------------------")
Trace("Destination = " + OutputInfo.Destination)
Trace("Printer = " + OutputInfo.Printer)
Trace("FileName = " + OutputInfo.FileName)
Trace("PaperSize = " + OutputInfo.PaperSize)
Trace("PaperWidth = " + OutputInfo.PaperWidth)
Trace("PaperHeight = " + OutputInfo.PaperHeight)
Trace("Orientation = " + OutputInfo.Orientation)
END
Properties
Properties specific to iOutputInfo variables
The following properties can be used to handle iOutputInfo variables:
| | |
Property name | Type used | Effect |
---|
Destination | Integer constant | Print destination: - iDuplicate: Direct print in a duplicate file.
- iEmail: Direct print in an email.
- iPDFEmail: Direct print in a PDF attached to an email.
- iHTML: Direct print in an HTML file while using a style sheet.
- iGenericHTML: Direct print in an HTML file while using a style sheet.
- iHTMLWithoutCSS: Direct print in an HTML file without using a style sheet.
- iGenericHTMLWithoutCSS: Direct print in an HTML file without using a style sheet.
- iPrinter: Direct print on the printer.
- iPDF: Direct print in a PDF file.
- iRTF: Direct print in an RTF file.
- iXLS: Direct print in an XLS file.
- iXML: Direct print in an XML file.
This property is read-only. |
FileName | Character string | Full name of the generated file when exporting a PDF, HTML or XLS document. This property is read-only. |
Orientation | Integer constant | Paper orientation: - iOrientation_Portrait: Portrait.
- iOrientation_Landscape: Landscape.
This property is read-only. |
PageHeight | Integer | Height of the paper, expressed in millimeters. This property is read-only. |
PageWidth | Integer | Width of the paper, expressed in millimeters. This property is read-only. |
PaperSize | Integer constant | Paper size: - iPaperSize_10x14: 10 x 14 inch paper
- iPaperSize_11x17: 11 x 17 inch paper
- iPaperSize_A3: A3 paper (297 x 420 mm)
- iPaperSize_A4: A4 paper (210 x 297 mm)
- iPaperSize_A4Small: Small A4 paper (210 x 297 mm)
- iPaperSize_A5: A5 paper (148 x 210 mm)
- iPaperSize_GermanSTD : Fanfold paper (8.5 x 12 inches)
- iPaperSize_GermanLGL: Fanfold paper (8.5 x 13 inches)
- iPaperSize_B4: B4 paper (250 x 354 mm)
- iPaperSize_B5: B5 paper (182 x 257 mm)
- iPaperSize_FanfoldUS: Fanfold paper (14.875 x 11 inches)
- iPaperSize_Envelope9: Envelope #9 (3.875 x 8.875 inches)
- iPaperSize_Envelope10: Envelope #10 (4.125 x 9.5 inches)
- iPaperSize_Envelope11: Envelope #11 (4.5 x 10.375 inches)
- iPaperSize_Envelope12: Envelope #12 (4.5 x 4.5 x 11 inches)
- iPaperSize_Envelope14: Envelope #14 (5 x 11.5 inches)
- iPaperSize_EnvelopeB4: B4 envelope (250 x 353 mm)
- iPaperSize_EnvelopeB5: B5 envelope (176 x 250 mm)
- iPaperSize_EnvelopeB6: B6 envelope (176 x 125 mm)
- iPaperSize_EnvelopeC3: C3 envelope (324 x 458 mm)
- iPaperSize_EnvelopeC4: C4 envelope (229 x 324 mm)
- iPaperSize_EnvelopeC5: C5 envelope (162 x 229 mm)
- iPaperSize_EnvelopeC6: C6 envelope (114 x 162 mm)
- iPaperSize_EnvelopeC65: C65 envelope (114 x 229 mm)
- iPaperSize_EnvelopeDL: DL envelope (110 x 220 mm)
- iPaperSize_EnvelopeItaly: Envelope 110 x 230 mm
- iPaperSize_EnvelopeMonarch: Envelope 3.875 x 7.5 inches
- iPaperSize_EnvelopePerso: Envelope 3.625 x 6.5 inches
- iPaperSize_Executive: Executive paper (7.5 x 10.5 inches)
- iPaperSize_Folio: Folio paper (8.5 x 13 inches)
- iPaperSize_Ledger: Ledger paper (17 x 11 inches)
- iPaperSize_Legal: Legal paper (8.5 x 14 inches)
- iPaperSize_LetterSmall: Small letter paper (8.5 x 11 inches)
- iPaperSize_Letter: Letter paper (8.5 x 11 inches)
- iPaperSize_Note: Note paper (8.5 x 11 inches)
- iPaperSize_Quarto: Quarto paper (215 x 275 mm)
- iPaperSize_Statement: Statement paper (5.5 x 8.5 inches)
- iPaperSize_Tabloid: Tabloid paper (11 x 17 inches)
- iPaperSize_CSheet: Size C sheet
- iPaperSize_DSheet: Size D sheet
- iPaperSize_ESheet: Size E sheet}
- iFormatCustomPaper: Custom paper size.
This property is read-only. |
Printer | Character string | Name of the printer used This property is read-only. |
Remarks
WLanguage functions that use iOutputInfo variables
| |
iDocumentPrinted | Determines whether the user printed the document from the report viewer. |