【问题标题】:add extra content into exported excel sheet in asp.net在 asp.net 中将额外内容添加到导出的 excel 工作表中
【发布时间】:2011-08-22 10:33:24
【问题描述】:

我正在将gridview 中的选定项目导出到excel。现在导出的 excel 应该包含类似“Excel 下载日期:TODAY_DATE”(其中 TODAY_DATE 是今天的日期,格式为 mm/dd/yyyy)。

我的问题:如何在导出的 excel 中附加文本(如上所述)?

谢谢!

【问题讨论】:

  • 您是如何导出的?即通过使用互操作或任何第三方库?

标签: asp.net visual-studio gridview export-to-excel


【解决方案1】:

同样可以通过 html.writer("Content Comes here!") 来完成。

上述解决方案只有在从 HTML 生成 excel 工作表时才有效。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-19
    • 2021-07-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多