zoukankan      html  css  js  c++  java
  • c# 生成word 文档。

    string ss = o.ToString();
              Response.Expires 
    = 0;
              Response.Buffer 
    = true;
              Response.Clear();
              Response.ClearHeaders();
              Response.ClearContent();
              Response.AddHeader(
    "Content-disposition""attachment; filename=1.doc");
              Response.ContentType 
    = "application/vnd.ms-word";
              Response.Write(
    "<html><head>");
              Response.Write(
    "<title></title></head><body>");
              Response.Write(ss);
              Response.Write(
    "</body></html>");
              Response.Flush();
              Response.End();
    继续追寻。。。。。。
  • 相关阅读:
    ...
    RUP,XP,敏捷原理
    JSP的内置对象——SESSION
    JSP的内置对象——REQUEST
    节点属性
    RUP,XP,敏捷原理
    寄存器
    设置背景图片
    Java代码空格问题
    数据库常见错误
  • 原文地址:https://www.cnblogs.com/lfzwenzhu/p/2076544.html
Copyright © 2011-2022 走看看