Skip to content

Latest commit

 

History

History
125 lines (118 loc) · 3.54 KB

File metadata and controls

125 lines (118 loc) · 3.54 KB
title Working with Tables in .NET PDF Library | Syncfusion
description Learn how to create or add a table to a PDF document, apply cell style & built-in table styles, automatic pagination, customize the rows and columns, and more.
platform file-formats
control PDF
documentation UG

Working with .NET PDF Tables

The Syncfusion .NET PDF library provides support for two types of PDF table models, both having a different levels of customization, which is explained as follows. The two types of table models are:

  1. PdfGrid* (Recommended)
  2. PdfLightTable

N> We strongly recommend to use PdfGrid for creating table in PDF document since it represents flexible grid which supports various customization of rows and columns.

Difference between PdfLightTable and PdfGrid

Both the PdfGrid and PdfLightTable models are supported across all the platforms and the following table explains the level of customizations both the models provide.

Features PdfLightTable PdfGrid
{{ '**Formatting**' | markdownify }}
Row No direct API, possible through events. Yes
Column Yes (StringFormat) Yes (StringFormat)
Cell No direct API for single cell formatting, possible through events. Yes
{{ '**Others**' | markdownify }}
Row span No Yes
Column span No direct API, possible through events. Yes
Nested Grid Possible through events Yes
Layout Events BeginCellLayout, BeginPageLayout, BeginRowLayout, EndCellLayout, EndPageLayout, EndRowLayout BeginPageLayout, EndPageLayout