Class CompactReportSerializer
Serializes a Report into a compact text DSL for LLM instance context. Only properties present in the schemaContext (ReportContextBuilder allowed properties) are emitted, so the AI designer does not see properties it cannot edit. Only non-default property values are emitted to reduce token usage. Font names are always included (Report Manager has no parent-font inheritance).
Inherited Members
Namespace: Reportman.Reporting.Design
Assembly: Reportman.Reporting.Design.dll
Syntax
public static class CompactReportSerializer
Remarks
EXCLUDED PROPERTIES — present in the model but intentionally not exposed to the designer. To expose a property, move it from this list to the corresponding Write* method AND add it to the matching AllowedProperties array in ReportContextBuilder.
Report: FontName, FontSize, FontStyle, FontRotation, FontColor, BackColor, Transparent, CutText, Alignment, VAlignment, WordWrap, SingleLine, MultiPage, PrintStep, Type1Font, PageSize, PageHeight, PageWidth, PageBackColor, LeftMargin, RightMargin, TopMargin, BottomMargin, LinesPerInch, PaperSource, Duplex, ForcePaperName, PageSizeIndex, AutoScale, PreviewWindow, PreviewMargins, PreviewAbout, GridVisible, GridEnabled, GridLines, GridColor, GridWidth, GridHeight, Copies, CollateCopies, PrinterFonts, PrintOnlyIfDataAvailable, PrinterSelect, PDFConformance, PDFCompressed, DocProducer, DocCreator, DocCreationDate, DocModificationDate, DocXMPContent, StreamFormat, ActionBefore, ActionAfter, Language
DatabaseInfo: entire object type (not editable by the designer)
DataInfo (extras): SQL, MyBaseFilename, MyBaseFields, MyBaseIndexFields, MyBaseMasterFields, BDEIndexFields, BDEIndexName, BDETable, BDEType, BDEFilter, BDEMasterFields, BDEFirstRange, BDELastRange, OpenOnStart, GroupUnion, ParallelUnion, HubSchemaId, DataUnions
Param (extras): ErrorMessage, IsReadOnly, NeverVisible, AllowNulls, LookupDataset, SearchDataset, Search, SearchParam, Items, Values, Selected
SubReport (extras): ReOpenOnPrint, ParentSub, ParentSec
Section (extras): ChangeBool, SkipPage, SkipType, SkipToPageExpre, SkipRelativeH, SkipRelativeV, SkipExpreH, SkipExpreV, HorzDesp, VertDesp (use FillOrder instead), BeginPage, IniNumPage, Global, Visible, BackStyle, DrawStyle, SharedImage, dpires, StreamFormat, SyncWidth, DoBeforePrint, DoAfterPrint, BackExpression, ExternalFilename, ExternalConnection, ExternalTable, ExternalField, ExternalSearchField, ExternalSearchValue, ChildSubReportName, Stream
Component base (extras): Hidden, Visible, PartialFlag, AnnotationExpression
TextItem (extras): FontRotation, WordBreak, InterLine, PrintStep, Type1Font
Expression (extras): DataType, ExportDisplayFormat, ExportExpression, ExportLine, ExportPosition, ExportSize, ExportDoNewLine
Image (extras): Stream (embedded indicator)
Barcode (extras): Truncated
Chart (extras): Driver, View3d, View3dWalls, Perspective, Elevation, Rotation, Zoom, HorzOffset, VertOffset, Tilt, Orthogonal, MultiBar, Resolution, ShowHint, MarkStyle, HorzFontSize, VertFontSize, HorzFontRotation, VertFontRotation, AutoRange, AxisYInitial, AxisYFinal, Identifier, ColorExpression, SerieColorExpression, ChangeSerieBool, ClearExpressionBool
Methods
View SourceSerialize(Report)
Declaration
public static string Serialize(Report report)
Parameters
| Type | Name | Description |
|---|---|---|
| Report | report |
Returns
| Type | Description |
|---|---|
| string |