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
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.
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.