I am in the process of upgrading my project to use the Q2 2010 Telerik WinControls (specifically the 2010.2.10.806 version). After updating I cannot see the ExcelML namespace under Telerik.WinControls.UI.Export. Am I doing something wrong or is this a known issue?
An example piece of code is as follows:
My error states that the type or namespace cannot be found. I even tried opening up the namespace in the object explorer and cannot see the class. Any help is greatly appreciated!
Thanks,
-Bill
An example piece of code is as follows:
using
Telerik.WinControls.UI.Export;
...
private
void
btnExport_Click(
object
sender, EventArgs e)
{
//Create a new Temporary File
ExportToExcelML exporter =
new
ExportToExcelML(
this
.mainGrid);
string
fileName = Path.GetTempPath() +
"ExportData.xls"
;
//Export the grid to the file
bool
exportThemeColors =
true
;
exporter.HiddenColumnOption = HiddenOption.DoNotExport;
exporter.SheetMaxRows = ExcelMaxRows._65536;
exporter.ExportVisualSettings = exportThemeColors;
exporter.RunExport(fileName);
//Open it in Excel
Process process =
new
Process();
process.StartInfo.FileName = fileName;
process.Start();
}
My error states that the type or namespace cannot be found. I even tried opening up the namespace in the object explorer and cannot see the class. Any help is greatly appreciated!
Thanks,
-Bill