如何设置单元格宽度iTextSharp的创建PDF [英] How to set the cell width in itextsharp pdf creation

查看:235
本文介绍了如何设置单元格宽度iTextSharp的创建PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何使用C#设置单元格的宽度和高度iTextSharp的PDF细胞细齿。我只是用

How can I set cell width and height in itextsharp pdf cell ceration using c#. I just use

cell.width = 200f;

但是,应显示的错误消息。

But it should display the error message.

宽度不能设置。

我应该怎么办?..

推荐答案

<一个href=\"http://indaravind.blogspot.in/2009/02/itextsharp-table-column-width.html\">http://indaravind.blogspot.in/2009/02/itextsharp-table-column-width.html

VB:

Dim intTblWidth() As Integer = {12, 10, 26, 10}

C#:

int[] intTblWidth = { 12, 10, 26, 10 };

这篇关于如何设置单元格宽度iTextSharp的创建PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆