Solved

Best Format for Electronic and Print Consumption

Posted on 2001-08-18
4
155 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
ID: 6403185
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
ID: 6404212
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
ID: 6404335
Thanks for your overview!
0
 
LVL 10

Expert Comment

by:dij8
ID: 6404514
Glad to help.  Thanks for the A.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Accessibility and Usability are two concepts that seem to be closely related.  But, too many people seem to have a distorted perception of them. During last five years, those two words have come to the day-to-day work of almost every web develope…
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This video teaches users how to migrate an existing Wordpress website to a new domain.

895 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

14 Experts available now in Live!

Get 1:1 Help Now