0

Hi can i export not the whole report but instead the report bands of devexpress xtrareport? I want to have the header, body and footer pass onto different strings. It is possible? Thanks

UPDATE

I have a InvoiceReceipt which has ReportHeader, Detail, ReportFooter what i want is to pass

ReportHeader => string header;
Detail => string items;
ReportFooter => string footer;

So when i get header it should have the header of the report in text format ( since it was exported as text ) and the rest follows.

OR

can i have the ReportHeader be exported as Text? same as ReportFooter and the Details part?

OR

can i have devexpress reports export to text a specific report by reportheader, reportfooter and details?

4

2 回答 2

0

寻找几乎看起来像这样的代码

    XtraReport report = new XtraReport();

    ReportModel model = this.DataContext as ReportModel;

    report.DataSource = model;

    report.Report.DataSource = model.items;

    report.ShowPreviewDialog();

因为可以使用设置为报表数据上下文的模型来构建您的页眉、明细带和页脚字符串,因此无需从报表页眉、明细带、页脚中获取字符串

于 2012-07-25T09:11:29.297 回答
0
on document viewer :-

public void Getnewreport()
        {
            XtraReport report = new XtraReport();
            // Create a report and bind it to a dataset. 
            report.DataSource = Datads;
            // Show the print preview. 
            report.ShowPreview();
        }

on designer
XtraReport objDevReport = new XtraReport();
                objDevReport.ShowPreview();
                objDevReport.ShowPreviewDialog();
于 2015-06-03T11:22:07.613 回答