Solved

Layers printing problem in Netscape

Posted on 2004-08-26
4
145 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
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Article by: Matthew
I am a very big proponent of technology compliance standards and strive to meet such criteria in all of my work. That includes my site, which is 100% XHTML 1.0 compliant as determined by the World Wide Web Consortium. https://www.matthewstevenkel…
It's sometimes a bit tricky to use date functions in Oracle BPEL. I'll explain quickly how you can add N days to the current date. In a BPEL process this can be useful, and you can adapt it to fit your needs. First of all, let's see how to add 1 …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn how to count occurrences of each item in an array.

830 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