stringwriter sw = new stringwriter();
htmltextwriter hw = new htmltextwriter(sw);
this.rptsaleorder.rendercontrol(hw);
response.clear();
response.charset = "";
rptsaleorder.page.enableviewstate = true;
response.write("時間
訂單號商品
數量單價
運費金額
付款方式
發票備註
"); response.write(sw.tostring());
response.write("
"); response.end();
Repeater匯出為excel格式
資料繫結到repeater1 下面是將repeater1的內容匯出的示例 system.io.stringwriter sw new system.io.stringwriter system.web.ui.htmltextwriter hw new system.web.ui.htmltextwr...
Repeater匯出為excel格式
repeater匯出為excel格式 資料繫結到repeater1 下面是將repeater1的內容匯出的示例 system.io.stringwriter sw new system.io.stringwriter system.web.ui.htmltextwriter hw new syste...
將DataGrid中的資料匯出為Excel的方法
utils.cs 檔案內容 using system using system.data using system.configuration using system.web using system.web.security using system.web.ui using system.we...