Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
we use the code given below.

<%@ Register assembly="ExportToExcel" namespace="KrishLabs.Web.Controls" tagprefix="RK" %>


<RK:ExportToExcel ID="ExportToExcel1"  runat="server" ApplyStyleInExcel="True"
                    Charset="utf-8" ContentEncoding="windows-1250" EnableHyperLinks="True" 
                    ExportFileName="FileName.xls" GridViewID="GridView1" IncludeTimeStamp="True" 
                    PageSize="All" Text="Export To Excel" Width="100px"/>
Posted
Updated 19-Jul-12 1:57am
v2
Comments
ZurdoDev 19-Jul-12 7:55am    
You are using a custom 3rd party Excel exporter and then asking US why it won't work? Does that make sense?
bbirajdar 19-Jul-12 7:58am    
Post this question at KrishLabs forums

Try this......

XML
<RK:exporttoexcel id="ExportToExcel1" runat="server" applystyleinexcel="True" charset="utf-8" ContentEncoding="windows-1250" EnableHyperLinks="True" ExportFileName="Report.xls"
IncludeTimeStamp="True" PageSize="All" Text="Export To Excel"
PostBackUrl="Report.aspx" OnPreExport="submitButton_Click" />



set your PostBackUrl
set OnPreExport event

in OnPreExport event set GridView.DataSource and DataBind Method......

it works....
 
Share this answer
 
I would suggest you to post and follow up your issue here: Export To Excel control[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900