473,659 Members | 2,683 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2203
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***@discussi ons.microsoft.c om> wrote in message
news:E2******** *************** ***********@mic rosoft.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
328
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 rundll32.exe and process() methods in vb.net, but it is opening the print dialog box everytime. I dont want this to happen. Any help is greatly appriciated. Thanks
1
3236
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 summarily print many HTML docs (say, over 5) I get them out of order, some don't print, and some print all unformatted. It's the strangest thing I've seen.. I've always checked to make sure the document was finished loading before issuing the...
7
2376
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 application is to track paperwork/items and uses barcodes to easily identify which paper/item belongs to which record. Is there an easy way to generate barcodes using Python -- considering the application will be printing to a printer at the...
1
1594
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 specifications, and print a sheet with the picture and the relative data. I'm trying to write some code to allow me to bring up the products and add them to a batch of about 20 different product sheets to print at one time, rather than the user having to hit...
3
1699
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 form that will store all the relevant information i need for a paper backup system so i can print out any report i want that ive got selected. Though im wondering what code i would need for the button that i need thats listed below. Needs to...
2
1537
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 application when I run the executable (or) by giving the option 'gui' Interactive: --------------- C:\Sample\Main.exe (or)
1
3264
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 details linked to each heder record all appear on one report rather than on seperate reports). I have a print flag in my header table to identify if a record has been printed or not. I can make a query to create a table of the header records not yet...
0
1625
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 method to export multiple pdf delivery order into a single pdf for batch printing. How should I export multiple DO into one single document? Any reference? Thanks, JiaFang
22
8955
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 set to take the parameter value from a form that I use to preview and print reports. I have to repeatedly print that report using a different value each time. I want to set it up to batch print, taking the values from a list in a table. Thanks...
0
8427
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, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8332
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
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...
0
8746
jinu1996
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8627
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...
0
7356
agi2029
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6179
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
5649
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();...
2
1737
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.