We recommend using Visual Studio 2017

SubReport Class

Represents a subreport.

Namespace:  Microsoft.ReportingServices.OnDemandReportRendering
Assembly:  Microsoft.ReportingServices.ProcessingCore (in Microsoft.ReportingServices.ProcessingCore.dll)

public sealed class SubReport : ReportItem

The SubReport type exposes the following members.

Public propertyBookmarkGets an expression that evaluates to a bookmark that can be linked to via a bookmark action. (Inherited from ReportItem.)
Public propertyCustomPropertiesGets the custom information to be handed to the report rendering component. (Inherited from ReportItem.)
Public propertyDataElementNameGets the name to use for the data element/attribute for this report item. (Inherited from ReportItem.)
Public propertyDataElementOutputGets a value that indicates whether the item should appear in a data rendering. (Inherited from ReportItem.)
Public propertyDefinitionPathGets the path to this report definition object in the report definition. (Inherited from ReportItem.)
Public propertyDocumentMapLabelGets an expression that evaluates to a label to identify an instance of a report item within the client UI (to provide a user-friendly label for searching). (Inherited from ReportItem.)
Public propertyHeightGets the height of the item. (Inherited from ReportItem.)
Public propertyIDGets the unique identifier for this report definition object. (Inherited from ReportItem.)
Public propertyInstanceGets the report instance object that contains the calculated values of this report definition object. (Inherited from ReportItem.)
Public propertyKeepTogetherGets a Boolean value that indicates whether the entire subreport should be kept together in one page if possible.
Public propertyLeftGets the distance of the item from the left of the containing object. (Inherited from ReportItem.)
Public propertyLinkToChildGets the index of the report item that should be linked to, using the document map, instead of the current item. (Inherited from ReportItem.)
Public propertyNameGets the description. (Inherited from ReportItem.)
Public propertyNoRowsMessageGets an expression that evaluates to the message that is displayed when the subreport contains no rows.
Public propertyOmitBorderOnPageBreakGets a Boolean value that indicates whether borders should be removed wherever the subreport spans multiple pages.
Public propertyParentDefinitionPathGets the path to report definition object's parent in the report definition. (Inherited from ReportElement.)
Public propertyRepeatedSiblingGets a Boolean value that indicates whether this report item has a specified RepeatWith property. (Inherited from ReportItem.)
Public propertyRepeatWithGets the name of a data region that this report item should be repeated with if that data region spans multiple pages. (Inherited from ReportItem.)
Public propertyReportGets the full structure (definition and instance) of the subreport.
Public propertyReportNameGets the name of the report within subreport.
Public propertyStyleGets the style properties of this report definition object. (Inherited from ReportItem.)
Public propertyToolTipGets an expression that evaluates to a textual label for the report item. Used for such things as rendering TITLE and ALT attributes in HTML reports. (Inherited from ReportItem.)
Public propertyTopGets the distance of the item from the top of the containing object. (Inherited from ReportItem.)
Public propertyVisibilityGets the current visibility state of this report object. (Inherited from ReportItem.)
Public propertyWidthGets the width of the item. Negative sizes allowed only for lines. (Inherited from ReportItem.)
Public propertyZIndexGets the drawing order of the report item within the containing object. Items with lower indices should be drawn first (appearing behind items with higher indices). (Inherited from ReportItem.)

Public methodCreateCustomPropertyCreates a new custom property and adds it to the custom properties collection of the report item. Used in custom report items. (Inherited from ReportItem.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)

Protected fieldm_bookmarkInfrastructure. (Inherited from ReportItem.)
Protected fieldm_cachedHeightInfrastructure. (Inherited from ReportItem.)
Protected fieldm_cachedWidthInfrastructure. (Inherited from ReportItem.)
Protected fieldm_definitionPathInfrastructure. (Inherited from ReportItem.)
Protected fieldm_documentMapLabelInfrastructure. (Inherited from ReportItem.)
Protected fieldm_instanceInfrastructure. (Inherited from ReportItem.)
Protected fieldm_inSubtotalInfrastructure. (Inherited from ReportItem.)
Protected fieldm_isListContentsRectangleInfrastructure. (Inherited from ReportItem.)
Protected fieldm_isOldSnapshotInfrastructure. (Inherited from ReportElement.)
Protected fieldm_parentDefinitionPathInfrastructure. (Inherited from ReportElement.)
Protected fieldm_startHiddenInfrastructure. (Inherited from ReportItem.)
Protected fieldm_styleInfrastructure. (Inherited from ReportElement.)
Protected fieldm_toolTipInfrastructure. (Inherited from ReportItem.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions