Replacing the Print Screen Capability

When you use the browser’s Print button, or you use the Print Page button at the top or bottom of ExtraView’s main screens, the printout is handled completely by the browser. Many times this is sufficient, but often this printout is not formatted well. For example, you may have an add or edit screen that prints too wide for a printer in portrait mode, or you may not like the way that the browser cuts off the text within text area and similar fields, printing only the visible part of the text as opposed to the complete text.

There is an optional JavaScript method that will allow you to provide an alternative to the standard JavaScript window.print() method. This method is only provided for the add and edit screens.

If you provide this method, it is entirely up to you to define what you will do as an alternative; this may include calling a server function or handling your alternative print function completely in JavaScript. The signature for the method, should you provide this in the UserJavaScript.js file is:

function printAddEditPage() {
  // here is alternative code to print an add or edit screen
. . . 
. . .
}