Current filter:
                                You should refresh the page.
                                  • the template1.repx is build under the data1.mdb.

                                    During the runtime, I want to change it to data2.mdb.
                                    How can I do that?

                                    The vb source code is as below:


                                    Dim report As New XtraReport
                                    Dim tool As New ReportPrintTool(report)


                                    report.LoadLayout("C:\Temp\template1.repx")




                                    tool.Report.CreateDocument()


                                    tool.ShowPreviewDialog()


                                    End Sub 


                                    Your prompt advise is much appreciated.

                                    Charles

                                1 Solution

                                Creation Date Importance Sort by
                                Hello  Charles,

                                You can use the approach described in the Bind a Report to an MDB Database (Runtime Sample) topic to spicify the connection string for a report at runtime.

                                Thanks,
                                Elliot
                                • Customer39476 12.06.2018
                                  Thanks for your advise.  Let me study and come back with you if there is further query.
                                • Elliot (DevExpress Support) 12.07.2018
                                  Hello Charles,

                                  Thank you for your reply. Please do not hesitate to contact us in case of further questions.

                                  Thanks,
                                  Elliot