Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • Is CreateDocument method supposed to properly render the report when run multiple time on the same instance of the XtraReport class, as shown below?

                                    'Instantiate XtraReport
                                    Dim rpt=New XtraReport
                                    Dim ds=New Dataset
                                    'Populate ds
                                    .
                                    .
                                    .
                                    rpt.DataSource=ds
                                    rpt.CreateDocument
                                    'Use rpt (e.g. ShowPreview)
                                    .
                                    .
                                    .
                                    'Now re-use the existing XtraReport object
                                    'First, re-populate ds. then, re-run CreateDocument
                                    .
                                    .
                                    .
                                    rpt.DataSource=ds
                                    rpt.CreateDocument
                                    .
                                    .
                                    .
                                    'Now re-use the existing XtraReport object
                                    'First, re-populate ds. then, re-run CreateDocument
                                    .
                                    .
                                    .
                                    rpt.DataSource=ds
                                    rpt.CreateDocument
                                    .
                                    .
                                    .

                                0

                                Hi Naftali,

                                Yes, this approach should work fine.
                                Please feel free to contact us if you need any additional assistance. We will be happy to help you.

                                Thanks,
                                Andrew

                                0

                                Thanks for your clarification.

                                Now, is it also supposed to work fine, if before the subsequent CreateDocument, the DataSource dataset isn't replaced with a new one, but manipulated on, like in the sample below?

                                'Instantiate XtraReport
                                Dim rpt=New XtraReport
                                Dim ds=New Dataset
                                'Populate ds
                                .
                                .
                                .
                                rpt.DataSource=ds
                                rpt.CreateDocument
                                'Use rpt (e.g. ShowPreview)
                                .
                                .
                                .
                                'Now re-use the existing XtraReport object
                                'First, change data in DataSource. then, re-run CreateDocument
                                DirectCast(rpt.DataSource,dataset).Tables(0).Rows(1)("ColumnName")=3
                                rpt.CreateDocument
                                .
                                .
                                .

                                0

                                Naftali,

                                Yes, this approach should work fine, too.
                                But, please call the XtraReport.PrintingSystem.ClearContent() method to clear the report content.
                                Please feel free to contact us if you need any additional assistance. We will be happy to help you.

                                Thanks,
                                Andrew

                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners