Hi,
I have a windows form which contains a logo of the company and gridview which consists of set of records(ex: 200 records) and after that in down there is set of text box and label which i need to print altogether.
Is there any way to Print altogether logo with gridview records and textbox and label???
Thanks,
Prasant
Loading


FroglegRank #1,020 · 1.9K reputationPosted Jul 2, 2012, 11:38 AM EDT
Prasant JinagaRank #2,383 · 594 reputationPosted Jul 2, 2012, 10:14 PM EDT
Prasant JinagaRank #2,383 · 594 reputationPosted Jul 4, 2012, 8:42 PM EDT
I have checked the code its a static one.I have a requirement of dynamic one.I mean if gridview containing 50/100 rows it should print the same.
Do you have any idea on this plzzz..
Thanks,
Prasant
FroglegRank #1,020 · 1.9K reputationPosted Jul 5, 2012, 1:25 AM EDT
Prasant JinagaRank #2,383 · 594 reputationPosted Jul 5, 2012, 8:18 PM EDT
The latest code which u gave its throwing ArgumentNullPointer Exception @ the below line
e.Graphics.FillRectangle(Brushes.LightGray, new Rectangle(dgX, dgY, dataGridView1.Columns[i].Width, dataGridView1.Rows[i].Height));
Can you please check...
Thanks,
Prasant
FroglegRank #1,020 · 1.9K reputationPosted Jul 5, 2012, 9:10 PM EDT
That part is still a static at 5 column
I cannot reproduce the error with my code
Prasant JinagaRank #2,383 · 594 reputationPosted Jul 6, 2012, 1:11 AM EDT
I am running the same code which you have uploaded still its giving an error like ArgumentNullPointer Exception.Can you pls upload the code which is working aat your end.
Thanks,
Prasant
FroglegRank #1,020 · 1.9K reputationPosted Jul 6, 2012, 10:12 AM EDT
Also enter your own amount
I set it at 200, so that for testing I only had to click set number of pages without entering amount each run
Prasant JinagaRank #2,383 · 594 reputationPosted Jul 13, 2012, 1:49 AM EDT