已經(jīng)將PDF生成字節(jié)數(shù)組renderedBytes,那么在MVC3中怎樣將這個PDF的數(shù)據(jù)顯示到頁面的某個部分。
Response.Clear(); Response.ContentType = "application/pdf"; Response.AddHeader("content-disposition", "attachment; filename=foo.pdf"); Response.BinaryWrite(renderedBytes); Response.End();
- 3 回答
- 0 關(guān)注
- 345 瀏覽
添加回答
舉報
0/150
提交
取消