Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

ExportToExcelML Issue

$
0
0

So I have gridview and I am trying to export it to a excel spreadsheet...

        private void savedata()
        {
            ExportToExcelML exporter = new ExportToExcelML(table);
            exporter.SheetMaxRows = ExcelMaxRows._65536;
            SaveFileDialog bob = new SaveFileDialog();
            if (bob.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {                
                exporter.RunExport(bob.FileName);
            }
        }

Now, I have made sure that I have the TelerikData.dll added to my references.

I have made sure I have declared "using Telerik.WinControls.UI.Export" and using "Telerik,WinConrols.Data"

Everything compiles fine, but at runtime I get a cast exception.

"Unable to cast object of type 'Telerik.WinControls.UI.GroupPanelElement' to type 'Telerik.WinControls.RadElement'."

I have tried removing and readding TelerikData.dll (2013.3.1127.20) doesn't help.

I was thinking about using GridViewSpreadExport instead of the ExportToExcelML, but I don't have TelerikExport.dll in my C:\Program Files (x86)\Telerik\RadControls for WinForms Q3 2013\Bin folder.

 

What am I missing here?

Manoj

 

 


Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>