Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • HI DevExpress Team
                                    I am using the XtraReports to create several reports. On one report I need to create a hyperlink in one of the fields.
                                    The report is built in the designer but the details portion is created at runtime using an XRTable. I pass in a datatable and loop through it to create each cell. I need one cell in each row to be a hyperlink to call another report which I will launch in a new window.
                                    I used the example (Q98852.zip) supplied to a previous question as a guide but I am having trouble adding the hylerlink control to the cell.
                                    The line 'cell.Controls.Add(hLink)' is in error.
                                    (The best overloaded method match for 'DevExpress.XtraReports.UI.XRControlCollection.Add(DevExpress.XtraReports.UI.XRControl)' has some invalid arguments)
                                    See attachment containing the code to create the XRTable for the details section.

                                    Thanks for your help
                                    Gerald

                                XRTable.cs
                                0

                                Hello Gerald,

                                Please note that WebControls are not supported by the report. You need to use XRControls instead. In you particular scenario, use an XRLabel control with the specific XRControl.NavigateUrl Property value to emulate a hyperlink as shown in the attached sample. Hope this makes sense.

                                Thanks,
                                Alessandro.

                                Q388419.zip
                                0

                                Hi Alessandro,
                                After adding some styles it looks functions exactly like what I was after.

                                Thanks for your help
                                Gerald

                                0

                                Hi,

                                I am glad to hear that you have found my assistance helpful. Thank you for letting us know your result. Please feel free to contact us if you have further difficulties. We will be happy to assist you.

                                Thanks,
                                Alessandro.

                                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