TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Goran Bibic
482
2.9k
197.8k
Remove time in itextsharp pdf document for multiple colum c#
Jul 22 2019 4:37 AM
Date time remove time from pdf report need date an payment to be 01.01.2019 without time
if (c == 2) my report is
date payment
01.01.2019 01.01.2019 00:00:00
I try to add this
if (c == 2) && (c == 3) my report is
date payment
01.01.2019 00:00:00 01.01.2019 00:00:00
I try to add d (like on example code) if (c == 2) && (d == 3)
my report is
date payment
01.01.2019 00:00:00 01.01.2019 00:00:00
Some help?
//Adding DataRow
foreach
(DataGridViewRow row
in
AnalitickaKarticaPartneraDataGridView.Rows)
{
int
c = 0;
int
d = 0;
foreach
(DataGridViewCell cell
in
row.Cells)
{
if
(c == 2 && d == 3)
{
PdfPCell cell2 =
new
PdfPCell(
new
Phrase(cell.Value.ToString().Split(
' '
)[0], calibri));
pdfTable.AddCell(cell2);
}
else
{
PdfPCell cell2 =
new
PdfPCell(
new
Phrase(cell.Value.ToString(), calibri));
pdfTable.AddCell(cell2);
}
c++;
d++;
}
}
Reply
Answers (
7
)
how to use exceptionfilter if we have hundred controller mvc
Asp.Net MVC 5 with Mysql Database Entity Framework