Notes Ninjas Notes Ninjas
Lotus Notes hints, tips, error messages
Cropped text when printing out long view

Hint Short Cut: Add this to your code & documentation to help you find this page.
http://www.notesninjas.com/#CroppedTextPrint or http://www.notesninjas.com/A555F9/nn.nsf/ByAlias/CroppedTextPrint


Had a problem to solve when creating a Print all view for a web application.





Problem was that occaisionally the text was cropped width ways.

I was quite disappointed with this, seeing as HTML usually handles this ok when formatting text.

I was worried that I was going to have to write javascript or lotusscript to work out the size of rows and then add a html page break .

I discovered the problem was because the $$viewbody was in a position absolute div eg:

#contentDIV {
 position: absolute;
 z-index: 0;
 visibility: visible;
 left: 10px;
 top: 164px;
}

This then overrode the browser's printing formatting.

Getting rid of the position and top and height lines sorted it all out.

Potentially you could use the hide when printing css code to have different css pages for printing and viewing.

 

 Jump to:     Notes Tips
    Lotus Notes Index 
  Register for Tips
Previous Lotus Notes Tip 
    Next Lotus Notes Tip
Your company logo here?
Adam Foster
Free Cash Making Web Site
Free Revenue Earning Blog Site
 Free Revenue Earning Newsletter Site   
Free Search Pages Free Web stats
Free Contact Us page
Cheap .com domain names
 Need a website or 
   Lotus Notes
  problem solved?
Adam Foster
Lotus Notes and Domino 6 Programming Bible by Brian Benz, Rocky Oliver
Covers all the programming techniques, concepts, and languages used with Notes and Domino, as well as the many new features of Domino 6 Thoroughly examines the Notes and Domino role with Java, XML, Web services, and other IBM products and technologies Provides extensive code and examples, many geared to the needs of administrators High-profile authors, known to their audience through conferences and articles Companion Web site shows example applications from the book running on a live Domino server and provides code download.
See at: Amazon.co.uk | Amazon.com |