1.silverlightä¸çdatagrid导åºexcel
silverlightä¸çdatagrid导åºexcel
ç¨ASPXé¡µé¢ å°±è¡äº,佛光普照指标源码ä¸è¦ç¨é¶å
Private Sub excel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
With Response
.Buffer = True
.ContentType = "application/vnd.ms-excel "
.ContentEncoding = System.Text.Encoding.GetEncoding( "utf-8 ")
End With
DataGrid_CXMONEY.EnableViewState = False
Dim tw As New System.IO.StringWriter()
Dim hw As New System.Web.UI.HtmlTextWriter(tw)
DataGrid_CXMONEY.RenderControl(hw)
Response.Write(tw.ToString())
Response.End()
end sub
GRIDå¨æ¾å¨ASPX页é¢ä¸,ç»å®æ°æ®æº
è¿æ ·å¯¼åºé常快,æ¯èªå·±éå½å¡«å XLSåå æ ¼ä¸ç¥éå¿«å¤å°.
ä½æ个缺é·å°±æ¯åªè½ç,åç»è®¡æ¶ä¼æé®é¢.
å ä¸ºå ¶å®è¿æ®µä»£ç åçå°±æ¯ç¨XLSä¸æ¾ç¤ºHMTLèå·²,è·çæ£çXLSæºä»£ç æåºå«ç