You can download a complete working sample from GitHub. The following code example shows how to save the invoice document to disk and dispose the PdfDocument object. Draw ( page, new RectangleF ( new PointF ( 0, result. Paginate //Draws the grid to the PDF page. PdfGridLayoutFormat layoutFormat = new PdfGridLayoutFormat () // Creates layout format settings to allow the table pagination. TextBrush = new PdfSolidBrush ( new PdfColor ( 131, 130, 136 )) //Creates the layout format for grid. Font = new PdfStandardFont ( PdfFontFamily. Bottom = new PdfPen ( new PdfColor ( 217, 217, 217 ), 0.70f ) cellStyle. Add ( new object //Applies the header style. Add ( "Name" ) //Add rows to the DataTable. DataTable dataTable = new DataTable () //Add columns to the DataTable dataTable. PdfGrid pdfGrid = new PdfGrid () //Create a DataTable. PdfDocument doc = new PdfDocument () //Add a page.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |