473,395 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Batch printing from a ASP.NET Webapp?

Hi,

I'm currently working on a webapp that generates reports for the user and i was wondering if there was a way to do batch printing.

I was playing around with the idea of sending the reports to a browser window and then starting the print job from there, but i need to know if i can insert a page break or something so that the printer will know when to start a report on a new page.

Is this possilbe? Any help would be greatly appreciated.

Nov 18 '05 #1
2 2186
Hi Ardie,

Just put this wherever you want a page break:

<p style="page-break-before: always" />

You won't see it on screen, but you will see it in the prinout. Beware
though, it may only work in IE.

Eric
"Ardie" <Ar***@discussions.microsoft.com> wrote in message
news:E2**********************************@microsof t.com...
Hi,

I'm currently working on a webapp that generates reports for the user and i was wondering if there was a way to do batch printing.
I was playing around with the idea of sending the reports to a browser window and then starting the print job from there, but i need to know if i
can insert a page break or something so that the printer will know when to
start a report on a new page.
Is this possilbe? Any help would be greatly appreciated.

Nov 18 '05 #2
Eric,

Thanks for your help! I used that CSS tag in an external style sheet and it works beautifully!

What i ended up doing is outputing all the reports into one, multi-page html file and added that tag after each "report".

Also, i tested it on Firefox Win/Mac, and on IE6 and it works.
Thanks again for the tip.

Ardie.

"Eric" wrote:
Hi Ardie,

Just put this wherever you want a page break:

<p style="page-break-before: always" />

You won't see it on screen, but you will see it in the prinout. Beware
though, it may only work in IE.

Eric

Nov 18 '05 #3

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

Similar topics

0
by: nawwu | last post by:
I would like to know how to print HTML Pages in batch i.e without the user intervention, I want to setup all the printing parameters like file name and printer name thru the code. I tried it using...
1
by: Mitchell Vincent | last post by:
I've had this trouble in every language I've tried for Windows. Apparently the problem is with the underlying controls or something.. When I loop through and use a hidden web gadget to load and...
7
by: Burhan | last post by:
Hello Group: I am in the planning stages of an application that will be accessed over the web, and one of the ideas is to print a barcode that is generated when the user creates a record. The...
1
by: Parasyke | last post by:
Thanks for any help.. I currently have a database with about 100 products with picture links in an external folder. I have a form from which I can successfully display a product, its...
3
by: Nixeh | last post by:
Hi guys, ive been using access on and off now for about 3 years but im currently working on a database for work. Ive got the database all sorted and is currently storing 1000records. Ive created a...
2
by: psbasha | last post by:
Hi, I have created a Executable ( Exe) of an Python application using Py2Exe.I have implemented for Batch or Interactive application run in the source code.But I able run the interactive...
1
by: Casey Skousen | last post by:
I want to be able to batch print all records in a header table that have not yet been printed. This should be simple, but due to the format of the report, I cannot just print all records (the...
0
by: jiafangsee | last post by:
Hi, I'm using Visual Studio 2005 and I have a web application where i generated some delivery order in crystal report then it's exported to pdf for viewing and printing. Now I need to develop...
22
Missionary
by: Missionary | last post by:
I need to batch print reports. I've looked at past posts about batch printing, but I don't know visual basic, so I'll need some coaching. I have a report based on a parameter query. I have it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
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,...
0
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,...
0
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...
0
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...

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.