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

FroglegPosted Jul 2, 2012, 3:38 PM
Prasant JinagaPosted Jul 13, 2012, 5:49 AM
FroglegPosted Jul 6, 2012, 2:12 PM
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 JinagaPosted Jul 6, 2012, 5:11 AM
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
FroglegPosted Jul 6, 2012, 1:10 AM
That part is still a static at 5 column
I cannot reproduce the error with my code
Prasant JinagaPosted Jul 6, 2012, 12:18 AM
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
FroglegPosted Jul 5, 2012, 5:25 AM
Prasant JinagaPosted Jul 5, 2012, 12:42 AM
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
Prasant JinagaPosted Jul 3, 2012, 2:14 AM