【问题标题】:How to change color of Table in itextsharp如何在itextsharp中更改表格的颜色
【发布时间】:2013-06-03 05:56:16
【问题描述】:

我想更改表格边框颜色,我正在使用 iTextsharp 库生成 pdf 文件。

productsTable.DefaultCell.BorderColor= new CMYKColor(0f,0f,100f,0f);

当我使用这条线时,边框颜色不会改变。

那么请大家帮忙看看如何更改我的 iTextsharp 表格边框颜色?

【问题讨论】:

标签: c# asp.net pdf itext


【解决方案1】:

在 ExportPDf 函数中添加此代码 -

ProcuctsTable.Style.Add(\\add style here );

【讨论】:

    猜你喜欢
    • 2017-07-04
    • 1970-01-01
    • 2017-11-24
    • 1970-01-01
    • 2012-03-06
    • 1970-01-01
    • 2017-10-30
    • 1970-01-01
    • 2020-06-14
    相关资源
    最近更新 更多