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

Web generated reports

I have a client that wants a web based application. One of the requirements
would be to print a report from the web page. I need to be able to produce
the page on paper as I present it on the screen - without the usually added
web page headers at the top / bottom of the page.

I know there is no way to guarantee how a browser will render something, but
there has to be some way to improve my chances to get the report as shown
on screen.

Would someone be so kind as to give me some hints - or possibly point me at
some tools?

tia
---Michael

Jul 23 '05 #1
4 1583
On 04.10.4 6:54 PM, Michael Satterwhite wrote:
I have a client that wants a web based application. One of the requirements
would be to print a report from the web page. I need to be able to produce
the page on paper as I present it on the screen - without the usually added
web page headers at the top / bottom of the page.
The headers and footers are an optional feature in some browsers, but as the
web author you have no control over this.

You should also bear in mind that HTML is not a print medium per se. Your
efforts to make the page look exactly the same on paper as it does on the
screen are basically doomed.
I know there is no way to guarantee how a browser will render something, but
there has to be some way to improve my chances to get the report as shown
on screen.
Well why don't you generate the reports as PDF files instead?
Would someone be so kind as to give me some hints - or possibly point me at
some tools?


PDF modules are available for most if not all varieties of server.

Phil
--
Philip Ronan
ph***********@virgin.net
(Please remove the "z"s if replying by email)
Jul 23 '05 #2
In article <p7******************@fe2.texas.rr.com>, satterwh.X$NO$S
$P**@weblore.com enlightened us with...
I have a client that wants a web based application. One of the requirements
would be to print a report from the web page. I need to be able to produce
the page on paper as I present it on the screen - without the usually added
web page headers at the top / bottom of the page.

CSS @media is your friend.
Make those parts invisible for print media.

--
--
~kaeli~
When a clock is hungry, it goes back four seconds.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #3
Quoth the raven kaeli:
In article <p7******************@fe2.texas.rr.com>, satterwh.X$NO$S
$P**@weblore.com enlightened us with...
I have a client that wants a web based application. One of the
requirements would be to print a report from the web page. I need
to be able to produce the page on paper as I present it on the
screen - without the usually added web page headers at the top /
bottom of the page.


CSS @media is your friend. Make those parts invisible for print
media.


As Philip already pointed out, those parts are a function of the
browser, not of the web page. Authors have no control over the user's
print page setup.
File > Page Setup > Margins, headers and footers

Though, a print media stylesheet can do other really neat stuff...

--
-bts
-This space intentionally left blank.
Jul 23 '05 #4
On Mon, 04 Oct 2004 17:54:29 GMT, Michael Satterwhite
<sa*****************@weblore.com> wrote:
Would someone be so kind as to give me some hints - or possibly point me at
some tools?


This is good
http://www.meadroid.com/scriptx/index.asp

It's an ActiveX for IE only, but if you can live with that, then it
does what you need and does it well. I've used it a lot for intranet
work.

--
Smert' spamionam
Jul 23 '05 #5

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

Similar topics

0
by: Oxmard | last post by:
This is on 9iAS R1 patch15: We are calling all out reports from forms. We already have a number of forms that call reports that are using the reports servlet. All the reports come out in pdf...
0
by: Archana | last post by:
I'm using .net crystal reports export the reports to the html format. When in debug mode and viewing the html file through my WEb Application the following exception is thrown when I try to using...
1
by: Dave | last post by:
I know there is some Crystal Reports functionality in .NET but I was wondering if it was possible to actually schedule Crystal Reports dynamically using csharp code and/or generate reports...
0
by: Nathan Ernst | last post by:
I have a pretty simple XSD schema: ******************************************** * XSD SCHEMA ******************************************** <?xml version="1.0" encoding="utf-8" ?> <xs:schema...
1
by: =?Utf-8?B?Sm9obiBCdW5keQ==?= | last post by:
Hello all! I have code that is navigating to a site, logging in, and submitting several queries that generate excel and access reports, these reports automatically open upon completion. What I want...
1
by: popwhub | last post by:
I am having problems printing some reports from my application that are generated from temporary tables. The application has an Access FE and a SQL Server BE. The current method uses a temporary...
1
by: khushbu shah | last post by:
C# ASP.Net Note:- column names are dynamic based on report. commn function is used for number of reports. private void exportDataTableToCsv(DataTable formattedDataTable, string filename) ...
0
by: uxpalan | last post by:
Hi I am trying to parse the contents of the PDF with iTextSharp using : PdfReader reader = new PdfReader("Test.pdf"); reader.GetPageContent(pageNumber); byte pageContentByteArray; I am...
18
by: 200dogz | last post by:
Hi, I have a aspx page that generates reports with the data it gets from databases. It used to work quick and fine until recently when a file is generated it gets killed a few seconds after...
3
by: raghulvarma | last post by:
Consider the following scenario. Currently a .Net application is used to generate reports. The end user needs the reports twice in a day.So he runs the application at scheduled time for report...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
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
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?
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...
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,...

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.