Microsoft.Exchange.2010.Reports.Transport.Platform.DistributionGroupUsage (Report)

Element properties:

AccessibilityPublic
VisibleTrue

Report Localization:

R.LocStr1Distribution Group Usage
R.LocStr2Filter String
R.LocStr3The Dundas Chart for Reporting Services report item is unavailable.
R.LocStr4***** No Data *****
R.LocStr5Number Of Groups
R.LocStr6Messages
R.LocStr7Report Duration
R.LocStr8Report Time

Source Code:

<Report ID="Microsoft.Exchange.2010.Reports.Transport.Platform.DistributionGroupUsage" Accessibility="Public" Visible="true">
<Dependencies>
<DataWarehouseScript>Microsoft.Exchange.2010.Reports.Script</DataWarehouseScript>
</Dependencies>
<Definition>
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
<DataSources>
<DataSource Name="Data Warehouse Main">
<rd:DataSourceID>f6757a9d-7a7a-4da5-9c73-f016fa05eb64</rd:DataSourceID>
<DataSourceReference>/Data Warehouse Main</DataSourceReference>
</DataSource>
</DataSources>
<InteractiveHeight>1000in</InteractiveHeight>
<Description>Distribution Group Usage Report</Description>
<ReportParameters>
<ReportParameter Name="IntervalStartDateTime">
<DataType>DateTime</DataType>
<Nullable>true</Nullable>
<DefaultValue>
<Values>
<Value>=DateAdd(DateInterval.Day, -8, Today)</Value>
</Values>
</DefaultValue>
<Prompt>Interval Start DateTime</Prompt>
</ReportParameter>
<ReportParameter Name="IntervalEndDateTime">
<DataType>DateTime</DataType>
<Nullable>true</Nullable>
<DefaultValue>
<Values>
<Value>=DateAdd(DateInterval.Day, -1, Today)</Value>
</Values>
</DefaultValue>
<Prompt>Interval End DateTime</Prompt>
</ReportParameter>
<ReportParameter Name="FilterString">
<DataType>String</DataType>
<Nullable>true</Nullable>
<Prompt>Filter String</Prompt>
</ReportParameter>
<ReportParameter Name="LT_Report">
<DataType>String</DataType>
<DefaultValue>
<DataSetReference>
<DataSetName>LT_Report_Query</DataSetName>
<ValueField>ValueXml</ValueField>
</DataSetReference>
</DefaultValue>
<ValidValues>
<DataSetReference>
<DataSetName>LT_Report_Query</DataSetName>
<ValueField>ValueXml</ValueField>
<LabelField>ValueName</LabelField>
</DataSetReference>
</ValidValues>
<Hidden>true</Hidden>
</ReportParameter>
</ReportParameters>
<rd:DrawGrid>true</rd:DrawGrid>
<InteractiveWidth>8.5in</InteractiveWidth>
<rd:SnapToGrid>true</rd:SnapToGrid>
<RightMargin>1in</RightMargin>
<LeftMargin>1in</LeftMargin>
<PageHeader>
<PrintOnFirstPage>true</PrintOnFirstPage>
<ReportItems>
<Image Name="logo">
<Sizing>Fit</Sizing>
<Top>0.125in</Top>
<Width>0.75in</Width>
<Source>Embedded</Source>
<Style/>
<ZIndex>1</ZIndex>
<Left>0.125in</Left>
<Value>exlabs_logo_atom_50</Value>
</Image>
<Textbox Name="reportHeader">
<Top>0.375in</Top>
<Width>4.25in</Width>
<Style></Style>
<FontFamily>Tahoma</FontFamily>
<FontSize>14pt</FontSize>
<FontWeight>700</FontWeight>
<TextAlign>Left</TextAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
<CanGrow>true</CanGrow>
<Left>1in</Left>
<Height>0.375in</Height>
<Value>=Code.GetLocTable("LT_Report").GetString("R.LocStr1", "[Distribution Group Usage]")</Value>
</Textbox>
</ReportItems>
<Height>0.875in</Height>
<PrintOnLastPage>true</PrintOnLastPage>
</PageHeader>
<BottomMargin>1in</BottomMargin>
<rd:ReportID>0350ea2b-847a-4b25-8938-7cd675854d39</rd:ReportID>
<EmbeddedImages>
<EmbeddedImage Name="exlabs_logo_atom_50">
<MIMEType>image/png</MIMEType>
<ImageData>
iVBORw0KGgoAAAANSUhEUgAAADkAAAA7CAYAAADB0CKOAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAABUBSURBVHja7FoJWBR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v5zt3iOkaENPRCCCOWbNaGjMaW5TQ4fbd2qfuvyuooiadfUWAL7SXiECHfj8RxBAIFbQajeplSVUQ/W/+MYPXCx87QoJFDbPkCocPaqYpZJeWNOX/5+EwqXbEwafweB772SmAoRpALAxNyX6cnac4JMV8LMgVhBCaCkRuJFw48vTQi42puA1VI71k6sAt9zK109LCZ7XGBeFzWjvSq5jmMiRJPIbsIM9DALPr+6g36i550wmlQaY59hN6/ckCkaF7Qxg6cOL88636lOUXxDBfp9mf8RXik33KciyhTqvJ51Iugn692jy17fhB1pmfs8OPXtzB2Cv+Wo5+/J0gQtvRQC3yAYPPisWLQ+2
E/FFYTp4pbtat7MdP/TpCU2XTpDEemjfWO6oXLQYvfjohv0Rm/ij2de5uhRfKPAon9VpDD+zuWejvKdol4nNNX8is7zTSE3f9gYrzegLOGfJW6lfZD/R+pxRdNIb9YqLKjyxaySRAsf3XPX7v3dglLwyR+NoK4jg6d0m/budWMnGgAf3BDfqdnsIvj/rJAgGHLOtq6EllGXA70xgEPa1vWjNuZkmmW9EnwJ22Ub1OnHgQZm2Nfjn8txA/86/i1JZ2P/2MnkJHfGSiTTCZ7oyT+7O3PdXb8f6X9U4ABAGSeZNakbULSAAAAAElFTkSuQmCC
</ImageData>
</EmbeddedImage>
</EmbeddedImages>
<DataSets>
<DataSet Name="DistributionGroupUsage">
<Fields>
<Field Name="DateTime">
<DataField>DateTime</DataField>
<rd:TypeName>System.DateTime</rd:TypeName>
</Field>
<Field Name="DistributionGroup">
<DataField>DistributionGroup</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
<Field Name="TenantName">
<DataField>TenantName</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
<Field Name="Messages">
<DataField>Messages</DataField>
<rd:TypeName>System.Int64</rd:TypeName>
</Field>
</Fields>
<Query>
<DataSourceName>Data Warehouse Main</DataSourceName>
<CommandType>StoredProcedure</CommandType>
<CommandText>Exchange2010.Transport-Platform-DistributionGroup-Report</CommandText>
<QueryParameters>
<QueryParameter Name="@IntervalStartDateTime">
<Value>=Parameters!IntervalStartDateTime.Value</Value>
</QueryParameter>
<QueryParameter Name="@IntervalEndDateTime">
<Value>=Parameters!IntervalEndDateTime.Value</Value>
</QueryParameter>
<QueryParameter Name="@FilterString">
<Value>=Parameters!FilterString.Value</Value>
</QueryParameter>
</QueryParameters>
<rd:UseGenericDesigner>true</rd:UseGenericDesigner>
</Query>
</DataSet>
<DataSet Name="DistributionGroupDistribution">
<Fields>
<Field Name="Messages">
<DataField>Messages</DataField>
<rd:TypeName>System.Int32</rd:TypeName>
</Field>
<Field Name="Count">
<DataField>Count</DataField>
<rd:TypeName>System.Int32</rd:TypeName>
</Field>
</Fields>
<Query>
<DataSourceName>Data Warehouse Main</DataSourceName>
<CommandType>StoredProcedure</CommandType>
<CommandText>Exchange2010.Transport-Platform-DistributionGroupHistogram-Report</CommandText>
<QueryParameters>
<QueryParameter Name="@IntervalStartDateTime">
<Value>=Parameters!IntervalStartDateTime.Value</Value>
</QueryParameter>
<QueryParameter Name="@IntervalEndDateTime">
<Value>=Parameters!IntervalEndDateTime.Value</Value>
</QueryParameter>
</QueryParameters>
</Query>
</DataSet>
<DataSet Name="LT_Report_Query">
<Fields>
<Field Name="ValueXml">
<DataField>f1</DataField>
</Field>
<Field Name="ValueName">
<Value>="LT"</Value>
</Field>
</Fields>
<Query>
<DataSourceName>Data Warehouse Main</DataSourceName>
<CommandText>create table #myTestTable
(
f1 nvarchar(max)
)

--
-- This code is taken from 'ReportDisplayStringGet' stored procedure
-- That stored procedure had a limitation of returning only 4K bytes
-- (2000 Unicode characters), which were not enough to return data
-- for all loc strings, and hence this change is made here.
--
;With CTEResult(c1)
AS
(
SELECT
1 AS Tag
,NULL AS Parent
,rds.ReportDisplayStringSystemName AS [S!1!N]
,ISNULL(ds.[Name], rds.ReportDisplayStringDefaultName) AS [S!1!!ELEMENT]
FROM ManagementGroup mg
CROSS JOIN ManagementPack mp
JOIN ManagementPackVersion mpv ON (mp.ManagementPackRowId = mpv.ManagementPackRowId)
JOIN ManagementGroupManagementPackVersion mgmpv ON (mgmpv.ManagementGroupRowId = mg.ManagementGroupRowId) AND (mgmpv.ManagementPackVersionRowId = mpv.ManagementPackVersionRowId)
JOIN Report r ON (r.ManagementPackRowId = mp.ManagementPackRowId)
JOIN ReportDisplayString rds ON (r.ReportRowId = rds.ReportRowId) AND (mpv.ManagementPackVersionRowId = rds.ManagementPackVersionRowId)
LEFT JOIN DisplayString ds ON (ds.ElementGuid = rds.ReportDisplayStringGuid) AND (ds.LanguageCode = @LanguageCode)
WHERE (mg.ManagementGroupGuid = @ManagementGroupGuid)
AND (mp.ManagementPackSystemName = @ManagementPackSystemName)
AND (mgmpv.LatestVersionInd = 1)
AND (r.ReportSystemName = @ReportSystemName)
AND ((@Scope IS NULL) OR (rds.ReportDisplayStringSystemName like @Scope))
FOR XML EXPLICIT, ROOT('R')
)
insert into #myTestTable (f1)
select c1 from CTEResult

select f1 from #myTestTable
</CommandText>
<QueryParameters>
<QueryParameter Name="@ManagementGroupGuid">
<Value>=Code.GetCallingManagementGroupId()</Value>
</QueryParameter>
<QueryParameter Name="@ManagementPackSystemName">
<Value>Microsoft.Exchange.2010.Reports</Value>
</QueryParameter>
<QueryParameter Name="@ReportSystemName">
<Value>Microsoft.Exchange.2010.Reports.Transport.Platform.DistributionGroupUsage</Value>
</QueryParameter>
<QueryParameter Name="@LanguageCode">
<Value>=Code.GetReportLocLanguageCode()</Value>
</QueryParameter>
<QueryParameter Name="@Scope">
<Value>R.%</Value>
</QueryParameter>
</QueryParameters>
</Query>
</DataSet>
</DataSets>
<Width>6.375in</Width>
<Body><Script>
<ReportItems>
<Textbox Name="textbox1">
<Top>0.625in</Top>
<Width>4.23in</Width>
<Style></Style>
<Color>Gray</Color>
<FontFamily>Tahoma</FontFamily>
<TextAlign>Left</TextAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
<ZIndex>10</ZIndex>
<CanGrow>true</CanGrow>
<Left>2.02in</Left>
<Height>0.25in</Height>
<Value>=IIF( ISNothing(Parameters!FilterString.Value), "", Parameters!FilterString.Value)</Value>
</Textbox>
<Textbox Name="textbox4">
<Top>0.625in</Top>
<Width>0.375in</Width>
<Style></Style>
<Color>Gray</Color>
<FontFamily>Tahoma</FontFamily>
<TextAlign>Left</TextAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
<ZIndex>9</ZIndex>
<CanGrow>true</CanGrow>
<Left>1.645in</Left>
<Height>0.25in</Height>
<Value>=":"</Value>
</Textbox>
<Textbox Name="textbox5">
<Top>0.625in</Top>
<Width>1.645in</Width>
<Style></Style>
<Color>Gray</Color>
<FontFamily>Tahoma</FontFamily>
<TextAlign>Left</TextAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
<ZIndex>8</ZIndex>
<CanGrow>true</CanGrow>
<Height>0.25in</Height>
<Value>=Code.GetLocTable("LT_Report").GetString("R.LocStr2", "[Filter String]")</Value>
</Textbox>
<CustomReportItem Name="enterpriseManagementChartControl1">
<CustomData>
<DataSetName>DistributionGroupDistribution</DataSetName>
<DataColumnGroupings>
<DataGroupings>
<DataGrouping>
<Grouping Name="enterpriseManagementChartControl1_DCG_Messages1">
<GroupExpressions>
<GroupExpression>=Fields!Messages.Value</GroupExpression>
</GroupExpressions>
</Grouping>
<CustomProperties>
<CustomProperty>
<Name>GroupLabel</Name>
<Value>=Fields!Messages.Value</Value>
</CustomProperty>
</CustomProperties>
</DataGrouping>
</DataGroupings>
</DataColumnGroupings>
<DataRowGroupings>
<DataGroupings>
<DataGrouping>
<Static>true</Static>
<CustomProperties>
<CustomProperty>
<Name>ID</Name>
<Value>3c8f6f36-042b-4acb-b0f4-2e4118aa4645</Value>
</CustomProperty>
<CustomProperty>
<Name>BorderColor</Name>
<Value>Black</Value>
</CustomProperty>
<CustomProperty>
<Name>SmartLabels.Enabled</Name>
<Value>False</Value>
</CustomProperty>
<CustomProperty>
<Name>SeriesLabel</Name>
<Value>Count</Value>
</CustomProperty>
<CustomProperty>
<Name>ChartArea</Name>
<Value>Default</Value>
</CustomProperty>
<CustomProperty>
<Name>Type</Name>
<Value>SplineArea</Value>
</CustomProperty>
</CustomProperties>
</DataGrouping>
</DataGroupings>
</DataRowGroupings>
<DataRows>
<DataRow>
<DataCell>
<DataValue>
<Name>ID</Name>
<Value>3c8f6f36-042b-4acb-b0f4-2e4118aa4645</Value>
</DataValue>
<DataValue>
<Name>Y0</Name>
<Value>=Sum(Fields!Count.Value)</Value>
</DataValue>
</DataCell>
</DataRow>
</DataRows>
</CustomData>
<AltReportItem>
<Textbox xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition" Name="enterpriseManagementChartControl1_Textbox">
<Value>=Code.GetLocTable("LT_Report").GetString("R.LocStr3", "[The Dundas Chart for Reporting Services report item is unavailable.]")</Value>
</Textbox>
</AltReportItem>
<Top>1in</Top>
<Type>EnterpriseManagementChartControl</Type>
<Width>6.125in</Width>
<CustomProperties>
<CustomProperty>
<Name>Chart.Palette</Name>
<Value>Excel</Value>
</CustomProperty>
<CustomProperty>
<Name>Chart.BorderLineColor</Name>
<Value>Black</Value>
</CustomProperty>
<CustomProperty>
<Name>Chart.NoDataMessage.Text</Name>
<Value>=Code.GetLocTable("LT_Report").GetString("R.LocStr4", "[***** No Data *****]")</Value>
</CustomProperty>
<CustomProperty>
<Name>Chart.Legends.0.Legend.Name</Name>
<Value>Default</Value>
</CustomProperty>
<CustomProperty>
<Name>Chart.Legends.0.Legend.Enabled</Name>
<Value>False</Value>
</CustomProperty>
<CustomProperty>
<Name>Chart.Legends.0.Legend.BackColor</Name>
<Value>White</Value>
</CustomProperty>
<CustomProperty>
<Name>Chart.ChartAreas.0.ChartArea.BackColor</Name>
<Value>Silver</Value>
</CustomProperty>
<CustomProperty>
<Name>Chart.ChartAreas.0.ChartArea.BorderStyle</Name>
<Value>Solid</Value>
</CustomProperty>
<CustomProperty>
<Name>Chart.ChartAreas.0.ChartArea.BackImageTranspColor</Name>
<Value>White</Value>
</CustomProperty>
<CustomProperty>
<Name>Chart.ChartAreas.0.ChartArea.ShadowColor</Name>
<Value>White</Value>
</CustomProperty>
<CustomProperty>
<Name>Chart.ChartAreas.0.ChartArea.Name</Name>
<Value>Default</Value>
</CustomProperty>
<CustomProperty>
<Name>Chart.ChartAreas.0.ChartArea.AxisY.ValueType</Name>
<Value>Int</Value>
</CustomProperty>
<CustomProperty>
<Name>Chart.ChartAreas.0.ChartArea.AxisY.Title</Name>
<Value>=Code.GetLocTable("LT_Report").GetString("R.LocStr5", "[Number Of Groups]")</Value>
</CustomProperty>
<CustomProperty>
<Name>Chart.ChartAreas.0.ChartArea.AxisY.MajorGrid.Enabled</Name>
<Value>False</Value>
</CustomProperty>
<CustomProperty>
<Name>Chart.ChartAreas.0.ChartArea.AxisY.MajorTickMark.Enabled</Name>
<Value>False</Value>
</CustomProperty>
<CustomProperty>
<Name>Chart.ChartAreas.0.ChartArea.AxisX.ValueType</Name>
<Value>Int</Value>
</CustomProperty>
<CustomProperty>
<Name>Chart.ChartAreas.0.ChartArea.AxisX.Title</Name>
<Value>=Code.GetLocTable("LT_Report").GetString("R.LocStr6", "[Messages]")</Value>
</CustomProperty>
<CustomProperty>
<Name>Chart.ChartAreas.0.ChartArea.AxisX.Margin</Name>
<Value>False</Value>
</CustomProperty>
<CustomProperty>
<Name>Chart.ChartAreas.0.ChartArea.AxisX.MajorGrid.Enabled</Name>
<Value>False</Value>
</CustomProperty>
<CustomProperty>
<Name>Chart.ChartAreas.0.ChartArea.AxisX.MajorTickMark.Enabled</Name>
<Value>False</Value>
</CustomProperty>
<CustomProperty>
<Name>Chart.ChartAreas.0.ChartArea.AxisX2.MajorGrid.Enabled</Name>
<Value>False</Value>
</CustomProperty>
<CustomProperty>
<Name>Chart.ChartAreas.0.ChartArea.AxisX2.MajorTickMark.Enabled</Name>
<Value>False</Value>
</CustomProperty>
<CustomProperty>
<Name>Chart.ChartAreas.0.ChartArea.AxisY2.MajorGrid.Enabled</Name>
<Value>False</Value>
</CustomProperty>
<CustomProperty>
<Name>Chart.ChartAreas.0.ChartArea.AxisY2.MajorTickMark.Enabled</Name>
<Value>False</Value>
</CustomProperty>
<CustomProperty>
<Name>Chart.ChartAreas.0.ChartArea.Area3DStyle.WallWidth</Name>
<Value>4</Value>
</CustomProperty>
<CustomProperty>
<Name>Chart.ChartAreas.0.ChartArea.Area3DStyle.XAngle</Name>
<Value>10</Value>
</CustomProperty>
<CustomProperty>
<Name>Chart.ChartAreas.0.ChartArea.Area3DStyle.YAngle</Name>
<Value>10</Value>
</CustomProperty>
<CustomProperty>
<Name>Chart.BorderSkin.FrameBackGradientEndColor</Name>
<Value>White</Value>
</CustomProperty>
</CustomProperties>
<ZIndex>7</ZIndex>
<Left>0.125in</Left>
<Height>3in</Height>
</CustomReportItem>
<Table Name="table1">
<ZIndex>6</ZIndex>
<DataSetName>DistributionGroupUsage</DataSetName>
<Top>4.125in</Top>
<TableGroups>
<TableGroup>
<Grouping Name="table1_DateTimeGroup">
<GroupExpressions>
<GroupExpression>=Fields!TenantName.Value</GroupExpression>
</GroupExpressions>
</Grouping>
<Header>
<TableRows>
<TableRow>
<TableCells>
<TableCell>
<ReportItems>
<Textbox Name="DateTimeSummary">
<Style></Style>
<BackgroundColor>#e8eef7</BackgroundColor>
<BorderColor>
<Right>#cbdaec</Right>
<Top>#cbdaec</Top>
<Bottom>#cbdaec</Bottom>
</BorderColor>
<BorderStyle>
<Left>None</Left>
<Right>Solid</Right>
<Top>Solid</Top>
<Bottom>Solid</Bottom>
</BorderStyle>
<BorderWidth>
<Right>1pt</Right>
<Top>1pt</Top>
<Bottom>1pt</Bottom>
</BorderWidth>
<FontFamily>Tahoma</FontFamily>
<FontSize>8pt</FontSize>
<TextAlign>Left</TextAlign>
</Style>
<ZIndex>5</ZIndex>
<CanGrow>true</CanGrow>
<Value>=Fields!TenantName.Value</Value>
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
<Textbox Name="textbox2">
<Style></Style>
<BackgroundColor>#e8eef7</BackgroundColor>
<BorderColor>
<Left>#cbdaec</Left>
<Right>#cbdaec</Right>
<Top>#cbdaec</Top>
<Bottom>#cbdaec</Bottom>
</BorderColor>
<BorderStyle>
<Left>Solid</Left>
<Right>Solid</Right>
<Top>Solid</Top>
<Bottom>Solid</Bottom>
</BorderStyle>
<BorderWidth>
<Left>1pt</Left>
<Right>1pt</Right>
<Top>1pt</Top>
<Bottom>1pt</Bottom>
</BorderWidth>
<FontFamily>Tahoma</FontFamily>
<FontSize>8pt</FontSize>
<TextAlign>Left</TextAlign>
</Style>
<ZIndex>4</ZIndex>
<CanGrow>true</CanGrow>
<Value>=Sum(Fields!Messages.Value)</Value>
</Textbox>
</ReportItems>
</TableCell>
</TableCells>
<Height>0.25in</Height>
</TableRow>
</TableRows>
</Header>
</TableGroup>
<TableGroup>
<Grouping Name="table1_Group_Tenant">
<GroupExpressions>
<GroupExpression>=Fields!DistributionGroup.Value</GroupExpression>
</GroupExpressions>
</Grouping>
<Visibility>
<Hidden>true</Hidden>
<ToggleItem>DateTimeSummary</ToggleItem>
</Visibility>
<Header>
<TableRows>
<TableRow>
<TableCells>
<TableCell>
<ReportItems>
<Textbox Name="TenantSummary">
<Style></Style>
<BackgroundColor>White</BackgroundColor>
<BorderColor>
<Right>#cbdaec</Right>
<Top>#cbdaec</Top>
<Bottom>#cbdaec</Bottom>
</BorderColor>
<BorderStyle>
<Left>None</Left>
<Right>Solid</Right>
<Top>Solid</Top>
<Bottom>Solid</Bottom>
</BorderStyle>
<BorderWidth>
<Right>1pt</Right>
<Top>1pt</Top>
<Bottom>1pt</Bottom>
</BorderWidth>
<FontFamily>Tahoma</FontFamily>
<FontSize>8pt</FontSize>
<TextAlign>Left</TextAlign>
</Style>
<ZIndex>3</ZIndex>
<CanGrow>true</CanGrow>
<Value>=Space(5) + Fields!DistributionGroup.Value</Value>
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
<Textbox Name="textbox23">
<Style></Style>
<BackgroundColor>White</BackgroundColor>
<BorderColor>
<Left>#cbdaec</Left>
<Right>#cbdaec</Right>
<Top>#cbdaec</Top>
<Bottom>#cbdaec</Bottom>
</BorderColor>
<BorderStyle>
<Left>Solid</Left>
<Right>Solid</Right>
<Top>Solid</Top>
<Bottom>Solid</Bottom>
</BorderStyle>
<BorderWidth>
<Left>1pt</Left>
<Right>1pt</Right>
<Top>1pt</Top>
<Bottom>1pt</Bottom>
</BorderWidth>
<FontFamily>Tahoma</FontFamily>
<FontSize>8pt</FontSize>
<TextAlign>Left</TextAlign>
</Style>
<ZIndex>2</ZIndex>
<CanGrow>true</CanGrow>
<Value>=Sum(Fields!Messages.Value)</Value>
</Textbox>
</ReportItems>
</TableCell>
</TableCells>
<Height>0.25in</Height>
</TableRow>
</TableRows>
</Header>
</TableGroup>
</TableGroups>
<Width>3.5in</Width>
<Details>
<TableRows>
<TableRow>
<TableCells>
<TableCell>
<ReportItems>
<Textbox Name="DateTime">
<Style></Style>
<BackgroundColor>White</BackgroundColor>
<BorderColor>
<Right>#cbdaec</Right>
<Top>#cbdaec</Top>
</BorderColor>
<BorderStyle>
<Left>None</Left>
<Right>Solid</Right>
<Top>Solid</Top>
<Bottom>None</Bottom>
</BorderStyle>
<BorderWidth>
<Right>1pt</Right>
<Top>1pt</Top>
</BorderWidth>
<FontFamily>Tahoma</FontFamily>
<FontSize>8pt</FontSize>
<TextAlign>Left</TextAlign>
</Style>
<ZIndex>1</ZIndex>
<CanGrow>true</CanGrow>
<Value>=Space(10) + Code.FormatDateTime("d",Fields!DateTime.Value)</Value>
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
<Textbox Name="textbox40">
<Style></Style>
<BackgroundColor>White</BackgroundColor>
<BorderColor>
<Left>#cbdaec</Left>
<Right>#cbdaec</Right>
<Top>#cbdaec</Top>
</BorderColor>
<BorderStyle>
<Left>Solid</Left>
<Right>Solid</Right>
<Top>Solid</Top>
<Bottom>None</Bottom>
</BorderStyle>
<BorderWidth>
<Left>1pt</Left>
<Right>1pt</Right>
<Top>1pt</Top>
</BorderWidth>
<FontFamily>Tahoma</FontFamily>
<FontSize>8pt</FontSize>
<TextAlign>Left</TextAlign>
</Style>
<CanGrow>true</CanGrow>
<Value>=Sum(Fields!Messages.Value)</Value>
</Textbox>
</ReportItems>
</TableCell>
</TableCells>
<Height>0.25in</Height>
</TableRow>
</TableRows>
<Grouping Name="table1_Details_Group">
<GroupExpressions>
<GroupExpression>=Fields!DateTime.Value</GroupExpression>
</GroupExpressions>
</Grouping>
<Visibility>
<Hidden>true</Hidden>
<ToggleItem>TenantSummary</ToggleItem>
</Visibility>
</Details>
<Style></Style>
<Color>White</Color>
<BackgroundColor>White</BackgroundColor>
</Style>
<Header>
<TableRows>
<TableRow>
<TableCells>
<TableCell>
<ReportItems>
<Textbox Name="textbox43">
<Style></Style>
<BackgroundColor>White</BackgroundColor>
<BorderColor>
<Right>#cbdaec</Right>
<Bottom>#cbdaec</Bottom>
</BorderColor>
<BorderStyle>
<Left>None</Left>
<Right>Solid</Right>
<Top>None</Top>
<Bottom>Solid</Bottom>
</BorderStyle>
<BorderWidth>
<Right>1pt</Right>
<Bottom>1pt</Bottom>
</BorderWidth>
<FontFamily>Tahoma</FontFamily>
<FontSize>8pt</FontSize>
<TextAlign>Left</TextAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
<ZIndex>7</ZIndex>
<CanGrow>true</CanGrow>
<Value/>
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
<Textbox Name="textbox44">
<Style></Style>
<BackgroundColor>White</BackgroundColor>
<BorderColor>
<Left>#cbdaec</Left>
<Right>#cbdaec</Right>
<Bottom>#cbdaec</Bottom>
</BorderColor>
<BorderStyle>
<Left>Solid</Left>
<Right>Solid</Right>
<Top>None</Top>
<Bottom>Solid</Bottom>
</BorderStyle>
<BorderWidth>
<Left>1pt</Left>
<Right>1pt</Right>
<Bottom>1pt</Bottom>
</BorderWidth>
<FontFamily>Tahoma</FontFamily>
<FontSize>8pt</FontSize>
<TextAlign>Left</TextAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
<ZIndex>6</ZIndex>
<CanGrow>true</CanGrow>
<Value>=Code.GetLocTable("LT_Report").GetString("R.LocStr6", "[Messages]")</Value>
</Textbox>
</ReportItems>
</TableCell>
</TableCells>
<Height>0.25in</Height>
</TableRow>
</TableRows>
</Header>
<TableColumns>
<TableColumn>
<Width>2.375in</Width>
</TableColumn>
<TableColumn>
<Width>1.125in</Width>
</TableColumn>
</TableColumns>
<Height>1in</Height>
<Left>1.5in</Left>
</Table>
<Textbox Name="textbox16">
<Top>0.375in</Top>
<Width>4.23in</Width>
<Style></Style>
<Color>Gray</Color>
<FontFamily>Tahoma</FontFamily>
<TextAlign>Left</TextAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
<ZIndex>5</ZIndex>
<CanGrow>true</CanGrow>
<Left>2.02in</Left>
<Height>0.25in</Height>
<Value>=IIF( ISNothing(Parameters!IntervalStartDateTime.Value) OR IsNothing(Parameters!IntervalEndDateTime.Value), "", Code.FormatDateTime("d",Parameters!IntervalStartDateTime.Value) + " to " + Code.FormatDateTime("d",Parameters!IntervalEndDateTime.Value))</Value>
</Textbox>
<Textbox Name="textbox17">
<Top>0.125in</Top>
<Width>4.23in</Width>
<Style></Style>
<Color>Gray</Color>
<FontFamily>Tahoma</FontFamily>
<TextAlign>Left</TextAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
<ZIndex>4</ZIndex>
<CanGrow>true</CanGrow>
<Left>2.02in</Left>
<Height>0.25in</Height>
<Value>=Code.FormatDateTime("g",Now.ToString())</Value>
</Textbox>
<Textbox Name="textbox3">
<Top>0.375in</Top>
<Width>0.375in</Width>
<Style></Style>
<Color>Gray</Color>
<FontFamily>Tahoma</FontFamily>
<TextAlign>Left</TextAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
<ZIndex>3</ZIndex>
<CanGrow>true</CanGrow>
<Left>1.645in</Left>
<Height>0.25in</Height>
<Value>=":"</Value>
</Textbox>
<Textbox Name="textbox10">
<Top>0.125in</Top>
<Width>0.375in</Width>
<Style></Style>
<Color>Gray</Color>
<FontFamily>Tahoma</FontFamily>
<TextAlign>Left</TextAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
<ZIndex>2</ZIndex>
<CanGrow>true</CanGrow>
<Left>1.645in</Left>
<Height>0.25in</Height>
<Value>=":"</Value>
</Textbox>
<Textbox Name="reportDuration">
<Top>0.375in</Top>
<Width>1.645in</Width>
<Style></Style>
<Color>Gray</Color>
<FontFamily>Tahoma</FontFamily>
<TextAlign>Left</TextAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
<ZIndex>1</ZIndex>
<CanGrow>true</CanGrow>
<Height>0.25in</Height>
<Value>=Code.GetLocTable("LT_Report").GetString("R.LocStr7", "[Report Duration]")</Value>
</Textbox>
<Textbox Name="reportTime">
<Top>0.125in</Top>
<Width>1.645in</Width>
<Style></Style>
<Color>Gray</Color>
<FontFamily>Tahoma</FontFamily>
<TextAlign>Left</TextAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
<CanGrow>true</CanGrow>
<Height>0.25in</Height>
<Value>=Code.GetLocTable("LT_Report").GetString("R.LocStr8", "[Report Time]")</Value>
</Textbox>
</ReportItems>
<Height>8.375in</Height>
<Style></Style>
<BackgroundColor>White</BackgroundColor>
</Style>
</Script></Body>
<Language>en-US</Language>
<TopMargin>1in</TopMargin>
<Code><Script>Function GetCallingManagementGroupId() As String
Return Microsoft.EnterpriseManagement.Reporting.ReportingConfiguration.ManagementGroupId
End Function

Function GetReportLocLanguageCode() As String
Return ReportCulture.ThreeLetterWindowsLanguageName
End Function

Const LocTableStringQuery As String = "R/S[@N='{0}']/text()"

Const TimeZoneParameterName As String = "TimeZone"
Const IsRelativeTimeSupported As Boolean = True
Const TimeTypeParameterName As String = "TimeType"
Const TimeWeekMapParameterName As String = "TimeWeekMap"
Const DataAggregationParameterName As String = "DataAggregation"

Dim LocTables As System.Collections.Generic.Dictionary(Of String, Microsoft.EnterpriseManagement.Reporting.XmlStringTable)
Dim ReportTimeZone As Microsoft.EnterpriseManagement.Reporting.TimeZoneCoreInformation
Dim ReportTime As Microsoft.EnterpriseManagement.Reporting.ParameterProcessor.RelativeTime
Dim ReportCulture As System.Globalization.CultureInfo
Dim ParameterProcessor As Microsoft.EnterpriseManagement.Reporting.ParameterProcessor

Protected Overrides Sub OnInit()
LocTables = New System.Collections.Generic.Dictionary(Of String, Microsoft.EnterpriseManagement.Reporting.XmlStringTable)()
ReportTimeZone = Nothing
ReportTime = Nothing
ReportCulture = System.Globalization.CultureInfo.GetCultureInfo(Report.User("Language"))
ParameterProcessor = New Microsoft.EnterpriseManagement.Reporting.ParameterProcessor(ReportCulture)
End Sub


Public Function GetLocTable(ByVal Name As String) As Microsoft.EnterpriseManagement.Reporting.XmlStringTable
Dim LocTable As Microsoft.EnterpriseManagement.Reporting.XmlStringTable

If Not LocTables.TryGetValue(Name, LocTable) Then
LocTable = New Microsoft.EnterpriseManagement.Reporting.XmlStringTable(LocTableStringQuery, Report.Parameters(Name).Value)
LocTables.Add(Name, LocTable)
End If

Return LocTable
End Function

Public Function GetReportTimeZone() As Microsoft.EnterpriseManagement.Reporting.TimeZoneCoreInformation
If IsNothing(ReportTimeZone) Then ReportTimeZone = Microsoft.EnterpriseManagement.Reporting.TimeZoneCoreInformation.FromValueString(Report.Parameters(TimeZoneParameterName).Value)
Return ReportTimeZone
End Function

Public Function ToDbDate(ByVal DateValue As DateTime) As DateTime
Return GetReportTimeZone.ToUniversalTime(DateValue)
End Function

Public Function ToReportDate(ByVal DateValue As DateTime) As DateTime
Return GetReportTimeZone.ToLocalTime(DateValue)
End Function

Public Function FormatDateTime(ByVal Format As String, ByVal Value As DateTime) As String
Return Value.ToString(Format, ReportCulture)
End Function

Public Function FormatNumber(ByVal Format As String, ByVal Value As Decimal) As String
Return Value.ToString(Format, ReportCulture)
End Function

Public Function FormatString(ByVal Format As String, ByVal ParamArray Values() As Object) As String
Return String.Format(ReportCulture, Format, Values)
End Function

Public Function NullFormatString(ByVal Format As String, ByVal Value As String) As String
Return IIF(String.IsNullOrEmpty(Value), String.Empty, String.Format(ReportCulture, Format, Value))
End Function</Script></Code>
<CodeModules>
<CodeModule>Microsoft.EnterpriseManagement.Reporting.Code, Version=6.0.0.0, Culture=neutral</CodeModule>
</CodeModules>
</Report>
</Definition>
<ReportStrings>
<ReportString ID="R.LocStr1"/>
<ReportString ID="R.LocStr2"/>
<ReportString ID="R.LocStr3"/>
<ReportString ID="R.LocStr4"/>
<ReportString ID="R.LocStr5"/>
<ReportString ID="R.LocStr6"/>
<ReportString ID="R.LocStr7"/>
<ReportString ID="R.LocStr8"/>
</ReportStrings>
</Report>