473,689 Members | 2,822 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Print Several ASP.NET pages

Jay
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
Nov 18 '05 #1
2 1454
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.asp x?EmployeeID=1" >
<frame src="report.asp x?EmployeeID=2" >
<frame src="report.asp x?EmployeeID=3" >
</frameset>
</html>

If the above is rendered in an aspx page (say, ReportBatch.asp x), you could
use a repeater to generate the frame elements.

HTH,
Nicole
"Jay" <me@somewhere.c om> wrote in message
news:%2******** ********@TK2MSF TNGP15.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
Nov 18 '05 #2
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******** ******@TK2MSFTN GP12.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.asp x?EmployeeID=1" >
<frame src="report.asp x?EmployeeID=2" >
<frame src="report.asp x?EmployeeID=3" >
</frameset>
</html>

If the above is rendered in an aspx page (say, ReportBatch.asp x), you could
use a repeater to generate the frame elements.

HTH,
Nicole
"Jay" <me@somewhere.c om> wrote in message
news:%2******** ********@TK2MSF TNGP15.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
Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2127
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 and strange things is everything works except I cannt see the result of query from database. anyone has idea, please help me out, thanks in advance. below is the code I have, there are several pages of code and I have
16
11429
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 correctly on this site. The site is here: http://askdrray.kabis.net (temporary location) The site is being worked on, and only the front page works right now. Expect constant changes. Ignore everything “below the fold”, as the links there...
0
1014
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 are not printed. Using print preview displays the same result (clipped pages - no multiple pages). In fire Firefox the result is simply one page with as much will fit on it. In IE 6 it prints three total pages. The first page is blank with the...
0
1637
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 Print Preview Control. These pages are made up of varying sized graphics and text, therefore each page is unique but does rely on the content of the previous page to determine the final page layout. My User wants to print ALL pages, pages 1 &...
9
2725
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 SourceFile As String) As Boolean Try
2
1967
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 churn out some blank pages, and some print nothing at all. We're trying to find the commonalities among the 3 groups, but there are none, it's totally random. On some pages that don't print, merely deleting a paragraph of content
9
2751
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 needs to work in IE but FF does the same thing. I tried messing with some media="print" functionality on it but couldn't get any page breaks to happen. I'm guessing there's something in the markup of the page that the browsers don't like, any...
3
1251
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 when I want to print out a copy of the source code of my project (about 38 pages) Version 2.5 acts like it is going to print out the source code but instead prints from several 100 to over 2000 BLANK PAGES pages and no source.
0
1023
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 is that the ranges per sheet can change dramatically (I.e. - from (A1:D20) to (C1:Z490). So far I've tried to create print ranges based on the number of cell functions, and try to print, however the font in some pages can be very small... some...
0
8594
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9076
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8783
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8786
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6454
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5810
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4321
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4547
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2965
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.