how to hide a Check box in the pdfpcell while checking a condition using
ItextSharp in a c#asp.net web application
Context: created a checkox and tried to add the check box to the pdfpcell
using the cellEvent. added the table contains the check box to parent
table pdfpcell using addElement method. how do i make the
checkbox.checked=true using itextsharp on satisfying certain condition
like we can do in asp.net on checkbox control
PdfPTable fslchkbox = new PdfPTable(1);
chkbox = new PdfPCell();
chkbox.HorizontalAlignment = PdfPCell.ALIGN_LEFT;
iTextSharp.text.pdf.events.FieldPositioningEvents fslevents = new
iTextSharp.text.pdf.events.FieldPositioningEvents(writer, ck2);
chkbox.CellEvent = fslevents;
chkbox.Border = 0;
fslchkbox.AddCell(chkbox);
PdfPCell FSLChk = new PdfPCell();
FSLChk.Border = 0;
FSLChk.HorizontalAlignment = PdfPCell.ALIGN_LEFT;
FSLChk.AddElement(fslchkbox);
program.AddCell(FSLChk);
document.add(program);
hello, you have the full solution for this?
ReplyDelete