Hi,
I am exporting grid data into an excel. I needed to add company logo at the top in excel. So, I did this:
Radgrid1.ExportSettings.FileName = pFileName;
I am exporting grid data into an excel. I needed to add company logo at the top in excel. So, I did this:
string
imageURL = Page.ResolveUrl("~/Images/") + "Companylogo.jpg";
Radgrid1.ExportSettings.FileName = pFileName;
Telerik.Web.UI.ExportInfrastructure.
Table table = pExportEventArgs.ExportStructure.Tables[0];
xls.
Cell cmpCell = table.Cells["A1"];
table.InsertImage(cmpCell, imageURL);
table.ShiftRowsDown(1, 8);
Then I need to add some information to the sheet like this on row 9, from starting cell like this:
table.rows[9].cells[0]. value = "Down loaded from company name:" + current Date Time;
For this long text to appear as visible, I want to merge cells and then display.
From row 10, grid data gets displayed. If cell1 is not wide enough, row 9 value partially is visible.
How can I merge cells of particular row and add value to it.
I appreciate your response.