I have an application that uses the DataGrid to list several employees. You click on a button associated with an employee to display a report on one employee in a popup window. From that report you can print it. The report is semi-generated -- basically filling in some fields from a database. The report is fairly complicated, involving several tables and datagrids.
I have the need to print the reports for several employees all at once, rather than having to display each employee's report one at a time. The report itself is an aspx page, say report.aspx. Is there anyway I can fill in report.aspx for each employee, saving each report in one object that can then be printed. You get the idea.
Thanks. Jay 2 1437
Jay,
Browsers don't allow much control over printing. Unless you're willing to
use an ActiveX control or other client-side component to facilitate batch
printing, your only real option for single-interaction printing of this type
of batch is to use a frameset. This frameset would have one frame per
employee, with each frame's source being your report.aspx page. For
example, you might end up with the following HTML for a given batch:
<html>
<head></head>
<frameset rows="*,*,*">
<frame src="report.aspx?EmployeeID=1">
<frame src="report.aspx?EmployeeID=2">
<frame src="report.aspx?EmployeeID=3">
</frameset>
</html>
If the above is rendered in an aspx page (say, ReportBatch.aspx), you could
use a repeater to generate the frame elements.
HTH,
Nicole
"Jay" <me@somewhere.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
I have an application that uses the DataGrid to list several employees.
You click on a button associated with an employee to display a report on one
employee in a popup window. From that report you can print it. The report
is semi-generated -- basically filling in some fields from a database. The
report is fairly complicated, involving several tables and datagrids.
I have the need to print the reports for several employees all at once,
rather than having to display each employee's report one at a time. The
report itself is an aspx page, say report.aspx. Is there anyway I can fill
in report.aspx for each employee, saving each report in one object that can
then be printed. You get the idea.
Thanks. Jay
Nicole,
That's not a bad idea!! I think it should work.
Thanks. Jay
"Nicole Calinoiu" <ngcalinoiu REMOVETHIS AT gmail DOT com> wrote in message news:u5**************@TK2MSFTNGP12.phx.gbl...
Jay,
Browsers don't allow much control over printing. Unless you're willing to
use an ActiveX control or other client-side component to facilitate batch
printing, your only real option for single-interaction printing of this type
of batch is to use a frameset. This frameset would have one frame per
employee, with each frame's source being your report.aspx page. For
example, you might end up with the following HTML for a given batch:
<html>
<head></head>
<frameset rows="*,*,*">
<frame src="report.aspx?EmployeeID=1">
<frame src="report.aspx?EmployeeID=2">
<frame src="report.aspx?EmployeeID=3">
</frameset>
</html>
If the above is rendered in an aspx page (say, ReportBatch.aspx), you could
use a repeater to generate the frame elements.
HTH,
Nicole
"Jay" <me@somewhere.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
I have an application that uses the DataGrid to list several employees.
You click on a button associated with an employee to display a report on one
employee in a popup window. From that report you can print it. The report
is semi-generated -- basically filling in some fields from a database. The
report is fairly complicated, involving several tables and datagrids.
I have the need to print the reports for several employees all at once,
rather than having to display each employee's report one at a time. The
report itself is an aspx page, say report.aspx. Is there anyway I can fill
in report.aspx for each employee, saving each report in one object that can
then be printed. You get the idea.
Thanks. Jay This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: weiwei |
last post by:
HI
I am having a problem with print friendly function with asp, I have
download some code regard with print friendly,
it works fine with static html information, however, I have the
dynamic pages...
|
by: Neo Geshel |
last post by:
I'm helping on a web site, and it's got our knickers in a knot. We're
using the same basic CSS files (with mods) and same headers as from our
other sites, but the "print preview" won't work...
|
by: Phil |
last post by:
When I print an aspx page built in Asp.Net 2.0 (c# - Visual Studios 2005) the
resulting print page is cut-off. Anything that spans too far to the right,
or to far down is clipped - multiple pages...
|
by: ShaneO |
last post by:
There have been similar questions raised in the past, however no answers
seem to have been provided, so I thought I'd give it a go.
Scenario 1:
My Windows Forms app generates (say) 10 pages in a...
|
by: Scott M |
last post by:
I'm printing a directory of about 500 multi-page tifs to a high speed
printer and the spooler process is killing me!!!
here is a little code.....
Public Function PrintImage(ByVal...
|
by: jen6575 |
last post by:
Hello,
I have a client who wants their website to print exactly as it looks
on the screen. Yes, exactly. No hiding anything. In IE6, some pages
print perfectly fine, some print fine but also...
|
by: xprotocol |
last post by:
Trying to print a web page that scrolls to right a bit. I would think
IE would page break by default when it gets to the end of the sheet,
but it doesn't, it just cuts off the print. This only...
|
by: Hutch |
last post by:
PythonWin has been a very good ide from early version thru 2.4.
All work ok on THREE of my computers with THREE different HP printers.
Now comes 2.5.
Every thing seems to work the same except...
|
by: deve8ore |
last post by:
Hello, I have a workbook with ~ 20 sheets, all which upload with different data every week. We have some "old school" managers that are still requesting hard copies of each sheet.... problem for me...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |