473,573 Members | 3,095 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Manipulating data before printing to paper

Hi,

I'm in the situation that i need to print (to paper) some documents from
a database using a website, and i need to manipulate the data on the fly,
but my problem is that i don't know how to do this or if it's even possible.

I need to split the content in to individual pages, so that when it gets
printed via the browser it will be possible for me to print it in a custom
table that provides a design (header/footer) with the company logo etc. around
the data, and this should be done automatically even with mutiple pages.
- Is this possible in any way? I mean, to get the asp to evaluate the text/html
in i.e. a variable, and split it to the correct parts and inserting the header/footer
from a function depending on how much space the content would take on print?

When thinking, i find it pretty unrealistic because of tables, pictures,
fonts etc., but however i hope that there's some kind of hope out there for
me - if anyone have got suggestions that includes client-side scripting combined
with serverside that would be okay too.

Furthermore i would like to know whether or not the following is possible
in any ways:
- Get the current page number and the total amount of pages, so that i could
include it in my header?
- Manipulate the clients configured margins tempoarily, so that all clients
prints with the same margins from the website?
- Remove (or change) the clients browsers default header/footer tempoarily
so that only my own edition is included?

Thank you very much.
--
Regards,
Sune

Jul 22 '05 #1
2 1262
look at style sheets and the @media tag.
Here somethign to get you started.
http://www.darkfalz.com/1066
and
http://www.darkfalz.com/1079

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Sune" <ds*******@vip. cybercity.NOSPA Mdk> wrote in message
news:86******** **************@ dreader.cyberci ty.dk...
Hi,

I'm in the situation that i need to print (to paper) some documents from a
database using a website, and i need to manipulate the data on the fly,
but my problem is that i don't know how to do this or if it's even
possible.

I need to split the content in to individual pages, so that when it gets
printed via the browser it will be possible for me to print it in a custom
table that provides a design (header/footer) with the company logo etc.
around the data, and this should be done automatically even with mutiple
pages.
- Is this possible in any way? I mean, to get the asp to evaluate the
text/html in i.e. a variable, and split it to the correct parts and
inserting the header/footer from a function depending on how much space
the content would take on print?

When thinking, i find it pretty unrealistic because of tables, pictures,
fonts etc., but however i hope that there's some kind of hope out there
for me - if anyone have got suggestions that includes client-side
scripting combined with serverside that would be okay too.

Furthermore i would like to know whether or not the following is possible
in any ways:
- Get the current page number and the total amount of pages, so that i
could include it in my header?
- Manipulate the clients configured margins tempoarily, so that all
clients prints with the same margins from the website?
- Remove (or change) the clients browsers default header/footer tempoarily
so that only my own edition is included?

Thank you very much.
--
Regards,
Sune

Jul 22 '05 #2
> look at style sheets and the @media tag.
Here somethign to get you started.
http://www.darkfalz.com/1066
and
http://www.darkfalz.com/1079

Thank you very much, i will have a look at those examples.
--
Regards,
Sune

Jul 22 '05 #3

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

Similar topics

2
3134
by: Michael Hudson | last post by:
Does anyone (Tim?) have (ideally Python, but I can cope) code implementing the fixed-format algorithm from the Subject: named paper by Burger & Dybvig? Cheers, mwh -- <Erwin> #python FAQ: How do I build X? A: Wait for twisted.X. -- from Twisted.Quotes
5
2612
by: Senthil Kumar | last post by:
hi Group, Iam developing one Component in c#.It will load any kind of image either from Local machine or URL.Finally I do have options for printing and preview. While printing Iam facing the problem as below.And iam unable to figure it out.Do any one come out with good solution is appreciated .And it is a must for me .Because of this...
1
2475
by: G.Esmeijer | last post by:
Friends, I'm (a bit) dissapointed about the printing possibilities in c#. It could also be lack of knowedge. I would like to align a text on the right side of the paper when printing. For example tekst = DateTime.Today.Date.ToString("dd-MM-yyyy"); // asign content to the variable tekst
3
31838
by: D Witherspoon | last post by:
No matter what I do the default paper size is always either A3 or 11 by 8.5 .. Here is the code. Dim dlg As DialogResult pd.DocumentName = "Weld Image" Dim pkPaperSize As New Printing.PaperSize("sdfgsfdg", 850, 1100)
7
2743
by: tm | last post by:
I am trying to print a form using the following code, everything works fine but the margins are not acted upon. What I am I doing wrong? Private Sub CaptureScreen() Dim myGraphics As Graphics = Me.CreateGraphics() Dim s As Size = Me.Size memoryImage = New Bitmap(s.Width, s.Height, myGraphics) Dim memoryGraphics As Graphics =...
9
2883
by: Sukh | last post by:
Hello anyone, I am printing a pre-printed continue paper on dot-matrix printer using vb.net winform. For printing I am creating custom size paper and selecting the same for printing. Everything is going fine on first page but after printing first page it feed some extra paper (3cm paper). So on 3rd page again 3cm mean total 6 cm extra...So...
1
9919
by: Anne DeBlois | last post by:
Hi, I want to programatically set the paper size of a print document. I created a class that inherits PrintDocument, so I can print some database records on 8" x 10" paper. I added this line to my class constructor: Dim customPaperSize As New Printing.PaperSize("8x10", 800, 1000)
0
1609
by: sanjay.hurryup | last post by:
I have a problem with printing . I want to print on a roll paper, a long list, should stop the paper whenever the printing stops. In normal case single paper is used even if it has less to print. I only know to print on a single paper.
0
1242
by: Ripendra007 | last post by:
hi, Can u tell me how can i print the data of datgrid to next page with header column on next paper ? I hav dataset which contains information of groupwise report and bound to datagrid now i want ro print those data on paper but when i m printing those data using window.print() it will print all data contineous and i want to print those data...
0
7777
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...
0
7686
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...
0
8016
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. ...
1
7773
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...
0
8061
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...
0
3730
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...
0
3731
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2197
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
1
1297
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.