merging pdf grids or their grid rows
Thank you for your interest in Syncfuions Products.
We do have support for nested PdfGrid in Essential PDF, please find the below code snippet.
PdfGrid childPdfGrid = new PdfGrid();childPdfGrid.Columns.Add(5);for (int i = 0; i < 5; i++){PdfGridRow row = childPdfGrid.Rows.Add();for (int j = 0; j < 5; j++){row.Cells[j].Value = String.Format("Cell [{0} {1}]", j, i);}}// Set the value as another PdfGrid in a cell.parentGrid.Rows[0].Cells[1].Value = childPdfGrid;
If you want to print the PdfGrid one after another please refer the below link for more reference.
http://www.syncfusion.com/kb/2690/how-to-calculate-pdfgrid-table-height
Please let us know if you need any further assistance in this.
Regards,
Karthikeyan.C
Hi Jb,
Thank you for your interest in Syncfuions Products.
We do have support for nested PdfGrid in Essential PDF, please find the below code snippet.
PdfGrid childPdfGrid = new PdfGrid();childPdfGrid.Columns.Add(5);for (int i = 0; i < 5; i++){PdfGridRow row = childPdfGrid.Rows.Add();for (int j = 0; j < 5; j++){row.Cells[j].Value = String.Format("Cell [{0} {1}]", j, i);}}// Set the value as another PdfGrid in a cell.parentGrid.Rows[0].Cells[1].Value = childPdfGrid;
If you want to print the PdfGrid one after another please refer the below link for more reference.
http://www.syncfusion.com/kb/2690/how-to-calculate-pdfgrid-table-height
Please let us know if you need any further assistance in this.
Regards,
Karthikeyan.C
If i do the following using your example as a sample
PdfGrid childPdfGrid = new PdfGrid();childPdfGrid.Columns.Add(5);for (int i = 0; i < 5; i++){PdfGridRow row = childPdfGrid.Rows.Add();for (int j = 0; j < 5; j++){row.Cells[j].Value = String.Format("Cell [{0} {1}]", j, i);}}
parentRow.Cells[0].Value = childPdfGrid;results in ` Can't draw one or more inner grids, no enough space available for it.`
Basically in the cell i want to show 2 rows. Row 0 spans 4 columns. Row 1. 4 columns and each column has a value
<table class="tg">
<tr>
<th class="tg-031e" colspan="3">Main</th>
</tr>
<tr>
<td class="tg-031e">sub1</td>
<td class="tg-031e">sub2</td>
<td class="tg-031e">sub3</td>
</tr>
</table>
Hi Jb,
Thank you for your interest in Syncfuions Products.
We do have support for nested PdfGrid in Essential PDF, please find the below code snippet.
PdfGrid childPdfGrid = new PdfGrid();childPdfGrid.Columns.Add(5);for (int i = 0; i < 5; i++){PdfGridRow row = childPdfGrid.Rows.Add();for (int j = 0; j < 5; j++){row.Cells[j].Value = String.Format("Cell [{0} {1}]", j, i);}}// Set the value as another PdfGrid in a cell.parentGrid.Rows[0].Cells[1].Value = childPdfGrid;
If you want to print the PdfGrid one after another please refer the below link for more reference.
http://www.syncfusion.com/kb/2690/how-to-calculate-pdfgrid-table-height
Please let us know if you need any further assistance in this.
Regards,
Karthikeyan.C
If i do the following using your example as a samplePdfGrid parentPdfGrid = new PdfGrid();PdfGridRow parentRow = parentPdfGrid.Rows.Add();PdfGrid childPdfGrid = new PdfGrid();childPdfGrid.Columns.Add(5);for (int i = 0; i < 5; i++){PdfGridRow row = childPdfGrid.Rows.Add();for (int j = 0; j < 5; j++){row.Cells[j].Value = String.Format("Cell [{0} {1}]", j, i);}}parentRow.Cells[0].Value = childPdfGrid;results in ` Can't draw one or more inner grids, no enough space available for it.`Basically in the cell i want to show 2 rows. Row 0 spans 4 columns. Row 1. 4 columns and each column has a valuePasting HTML equivalent of what I want in the cell below<table class="tg"> <tr> <th class="tg-031e" colspan="3">Main</th> </tr> <tr> <td class="tg-031e">sub1</td> <td class="tg-031e">sub2</td> <td class="tg-031e">sub3</td> </tr> </table>
This pdfgrid has many columns, the html table sample is what i want inside a gridrow cell.
Hi Jb,
Thank you for your interest in Syncfuions Products.
We do have support for nested PdfGrid in Essential PDF, please find the below code snippet.
PdfGrid childPdfGrid = new PdfGrid();childPdfGrid.Columns.Add(5);for (int i = 0; i < 5; i++){PdfGridRow row = childPdfGrid.Rows.Add();for (int j = 0; j < 5; j++){row.Cells[j].Value = String.Format("Cell [{0} {1}]", j, i);}}// Set the value as another PdfGrid in a cell.parentGrid.Rows[0].Cells[1].Value = childPdfGrid;
If you want to print the PdfGrid one after another please refer the below link for more reference.
http://www.syncfusion.com/kb/2690/how-to-calculate-pdfgrid-table-height
Please let us know if you need any further assistance in this.
Regards,
Karthikeyan.C
If i do the following using your example as a samplePdfGrid parentPdfGrid = new PdfGrid();PdfGridRow parentRow = parentPdfGrid.Rows.Add();PdfGrid childPdfGrid = new PdfGrid();childPdfGrid.Columns.Add(5);for (int i = 0; i < 5; i++){PdfGridRow row = childPdfGrid.Rows.Add();for (int j = 0; j < 5; j++){row.Cells[j].Value = String.Format("Cell [{0} {1}]", j, i);}}parentRow.Cells[0].Value = childPdfGrid;results in ` Can't draw one or more inner grids, no enough space available for it.`Basically in the cell i want to show 2 rows. Row 0 spans 4 columns. Row 1. 4 columns and each column has a valuePasting HTML equivalent of what I want in the cell below<table class="tg"> <tr> <th class="tg-031e" colspan="3">Main</th> </tr> <tr> <td class="tg-031e">sub1</td> <td class="tg-031e">sub2</td> <td class="tg-031e">sub3</td> </tr> </table>
This pdfgrid has many columns, the html table sample is what i want inside a gridrow cell.
sample code snippet
Thank you for your update.
We can achieve your requirement by using Column Span, I have attached a simple sample similar to your requirement. Could you please refer this and let us know is it helpful.
http://www.syncfusion.com/downloads/support/forum/118719/PdfGridSample698096172.zip
Please let us know if you need any further assistance.
Regards,
Karthikeyan.C
Hi JB,
Thank you for your update.
We can achieve your requirement by using Column Span, I have attached a simple sample similar to your requirement. Could you please refer this and let us know is it helpful.
http://www.syncfusion.com/downloads/support/forum/118719/PdfGridSample698096172.zip
Please let us know if you need any further assistance.
Regards,
Karthikeyan.C
The solution you provided did not work
We have created the sample for your requirement. We have tried the sample by applying span. To apply the span, we are combining the rows and columns. So when we create the table as you mentioned structure , we get the columns like R0C0,R0C1 and R0C4.
We have attached the sample for your reference in the below link:
http://www.syncfusion.com/downloads/support/forum/118719/PdfGridSample2030664930.zip
Please try this and let us know if you need any further assistance.
Thanks,
Abirami.
Hi Jb,
Thank you for your interest in Syncfuions Products.
We do have support for nested PdfGrid in Essential PDF, please find the below code snippet.
PdfGrid childPdfGrid = new PdfGrid();childPdfGrid.Columns.Add(5);for (int i = 0; i < 5; i++){PdfGridRow row = childPdfGrid.Rows.Add();for (int j = 0; j < 5; j++){row.Cells[j].Value = String.Format("Cell [{0} {1}]", j, i);}}// Set the value as another PdfGrid in a cell.parentGrid.Rows[0].Cells[1].Value = childPdfGrid;
If you want to print the PdfGrid one after another please refer the below link for more reference.
http://www.syncfusion.com/kb/2690/how-to-calculate-pdfgrid-table-height
Please let us know if you need any further assistance in this.
Regards,
Karthikeyan.C
If i do the following using your example as a samplePdfGrid parentPdfGrid = new PdfGrid();PdfGridRow parentRow = parentPdfGrid.Rows.Add();PdfGrid childPdfGrid = new PdfGrid();childPdfGrid.Columns.Add(5);for (int i = 0; i < 5; i++){PdfGridRow row = childPdfGrid.Rows.Add();for (int j = 0; j < 5; j++){row.Cells[j].Value = String.Format("Cell [{0} {1}]", j, i);}}parentRow.Cells[0].Value = childPdfGrid;results in ` Can't draw one or more inner grids, no enough space available for it.`Basically in the cell i want to show 2 rows. Row 0 spans 4 columns. Row 1. 4 columns and each column has a valuePasting HTML equivalent of what I want in the cell below<table class="tg"> <tr> <th class="tg-031e" colspan="3">Main</th> </tr> <tr> <td class="tg-031e">sub1</td> <td class="tg-031e">sub2</td> <td class="tg-031e">sub3</td> </tr> </table>
This pdfgrid has many columns, the html table sample is what i want inside a gridrow cell.
This needs to be updated!
- 10 Replies
- 5 Participants
-
JB jb
- Apr 3, 2015 01:28 AM UTC
- Mar 28, 2018 12:22 PM UTC