WordTemplatePreflightReport
OfficeIMO.Word
Summarizes whether a Word mail-merge template can be safely bound with supplied data.
Inheritance
- object
- WordTemplatePreflightReport
Usage
Explore 3 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 3
Methods
public bool Can(WordTemplatePreflightCapability capability) #Returns whether the requested template binding capability has no blocking diagnostics.
Parameters
- capability OfficeIMO.Word.WordTemplatePreflightCapability
- Capability to check.
Returns
boolpublic WordTemplatePreflightReport EnsureCan(WordTemplatePreflightCapability capability) #Throws when the requested capability has blocking diagnostics, otherwise returns this report.
Parameters
- capability OfficeIMO.Word.WordTemplatePreflightCapability
- Capability to enforce.
Returns
WordTemplatePreflightReportpublic static WordTemplatePreflightReport FromInspection(WordMailMergeTemplateInspection inspection) #Creates a preflight report from an existing template inspection.
Parameters
- inspection OfficeIMO.Word.WordMailMergeTemplateInspection
- Template inspection returned by WordMailMerge.InspectTemplate.
Returns
WordTemplatePreflightReportpublic IReadOnlyList<WordMailMergeTemplateIssue> GetDiagnostics(WordTemplatePreflightCapability capability) #Returns diagnostics that block the requested template binding capability.
Parameters
- capability OfficeIMO.Word.WordTemplatePreflightCapability
- Capability to inspect.
Returns
IReadOnlyList<WordMailMergeTemplateIssue>public string ToJson() #Serializes this report to deterministic JSON for CI and service logs.
Returns
stringpublic string ToMarkdown() #Renders this report as Markdown suitable for review notes and automation logs.
Returns
stringInherited Methods
Properties
public IReadOnlyList<string> MergeFieldNames { get; } #Unique MERGEFIELD names found in the template.
public IReadOnlyList<string> ConditionalBlockNames { get; } #Unique conditional block names found in the template.
public IReadOnlyList<string> RepeatingBlockNames { get; } #Unique repeated block names found in the template.
public IReadOnlyList<WordMailMergeTemplateIssue> Issues { get; } #Validation issues found during template inspection.
public int MergeFieldCount { get; } #Number of unique MERGEFIELD names found in the template.
public int ConditionalBlockCount { get; } #Number of unique conditional block names found in the template.
public int RepeatingBlockCount { get; } #Number of unique repeated block names found in the template.
public int IssueCount { get; } #Number of validation issues found during template inspection.
public bool CanBindTemplate { get; } #True when no known issue prevents binding the template with the supplied data.