Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 6th, 2008, 09:22 AM
Authorized User
 
Join Date: Dec 2005
Posts: 71
Thanks: 10
Thanked 0 Times in 0 Posts
Default Multi Column - HTML printing problem

Hi All,

Problem summary: Un-able to print valid HTML using IE.

Problem description: We are unable to print the valid HTML file from any browser and we have cross checked the file by various validation process to ensure error free and we find the file is error free (well formed).

Kindly let us know the solution.

Any help would be greatful.
ROCXY.


__________________
Thanks,
Rocxy.
 
Old March 6th, 2008, 10:06 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

What do you mean? You are trying to physically print a web page through a printer?

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========
 
Old March 6th, 2008, 10:15 AM
Authorized User
 
Join Date: Dec 2005
Posts: 71
Thanks: 10
Thanked 0 Times in 0 Posts
Default

Hi Parsons,

I was trying to print it to a PDF file. by

Print > Adobe PDF

Please let me know for further clarification.

Any help would be greatful.
ROCXY.





 
Old March 6th, 2008, 10:28 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Hmm. I guess it all depends on what you mean by: Un-able to print valid HTML using IE.

I assume that you mean you are trying to pass a web page from your browser into Acrobat (or are trying to use distiller) but I think this is ultimately a problem of formatting. Websites are designed to be displayed in web browsers and not necessarily in a PDF and since you are relying on an automatic process (Print --> PDF) there isn't much you can do, AFAIK, since your PDF writer decides how the page will be rendered.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========
 
Old March 6th, 2008, 10:46 AM
Authorized User
 
Join Date: Dec 2005
Posts: 71
Thanks: 10
Thanked 0 Times in 0 Posts
Default


Yes! Exactly

I sincerely thank you for the explanation. Can I over come this by proper formating in HTML by specifying the "page-widht" etc... or is there any method that I could follow in HTML coding to get both HTML presentation and PDF print as same.

Please suggest me.

Any help would be greatful.
ROCXY.


 
Old March 6th, 2008, 10:53 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Provided you are using CSS, yes there is a solution (although I am not 100% sure it will work in your secnario). First you should read this article on PPI/DPI Screen Resolution and taking things from the screen to print:
http://www.webdevelopersjournal.com/...s/ajs_ppi.html

Second, CSS2 has a media type that you can use to change the style based upon what the user is doing. One of these types is "Print" which means XYZ style sheet will be used when the user goes to print a page from your website:

http://www.w3schools.com/css/css_mediatypes.asp

hth.


================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
question regarding multi-column.html of chapter 2 mikeni1225 BOOK: CSS Instant Results 9 July 2nd, 2007 06:24 PM
List Tool Multi Column? Vendlus BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 April 28th, 2006 06:39 AM
DataGrid Multi-Column pbyrum Classic ASP Professional 4 October 5th, 2005 06:02 PM
Multi column combo lists c_olinrb Access 4 July 21st, 2005 09:21 AM
multi-column combo myth12345 VB How-To 1 January 3rd, 2005 04:29 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.