I've read through the examples and forums and can't find an answer. In the code below you can see that a new row is added to the spreadsheet showing the "Exported" time and date. It is also formatted. That works fine.
What I want to do is pass a string into the sub that can be used in the AddCustomExcelRow to describe the contents of the grid that is being exported. Assume I have a grid showing "Top Investments". I would like to pass that string into the sub below and use it as a new row. I would want to pass a descriptive string from any grid I choose. Any ideas?
What I want to do is pass a string into the sub that can be used in the AddCustomExcelRow to describe the contents of the grid that is being exported. Assume I have a grid showing "Top Investments". I would like to pass that string into the sub below and use it as a new row. I would want to pass a descriptive string from any grid I choose. Any ideas?
Public
Sub
exporter_ExcelTableCreated(
ByVal
sender
As
Object
,
ByVal
e
As
Telerik.WinControls.UI.Export.ExcelML.ExcelTableCreatedEventArgs)
Dim
subHeader
As
String
=
"Exported "
& Now().ToString
Dim
style1
As
ExcelML.SingleStyleElement = (
CType
(sender, ExportToExcelML)).AddCustomExcelRow(e.ExcelTableElement, 0, subHeader)
style.FontStyle.Bold =
True
style.FontStyle.Size = 11
style1.FontStyle.Color = Color.RoyalBlue