473,379 Members | 1,220 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,379 software developers and data experts.

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 1250
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.NOSPAMdk> wrote in message
news:86**********************@dreader.cybercity.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
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:...
5
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...
1
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...
3
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...
7
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...
9
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...
1
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...
0
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....
0
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
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...
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...

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.