Solved

Best Format for Electronic and Print Consumption

Posted on 2001-08-18
4
154 Views
Last Modified: 2013-12-25
I?m writing code that generates a summary report based on user input. I want this report to:

  * Be viewable electronically without additional installation of software by a customer

  * Provide, in printed format, a table of contents referencing page numbers

  * Be based on an format whose specification I can reasonable have my code generate. For example, Microsoft Word format is probably out, since the 'source' format for writing code that generates Word documents is not readily available.

I seek feedback on the best format to choose for this report. HTML is an obvious and simple choice, and I can easily write code to produce attractive and readable markup in a browser. However, this wouldn?t seem to meet the printing requirements. Is there any way to get HTML to meet these requirements? Are there solutions to this dual need in XML?

Any recommendations?

Thanks in advance!

JT
0
Comment
Question by:jamestremain
  • 2
4 Comments
 
LVL 10

Accepted Solution

by:
dij8 earned 200 total points
Comment Utility
If your pages to be printed are to be viewed on the Internet or an Intranet then printing is not going to happen the way you want.  The web is not print media.  There are too many variables to be able to say how something will be printed.  What printer, what fonts are installed on the printer, what orientation is the printer set to, the list goes on and on.  The best way to get around this is to use Adobe Acrobat.  Yes this breaks your first rule.  However, most people have the reader installed already.

Even using Acrobat is not not guaranteed.  You still have no control ove rthe users printer.  If you want it to work on the web then HTML is the only way without additional software.  And HTML is not an option unless you limit the sizes of your pages to a single printable page.  And therefore have lots of pages and each one would need to be printed individually.
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
Comment Utility
Given the constraints of no additional software installation, i don't believe what you want to do is achievable.  

The method I generally recommend in these circumstances is PDF.  However that appears not be an option as it requires the user to have the acrobat reader.

As already pointed out even with PDF, there is still no certainty the the pages will print correctly because of user control of local settings.

AFAIK there is no format which can guarantee this even with additional software because you still connot guarantee the printer will be set up correctly.

Your best option within the constraints is t build printer friendly pages by using a table no more than 550 pixels wide centered in the page without borders or graphics and do as dij8 has already recommended; limit the size of he pages to a single viewable page and use separate WEB pages for each printed page you want.

HTH

Cd&
0
 

Author Comment

by:jamestremain
Comment Utility
Thanks for your overview!
0
 
LVL 10

Expert Comment

by:dij8
Comment Utility
Glad to help.  Thanks for the A.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo‚Ķ
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to count occurrences of each item in an array.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now