Welcome to the Xceed Community | Help
Community Search  
More Search Options

How to configure Print preview to print summary row?

Sort Posts: Previous Next
  •  04-16-2012, 9:37 AM Post no. 31993

    How to configure Print preview to print summary row?

    I have defined in DataGridControl in TableView.Footers an templte to show StatRow with StatCell in grid. This works well, but ShowPrintPreviewWindow does not shows that summary row. What I should define for Print Preview to show it?

    When I do some Grouping in grid, than summary for groups is exported, but row with total sum is missing.

  •  04-17-2012, 4:01 AM Post no. 31998 in reply to 31993

    Re: How to configure Print preview to print summary row?

    To save somebody time, I put example here (XCeed please extend your documentation - examples). Solution is simple - repeat your footer part definition from grid (<xcdg:TableView.FixedFooters>) into <xcdg:PrintTableView.Footers>.

    <

    xcdg:DataGridControl.View>

    <xcdg:TableflowView UseDefaultHeadersFooters="False" >

    <xcdg:TableView.FixedHeaders >

    <DataTemplate>

    <xcdg:ColumnManagerRow />

    </DataTemplate>

    <DataTemplate>

    <xcdg:FilterRow />

    </DataTemplate>

    </xcdg:TableView.FixedHeaders>

    <xcdg:TableView.FixedFooters>

    <DataTemplate>

    <xcdg:StatRow >

    <xcdg:StatCell FieldName="NettoBetrag" ResultPropertyName="SumOfNettoBetrag"

    Style="{StaticResource tableViewTotalStatCellStyle}"

    ContentTemplate="{StaticResource DecimalTo2DecPlacesText}" />

    <xcdg:StatCell FieldName="BruttoBetrag" ResultPropertyName="SumOfBruttoBetrag"

    Style="{StaticResource tableViewTotalStatCellStyle}"

    ContentTemplate="{StaticResource DecimalTo2DecPlacesText}" />

    </xcdg:StatRow>

    </DataTemplate>

    </xcdg:TableView.FixedFooters>

    </xcdg:TableflowView>

    </xcdg:DataGridControl.View>

    <xcdg:DataGridControl.PrintView>

    <xcdg:PrintTableView UseDefaultHeadersFooters="True"

    HorizontalGridLineThickness="1" HorizontalGridLineBrush="Gray"

    VerticalGridLineThickness="1" VerticalGridLineBrush="Gray" >

    <xcdg:PrintTableView.Footers>

    <DataTemplate>

    <xcdg:StatRow >

    <xcdg:StatCell FieldName="NettoBetrag" ResultPropertyName="SumOfNettoBetrag"

    Style="{StaticResource tableViewTotalStatCellStyle}"

    ContentTemplate="{StaticResource DecimalTo2DecPlacesText}" />

    <xcdg:StatCell FieldName="BruttoBetrag" ResultPropertyName="SumOfBruttoBetrag"

    Style="{StaticResource tableViewTotalStatCellStyle}"

    ContentTemplate="{StaticResource DecimalTo2DecPlacesText}" />

    </xcdg:StatRow>

    </DataTemplate>

    </xcdg:PrintTableView.Footers>

    </xcdg:PrintTableView>

    </xcdg:DataGridControl.PrintView>

View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.