Solved

Formatted Printing

Posted on 1997-09-15
11
186 Views
Last Modified: 2013-12-25
I have created a Web Site that loads in text from a UNIX server and displays it to the Clients browser (that is the extremely simple desc).  Anyway, the text being imported uses the first character of each line as a FORMATTING code.  So when being printed through UNIX, the pages are formatted elegantly. I am using VB Script to parse through each line... so when I hit page 2, I can easily change the font and color and it appears nicely in the browser.  HOWEVER, I cannot PRINT elegantly.  Page 2 ends up on page 4, etc.  I have already done some research and found that "Printer Extensions" are currently being discussed/developed for future "Internet Standard HTML releases" (which is not soon).  So my question is can anyone recommend an easy way of getting my text file printed and formatted the way I would like?
0
Comment
Question by:MLHAMMEL
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
11 Comments
 
LVL 1

Expert Comment

by:Hose
ID: 1855019
Sadly, although controls for pages' appearance have increased in the past year, there have been little control over the printing.

Your best bet is to get Adobe Acrobat and put your pages in that format.  Of course, that pretty much eliminates your dynamic abilities, since I'm not sure if PDF's are that easy to create inside programs.  Other than that, you might want to perfect the printing style on one browser and recommend that people wishing to print use that browser.  Or wait until HTML 4....  :)  Good luck.
0
 

Author Comment

by:MLHAMMEL
ID: 1855020
Thanks for the answer but that doesn't solve my problem.  How do you create a PDF file - that would solve it...  Any help?
0
 
LVL 2

Expert Comment

by:sgeiger
ID: 1855021
You will need to get Adobe Acrobat (full version,not just the reader).  I think that it costs around $40 - $50 (but don't quote me).  Go to http://www.adobe.com for more info.

Scott

0
Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

 
LVL 4

Expert Comment

by:unicorntech
ID: 1855022
There is no easy way to do this - Hose had the right idea. I know it doesn't help but that is the truth.

Jason
0
 

Author Comment

by:MLHAMMEL
ID: 1855023
unicomtech - I cannot reward your answer as it is a comment.  I do not believe that there is no easy way to do this...  I do believe that there is no easy way for myself and the people who have read this so far.  So I will leave this question open.  Hopefully someone else has already gone through this and can provide more help...  Otherwise, I will be taking sgeiger's advice and purchasing the full Adobe Acrobat.

Thanks all.

0
 
LVL 2

Expert Comment

by:sgeiger
ID: 1855024
MLHAMMEL, before you go out and buy Acrobat, I would be interested in looking at the HTML code that is produced.  Can you post the address to this page?

Scott
0
 

Author Comment

by:MLHAMMEL
ID: 1855025
Unfortunately, my web sites are protected by a firewall.  However, I could e-mail you the source of the file I am printing out.
0
 

Author Comment

by:MLHAMMEL
ID: 1855027
martike - I greatly appreciate that you have taken the time to read my question but this is not an answer - you have supplied a comment.  As stated in the question, not only do I totally understand that printer formatting codes for html do not exist, I have the WWW Printer Extension specs (proposed new elements) document explaining how it should work in the future.  The problem is I need a solution now and the only one who has steered my in an appropriate direction is sgeiger.  He thinks that I can control the document printing if I use Adobe Acrobat.  Another possible solution provided my a co-worker is Cold Fusion - Crystal Reports.  So again, thanks for your time and effort.  
0
 
LVL 2

Expert Comment

by:sgeiger
ID: 1855028
Mark, I would not go with the crystal reports.  Although it is a good application, adobe has an advantage.  They provide a reader for free.  So anyone can read the file if they have access to the page and if they have adobe reader.  Crystal is good, but I don't know if they have a free reader.  So from a cost stand point and time stand point adobe is better, you can download the reader in a matter of minutes.  There are many sites that use this format.  In fact that was how I got my tax forms last year.  And it prints very nicely, which is the solution you are aiming for.

Scott
0
 

Author Comment

by:MLHAMMEL
ID: 1855030
good ideas...

It really sucks that HTML can't send page breaks to the printer!

I think there should be a way to disperse the points to each person who has commented on this matter.


0
 
LVL 1

Accepted Solution

by:
clambake earned 200 total points
ID: 1855031
I dunno about IE, but you can very easily simulate page breaks in Netscape by creating tables with height=100%.  This will reformat on screen to make the table take up the available browser window, and print one table on a page.  

Just try:

<html>
<body bgcolor="#FFFFFF" text="#000000">

<table height=100%>
      <tr><td>Foo</td></tr>
</table>

<table height=100%>
      <tr><td>Foo 2</td></tr>
</table>

</body>
</html>

Embed tables, use the <pre> tag, or shoot straight HTML in there for all your formatting.  

Be warned that if the content of the table is more than a page, the wrap will not be controllable.  Leave nice margins.
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

726 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