I have a gridview containing fileds firstname, last name and location. What i want to achieve is when clicking the button it should print each record details from the gridview on a separate a4 paper. Any ideas will be much appreciated.
ps: I dont want to print the entire gridview content on single page. for example if the gridview has 10 records, I need to print each record's firstname, lastname and location on a separate A4 sheet.
sampath.n
Member
54 Points
62 Posts
printing data from gridview on A4 sheet
Feb 23, 2012 10:50 AM|LINK
Hi
I have a gridview containing fileds firstname, last name and location. What i want to achieve is when clicking the button it should print each record details from the gridview on a separate a4 paper. Any ideas will be much appreciated.
ps: I dont want to print the entire gridview content on single page. for example if the gridview has 10 records, I need to print each record's firstname, lastname and location on a separate A4 sheet.
Thanks
usman400
Contributor
3503 Points
721 Posts
Re: printing data from gridview on A4 sheet
Feb 23, 2012 10:57 AM|LINK
U should implement it using crustal reports
sampath.n
Member
54 Points
62 Posts
Re: printing data from gridview on A4 sheet
Feb 23, 2012 11:02 AM|LINK
Hi Usman
Could you please give me some examples or any sample code. I have never used crystal reports.
Thanks
usman400
Contributor
3503 Points
721 Posts
Re: printing data from gridview on A4 sheet
Feb 24, 2012 08:28 AM|LINK
buddy I too have not worked alot in crystal reports, in visual studio 2010 or later, crustal reports are not
built in, so you have to download them if you are using any latest versiosn of Visual Studio
Qin Dian Tan...
All-Star
113532 Points
12480 Posts
Microsoft
Re: printing data from gridview on A4 sheet
Feb 27, 2012 07:14 AM|LINK
Hi,
You can read the datasource of GridView and print them row by row separately:
http://www.dotnetcurry.com/ShowArticle.aspx?ID=92
http://www.daniweb.com/web-development/aspnet/threads/161217
Thanks,
If you have any feedback about my replies, please contactmsdnmg@microsoft.com.
Microsoft One Code Framework