Printing
-
Help. New to asp.net. I have a webpage with 2 gridview grids that are populated from database. Each grid represents 1 week of a 2 week pay period. The employees are selected from a listbox that is databound from my-aspnet-user database. I can manually select each employee and click on print button and all is good. Printout looks good. My issue is, is there a way to set it up that I can click print once and have all the separate pay info printed for each employee in the list.
-
Help. New to asp.net. I have a webpage with 2 gridview grids that are populated from database. Each grid represents 1 week of a 2 week pay period. The employees are selected from a listbox that is databound from my-aspnet-user database. I can manually select each employee and click on print button and all is good. Printout looks good. My issue is, is there a way to set it up that I can click print once and have all the separate pay info printed for each employee in the list.
-
Just create a loop that iterates through each item in the listbox, and print the data for that employee.
Yeah but that is the problem. Using a loop to go thru employees, do I have to bring up a webpage for each one and then hit print 50 + times. Need a way to do it once. Example would be awesome as am fairly new to asp. Thank you in advance.
-
Yeah but that is the problem. Using a loop to go thru employees, do I have to bring up a webpage for each one and then hit print 50 + times. Need a way to do it once. Example would be awesome as am fairly new to asp. Thank you in advance.
-
Help. New to asp.net. I have a webpage with 2 gridview grids that are populated from database. Each grid represents 1 week of a 2 week pay period. The employees are selected from a listbox that is databound from my-aspnet-user database. I can manually select each employee and click on print button and all is good. Printout looks good. My issue is, is there a way to set it up that I can click print once and have all the separate pay info printed for each employee in the list.
This sounds to me like you want to generate a report. You would use the values in the listbox and some date range to generate the report. Do you have Crystal Reports or something installed ? What version of Visual Studio are you using? Where are you storing your data? SQL server?
-
Yeah but that is the problem. Using a loop to go thru employees, do I have to bring up a webpage for each one and then hit print 50 + times. Need a way to do it once. Example would be awesome as am fairly new to asp. Thank you in advance.
Unfortunately I do not know a way to open 50 pages automatically and have them print automatically. The best you could do if it needs to be done on web pages is to use simple javascript command:
window.onload = function() { window.print(); }
Director of Transmogrification Services Shinobi of Query Language Master of Yoda Conditional
-
This sounds to me like you want to generate a report. You would use the values in the listbox and some date range to generate the report. Do you have Crystal Reports or something installed ? What version of Visual Studio are you using? Where are you storing your data? SQL server?
I'm using vs2013 ultimate. Don't have crystal reports though. Looking at reportviewer but can only figure out on how to do one payday report. Not sure if possible either way. Was thinking it would be nice if I could some how send all pages to pdf and then print it that way. I'm using Vb as code. And Mysql for database.