Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • Hi,
                                    I am currently evelauting the Xtra Reports Web application.
                                    Is it possible to populate an XRPicture box in a report at runtime - e.g. have different logos displayed in the header of the same reports?

                                    Thanks

                                    Jason

                                0

                                Hi Jason,

                                Yes, it is possible to populate the XRPictureBox in a web application at runtime.
                                If I understand you correctly, you wish to click a button (or do something similar) and change the image at this moment.
                                In this case, I suggest that you set the XRPictureBox.ImageUrl property.
                                Please note,that the report is not cached on the server, so this property will be reseted to its default value once this report is requested from the server by the client application.
                                To work around this problem, I suggest that you save this property value to the Session object and restore it when needed.
                                The sample project attached shows this approach in action.
                                I hope, it will be helpful to you.

                                Please feel free to contact us in case of any difficulties. We will be happy to assist you.

                                Thanks,
                                Andrew

                                DQ27928.ZIP

                                To start a chat you should create a support ticket


                                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