Solved

Layers printing problem in Netscape

Posted on 2004-08-26
4
148 Views
Last Modified: 2010-05-18
Hi All,

In one of my application I am using layers (<DIV> tag). Basically layout is similar to Gantt Chart. I am displaying the Grid format and on the Grid I am overlapping layers to show the information. My current implementation is like this: I am placing the layers at the proper positions (i.e. in Table TD's) and at last I am positioning them using the Javascript. But while printing all the layers are appearing on the top left of the page. Actually they should be printed at the position where I am positioning them using the javascript. Everything is fine when I am viewing it in the Browser.

Thanks in advance.

With Best Regards,
Kamlesh
0
Comment
Question by:kamlesh_agrawal
[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
4 Comments
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 250 total points
ID: 11902436
If you are using positioning attributes, floats and overlayw with z-index your chances of printling the way it looks are zero.  Trying to print tables correctly is also a challenge, but it does not matterbecaue the other stuff is going to mess up printing no matter what you do.

Youe either have to develop an alternate print style sheet to communicate a two dimensional version of the page for the printer, or convert to PDF for printing.  You can post the code; an dperhaps we can suggest how to do some alternate styling, but I can just about guarantee you that there is going to be substantial differences in rendering for print and screen because printers can only work with 2-dimensional specifications.

Cd&
0
 
LVL 2

Expert Comment

by:Epistemo
ID: 11948414
Hi Kamlesh .... what platform are you using and what language?
And COBOLdinosaur is 100% correct on the style.
You using a database for the content storage or is this 100% flatfile?
If so try creating a pdf (on the fly) of the content might be a solution to your problems.

Also try implementing a different style for your print functions.
Here us something:

http://www.alistapart.com/articles/goingtoprint/

Solution is not very simple, like COBOLdinosaur mentioned before.

0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

634 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