Opened 8 years ago

Closed 8 years ago

#464 closed task (fixed)

Implement a 'Print' button for table listings

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: major Milestone: Print package v1.0
Component: net.sf.basedb.print Keywords:
Cc:

Description

There is a problem with the current BASE GUI implementation when printing. Due to the use of <frames> and absolutely positioned content, scrolling happens in a <div> tag when the information doesn't fit inside the visible browser window. This affects printing and browsers will only print the first page since from their point of view that is the only page.

This makes it impossible to print for example list pages since only a given number of lines will fit into a single page.

The current idea is to open a new window and then copy the printable contents into that window. This has the added benefit that it will allow us to get rid of the menu and other things that are generally not needed/wanted in the printed output.

Simply copying the innerHTML is a good starting point, but we probably need to style certain elements a bit differently for better printing.

Change History (2)

comment:1 Changed 8 years ago by Nicklas Nordborg

(In [1870]) References #464: Implement a 'Print' button for table listings

Should more or less work now.

comment:2 Changed 8 years ago by Nicklas Nordborg

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.