2.2.3.12.2 ReportData::PlotIntoLayer


Description

Add DataPlot using the report's given table.

Syntax

BOOL PlotIntoLayer( GraphLayer & gl, int nTableID, TreeNode & trGraphicProperties, int nSourceIndex = -1, BOOL bAddSourcePlot = FALSE, int nPlotType = IDM_PLOT_UNKNOWN )

Parameters

gl
[modify] graph layer to add plot. If invalid, and nSourceIndex >= 0, it will get graph layer from the valid source plot range
nTableID
[input] table id
trGraphicProperties
[input] Data plot theme tree
nSourceIndex
[input] the index of source data in range
bAddSourcePlot
[input] If TRUE, nSourceIndex >= 0, and there's valid source range, add the source data plot
nPlotType
[input] Specifies the plot type

Return

TRUE for success; otherwise FALSE.

Examples

ReportBase's examples

Remark

See Also

Header to Included

ReportTree.h