开发者

Generating pdf using itextsharp in asp.net c#

开发者 https://www.devze.com 2023-02-12 06:55 出处:网络
I want to generate pdf file as attached in the picture. i want to harcode the contents shown in the picture into a pdf file on button click.

I want to generate pdf file as attached in the picture. i want to harcode the contents shown in the picture into a pdf file on button click.

How do i proceed, using table structure will work?I am unable to form t开发者_如何学运维he table stucture here.

Please help me to sort out my problem.i want the output as shown in below image.

Generating pdf using itextsharp in asp.net c#


Here you have a good tutorial about using iTextSharp

http://www.mikesdotnetting.com/Category/20


First create one table with two columns like below

_______________________________________________
|                             |               |
|                             |               |
|                             |               |
|           COL.0.1           |    COL.0.2    |
|                             |               |
|                             |               |
-----------------------------------------------

keep reference to its columns, then create table for left side content and insert it as child content of left column COL.0.1

------------------------------
| designation: xxxxxxx        |   <---- colspan = 2
------------------------------
| Audit No.        |    xxxx  |
------------------------------
| Received on .......         |
-------------------------------

and you can continue for the rest of content similar to this.

The idea is to split content to smaller tables and nest them.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号