2012-04-18 5 views
0

こんにちは私のWebアプリケーションでは、XLSページでボタンをクリックすると.aspxページが変換されます。 私はそれをしましたが、結果が良くなくなってしまいました。私はこのコードをボタンのクリックで使用しました。.aspxページをMicrosoft Excelページに変換します。

 Response.Clear(); 
     Response.Buffer = true; 
     string filename = "TicketSecretary.xlxs"; 
     Response.AddHeader("Content-Disposition", "attachment; filename=" + filename); 
     Response.ContentEncoding = System.Text.Encoding.UTF8; 
     Response.ContentType = "application/ms-excel"; 
     this.EnableViewState = false; 
+2

あなたが実際にそれと間違って何を教えていません。詳細情報が必要です。 – Archer

+0

拡張子は 'xlxs'ではなく' xlsx'ですか? –

+0

@archerそのページを変換するが2つのテーブルが重なっている。ありがとう – Neetesh

答えて

関連する問題