Advertisement
7_2009-2012 Complete Applications #227613

Goodbye Crystal Reports, I mean it this time!

An update to a previous submission of mine, this code includes a control panel (that doesn't print out) that will allow the user to increase or decrease the amount of space between their reports if my CSS page break does not work for some reason. This is a simple trick more than it is a revelation. Why you don't see more of this I don't know. Basically, I have included an example of how to use a recordset loop like you would use to display a table and a counter, some simple math and CSS to create reports that print beautifully without the need for Crystal or any other report plug-in. The basic premise is this: I wanted to print the report on 8 1/2 X 11 sheets of paper. I first tried to use the page break capabilities lauded in CSS but that did not work. Finally I found that the printable area of my report (vertically) was almost exactly 910 pixels on the screen so I impemented a counter and absolute positioning to make every layer on my report top at (counter(i)*910) + actual_position_on_first_page . Get it? Pretty easy I know, but have you ever seen it done before? There, I rest my case.

AI

Shrnutí AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Zdrojový kód
original-source
Upload
Původní komentáře (3)
Obnoveno z Wayback Machine