Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
C# code and iTextSharp report problem on column size
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Shovan Saha
7y
280
1
Reply
I am new in C#. An desktop application in visual studio 2015, database MS access 2007.
I have used the code as:
//Adding Header row
foreach (DataGridViewColumn column in dataGridView1.Columns)
{
PdfPCell cell = new PdfPCell(new Phrase(column.HeaderText));
pdfTable.AddCell(cell);
}
//Adding DataRow
foreach (DataGridViewRow row in dataGridView1.Rows)
{
foreach (DataGridViewCell cell in row.Cells)
{
pdfTable.AddCell(cell.Value.ToString());
}
}
And Found the result as:
I want these(In iTextSharp Report):
1. ID is based on database. I want a new serial when I will make this report on the left side of ID.
2. PaymentDate column will not show the time.
3. I want to resize every column, change font type and font size.
Please help me in code or example.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
object reference not set to an instance of object c#
rgistartion of clsid