Tech
Forums
Jobs
Books
Events
Live
Interviews Prep
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
Do not want to see the time in itextsharp report
Shovan Saha
Jun 2 2017 12:05 PM
196
Reply
C#, visual studio 2015, desktop dataentry application:
I have used the code for iTextSharp and found the output. I do not want to see PaymentDate time like "12.00.00AM". Please help me as sample code or example:
//Adding Header row
foreach (DataGridViewColumn column in dataGridView1.Columns)
{
PdfPCell cell = new PdfPCell(new Phrase(column.HeaderText,fontTable));
pdfTable.AddCell(cell);
}
//Adding DataRow
foreach (DataGridViewRow row in dataGridView1.Rows)
{
foreach (DataGridViewCell cell in row.Cells)
{
pdfTable.AddCell(new PdfPCell(new Phrase(cell.Value.ToString(), fontTable)) { Border = PdfPCell.BOTTOM_BORDER, Padding = 5, MinimumHeight = 30, PaddingTop = 5 });
}
}
Output:
I do not want to see PaymentDate time "12.00.00AM". Please help me.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Check base64 string(image) type using C#
how to get files from directory in list_box1 to list_box2?