Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to convert and then print GridControl by using XtraReport

$
0
0

This example demonstrates how to dynamically create a report based on the GridControl at runtime. This means that all filtering, sorting and grouping conditions selected in the grid are also applied in the report. To accomplish this task, it is necessary to create a report with all the necessary bands, bind it to a data source, and adjust all the necessary options. You can use this approach if you need to insert a report based on GridControl into another report.

[Update]
Starting with version 15.2, you can use GridReportManagerService to convert and export GridControl by using XtraReports.

Question Comments

Added By: Goce Sapkar at: 7/19/2013 4:58:08 AM    

Great example. It helped me a lot.

What if we have master-detail relationship in the GridControl. How could i print them in this report ?

<dxg:GridControl.DetailDescriptor>
                <dxg:DataControlDetailDescriptor x:Name="gridDetailDescriptor" ItemsSourceBinding="{Binding SampleBinding}" ShowHeader="false">
                    <dxg:GridControl x:Name="detailGrid" AutoPopulateColumns="True">
                        <dxg:GridControl.View>
                            <dxg:TableView AutoWidth="True" NavigationStyle="Row" ShowTotalSummary="True" AllowEditing="False" S ShowGroupPanel="False" />
                        </dxg:GridControl.View>
                    </dxg:GridControl>
                </dxg:DataControlDetailDescriptor>
</dxg:GridControl.DetailDescriptor>

Added By: Murad BASDAG at: 9/10/2015 3:35:56 PM    

Hello,

Can we use below helper in our application freely (we have DXperience license). If we cannot please inform us as soon as possible.

B.R.
Murad BAŞDAĞ

Added By: Elliot (DevExpress Support) at: 9/11/2015 5:14:20 AM    

Hello,

To process your recent post more efficiently, I created a separate ticket on your behalf: T288902: Can we use the ReportHelper from E4658 in our application freely?. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>