SubreportToChange
SubreportToChange specifies whether changes to any of several properties (see list in Remarks below) affect the main report (if you pass an empty string [""]) or a subreport (if you pass the name of the subreport).
Syntax
[form.]Report.SubreportToChange(= SubreportName$)
For example:
CrystalReport1.SubreportToChange = ""
«Changes to any of the properties apply to the main report.»
CrystalReport1.SubreportToChange = "Subrpt2"
«Changes to any of the properties apply to the Subrpt2 subreport.»
Remarks
- The following properties are affected by this property:
Connect
| LogonInfo
| SectionFormat
|
DataFiles
| MarginBottom
| SectionLineHeight
|
DetailCopies
| MarginLeft
| SectionMinHeight
|
Formulas
| MarginRight
| SelectionFormula
|
GraphData
| MarginTop
| SessionHandle
|
GraphOptions
| Password
| SortFields
|
GraphText
| PrintDay
| SQLQuery
|
GraphType
| PrintMonth
| StoredProcParam
|
GroupCondition
| PrintYear
| UserName
|
GroupSelectionFormula
| ReportTitle
|
|
GroupSortFields
| SectionFont
|
|
- If the SubreportToChange property is set to:
- the empty string, changing any of these properties affects the main report.
- the name of a subreport, changing any of these properties affects the subreport.
- When you change the value of the SubreportToChange property, the current value of the properties in the list are updated to be what has been set for the selected subreport.
- Calling the ReplaceSelectionFormula method will apply the new selection formula to the currently selected subreport.
Note:
- These properties only reflect values set by the programmer; they do not get values from the report.
Data Type
String
Availability
Runtime