 |
|
 |
How I use this with a GridView and not a DataGrid?
|
|
|
|
 |
|
 |
Hi,
using this Excel .NET component you can export GridView to Excel.
Here is an Excel VB.NET sample how to do this from your Excel ASP.NET project:
Dim dataTable = DirectCast(gridView.DataSource, DataTable)
Dim ef = New ExcelFile()
Dim ws = ef.Worksheets.Add(dataTable.TableName)
ws.InsertDataTable(dataTable, "A1", True)
Response.Clear()
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader("Content-Disposition", "attachment; filename=Employee.xls")
ef.SaveXls(Response.OutputStream)
Response.[End]()
|
|
|
|
 |
|
 |
Hi
Can anyone tell me how to export DataGrid or List to Excel spreadsheet using only C# without reference to HTML code?? I'm new in programming in C# so please don't kill me
|
|
|
|
 |
|
|
 |
|
|
 |
|
 |
Hi I'm Hai
I'm very need a Application Datagidview can Export data to file Excel
can you help me
thank you very much
|
|
|
|
 |
|
|
 |
|
|
 |
|
 |
The Title does not say it all. It will work as stated but it will not return control. So how does the title say it all?
I want to display a simple message to let the user know the file excel was completed and the database was updated. The database gets update before calling this function, but it does not return anything.
What gives, or did I miss something somewhere?
Chris9675
|
|
|
|
 |
|
 |
This code seems to work only in Web apps. Is there any info for Win apps regarding importing a Datagrid to Excel??
Mvelo Walaza
Developer
Telkom SA
|
|
|
|
 |
|
 |
I am using a third party DataGrid tool and it's not accepting it.
|
|
|
|
 |
|
 |
hi Bhavtosh,
i am a biginner to vb.net i have seen the code written by u to export the data from datagrid to excel.
i am doing the project in vb.net i i would like to know that how can i export the data from datagrid to excel in vb.net ?
i dont have ne one here who can help me in this can u help me please ?
waiting for reply
my email id is nitin4u@yahoo.com
thanking you
NITIN APTE
|
|
|
|
 |
|
 |
nitin same problem here please send me code if you found.
rajeshdhannawat@yahoo.co.in
Rajesh Jain
Rajesh Jain
|
|
|
|
 |
|
 |
This only works with web datagrids?
|
|
|
|
 |
|
 |
i noted the same..the download refers to Web Controls etc..so should this article be under ASP.net using C# not simply under c# programming??
|
|
|
|
 |
|
 |
Pls tell me solution about Export DataGrid ( Infragetic WebGrid ) to Excel file
Thanks
|
|
|
|
 |
|
 |
Thanks! The export class works great. I just need to keep all cells in a text format and not allow the export or excel to truncate leading zeroes. Any ideas?
|
|
|
|
 |
|
 |
Hello!
I am quite new in software development. I have a fuction in C# which I use to export a string to excel, but I need to export, at the same moment, more strings to excel and what I need is to export per sheets.
Can U help me, please?
Regards,
Ema
|
|
|
|
 |
|
 |
If there are selectedItem controls on the datagrid this would fail.
I had to put in code to make them literal.
Also, does anyone know what is the best way to format the display so that the cells in the excel would be displayed expanded?
Thanks
|
|
|
|
 |
|
 |
How about some hints about what goes where with this code for us newbies?
e.g.
Download file should be added as a Class file.
The Function/Method on the website page calls the Class.
-- How do I create an instance of the class to inherit it?
new DataGrid... ()
I can't seem to get this to work as presented and explained.
Tks
r
|
|
|
|
 |
|
 |
Is there a way to use this component for Win DataGrid?
|
|
|
|
 |
|
 |
Hi!
This is working nicely. Now I have a problem, because there is big integers in my datagrid. For example, I have "364151311092289096" in it. Now, when exported to excel, it shows there as "3,64151E+17", or "364151311092289000". Formatting the cells in excel doesn't help, the last 3 digits are lost in export. Any solution for this?
Thanks!
|
|
|
|
 |
|
 |
Any ideas why? It will display all the other elements on my page except for what I need -- the data!
Help please
|
|
|
|
 |
|
 |
maybe no data in grid. he he he. Maybe data go south and you lose job.
|
|
|
|
 |
|
 |
I do not know where to get the MDF.css file that your code looks for.
|
|
|
|
 |