question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GridViewExportExcel how export excel?

See original GitHub issue

How i can export to excel?, as in the example of “Bussines Editor” in https://themes.dotvvm.com/editor, i tried:

var exporter = new  GridViewExportExcel<Customer>(new GridViewExportExcelSettings<Customer>());
           var gridView = Context.View.FindControlByClientId<DotVVM.BusinessPack.Controls.GridView>("data", true);

           using (var file = exporter.Export(gridView, Customers))
           {
               Context.ReturnFile(file, "excel.xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
           }

but I can not find the space name “GridViewExportExcel”, i have Bussinespack trial version. help me please?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:57 (29 by maintainers)

github_iconTop GitHub Comments

1reaction
mrnustikcommented, May 27, 2021

@CharanSaradaSSD This is not an error. As described in the conversation above this is an internal exception of the DotVVM framework which is used for interrupting the current request and returning the file from it. Just skip it and your exported excel file should download after.

1reaction
mrnustikcommented, May 24, 2021

Just a note: In version 3.0.0 we have managed to make the Excel export much better. It provides support for all of Excel data types and extensibility points.

Right now the 3.0.0 version is in preview, but the Excel export should be stable. We are currently working on the documentation for it so it should be available soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Export Gridview to Excel Using ASP.Net C#
In this article we will learn how to export a GridView to Excel using ASP .Net C#.
Read more >
gridview data export to excel in asp.net
Use this code for export grid view in excel sheet and note that you must add iTextSharp dll in you project. protected void...
Read more >
Export GridView to Excel in ASPNet with Formatting using ...
Export GridView to Excel in ASP.Net with Formatting using C# and VB.Net · void ExportToExcel(object sender, EventArgs e) · { · Response.Clear();.
Read more >
Export GridView to Excel in ASP.NET
Steps to export GridView to an Excel file programmatically: ... Step 1: Create a new ASP.NET Web application project. ... Step 2: Install...
Read more >
Export Excel files from ASP.NET GridView control
When using GemBox.Spreadsheet in ASP.NET application, a common task that you could need is to export an Excel file to the client's browser....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found