Ticket Q90500
Visible to All Users

XafReport together

created 17 years ago

Two XtraReports I can bring together by Pages.AddAange. How can I bring together two XafReports?
Mario

Show previous comments (5)
DevExpress Support Team 17 years ago

    Hi Mario,
    In your Web application, you need to write something in the following manner:

    Visual Basic
    Private Sub simpleAction1_Execute(ByVal sender As Object, ByVal e As SimpleActionExecuteEventArgs) Handles simpleAction1.Execute Dim reportName As String = "test" Dim parametersObjectSpace As ObjectSpace = Application.CreateObjectSpace() Dim reportData As ReportData = parametersObjectSpace.FindObject(Of ReportData)(New BinaryOperator("Name", reportName)) Dim report As XafReport = reportData.LoadXtraReport(parametersObjectSpace) report.CreateDocument() Dim reportName1 As String = "test2" Dim parametersObjectSpace1 As ObjectSpace = Application.CreateObjectSpace() Dim reportData1 As ReportData = parametersObjectSpace.FindObject(Of ReportData)(New BinaryOperator("Name", reportName1)) Dim report1 As XafReport = reportData1.LoadXtraReport(parametersObjectSpace) report1.CreateDocument() report.Pages.AddRange(report1.Pages) report.PrintingSystem.ContinuousPageNumbering = True Dim detailView As DetailView = report.CreateParametersDetailView(Application) If detailView Is Nothing Then detailView = New DetailView(parametersObjectSpace, reportData, Application, False) detailView.SetInfo(New DictionaryNode("")) End If detailView.Caption = reportData.ReportName detailView.SetReadOnlyByKey("", False) detailView.ViewEditMode = ViewEditMode.Edit e.ShowViewParameters.Context = TemplateContext.PopupWindow e.ShowViewParameters.CreatedView = detailView e.ShowViewParameters.TargetWindow = TargetWindow.Popup e.ShowViewParameters.Controllers.Add(CreateReportDialogController(report, ReportOutputType.Pdf)) End Sub

    Thanks,
    Marina

      In my project were absent for Modules.Web the references to XtraPrinting and XtraReports. Some methods were not thereby recognizable.
      Now it functions. Thank you
      Mario Funke

      DevExpress Support Team 17 years ago

        Mario, thank you for your feedback. I'm happy to know that my code helped you. Next time, I will define which assemblies, except for default ones, you need to use.
        Marina

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.