Output profile selection¶
Sets the OutputProfile field to a fixed constant selecting either the final (PDF) or draft/watermarked (PDF_Draft_Watermark) xPression output profile. This operation performs no rendering itself; the selected value is consumed later by the render lifecycle.
| Field | Value |
|---|---|
| Operation ID | OP-10 |
| Trigger | SetDefaultProfile / SetDraftProfile invoked |
| Inputs | None |
| Outputs | OutputProfile set to a fixed constant |
| Primary components | ReportBase.SetDefaultProfile, ReportBase.SetDraftProfile |
| Entry point | Public Sub SetDefaultProfile() / Public Sub SetDraftProfile() |
Steps¶
SetDefaultProfile()setsOutputProfile = PROFILE_DEFAULT(the constant"PDF") — draft output uses thePDF_Draft_Watermarkprofile and final output uses thePDFprofile (BR-PRT-015).SetDraftProfile()setsOutputProfile = PROFILE_DRAFT(the constant"PDF_Draft_Watermark") (BR-PRT-015).- The selected
OutputProfilevalue is consumed later byRenderwhen it callsxPrint.previewDocument(m_ReportPackage, m_reportXml.ToXpression, OutputProfile); this operation only sets the field and performs no rendering itself.
Origin:
OutputProfileis consumed by Report render lifecycle, which passes it toxPrint.previewDocument.
Process flow¶
flowchart TD
Start1(["SetDefaultProfile called"]) --> Set1["Set OutputProfile = 'PDF'"]
Set1 --> End1(["End"])
Start2(["SetDraftProfile called"]) --> Set2["Set OutputProfile =<br>'PDF_Draft_Watermark'"]
Set2 --> End2(["End"])
Failure and edge-case behavior¶
- Neither method can fail: there is no I/O and no validation, only a pure field assignment.
- Calling order matters only in that whichever method is called last before
Renderwins; there is no guard against calling both or neither. The field's own default at construction is"PDF", the same value asPROFILE_DEFAULT.
Related documentation¶
- Index
- Overview
- Architecture
- Dependencies
- Operations and processes
- Business rules
- Configuration
- API reference
Sources¶
SAIF.Services.Printing/Reporting/ReportBase.vbSAIF.Services.Printing/Reporting/IReport.vb