CB.CreateRptND Example 1

This example runs a simulation (so that the report can have forecast and charts in it). Then it defines the report type as Custom, sets preferences not to include a trend chart, an overlay chart, or any assumption information. It does include forecast charts for all the forecasts, but no other forecast statistics or information. The charts are in Microsoft Excel format.

When you use a ClearList constant, it clears all individually selected items of that type. However, if you have used an All constant, such as cbChfAll, using cbChfClearList is overridden by the All constant and, in this case, information is still included for all forecasts. For this reason, it is good practice to use a Chosen constant after a ClearList constant.

CB.Simulation 1000
CB.CheckData
CB.CreateRptND cbRptSection, True, cbRptSectForecasts
CB.CreateRptND cbRptDefinedType, cbRptCustom
CB.CreateRptND cbRptTrendCharts, False
CB.CreateRptND cbRptSensitivityCharts, True, 150
CB.CreateRptND cbRptOverlayCharts, False
CB.CreateRptND cbRptChooseFore, cbChfAll
CB.CreateRptND cbRptForeSummaries, False
CB.CreateRptND cbRptForeStatistics, False
CB.CreateRptND cbRptForeCharts, True, 50
CB.CreateRptND cbRptForePercentiles, True, cbPctDeciles
CB.CreateRptND cbRptChooseAssum, cbChaClearList
CB.CreateRptND cbRptChooseAssum, cbChaChosen
CB.CreateRptND cbRptChartType, cbChtExcel
CB.CreateRptND cbRptOK