Any workaround for printing repeating backgrounds?

We have an HTML page that displays a bunch of nice bars using divs and repeating backgrounds. We are preparing a report on this, which can be printed nicely, but it may take some time, because we do not have a reporting system. As an interim solution, we would like to make the HTML version printable. The backgrounds from the divs are the only issue and they don't print due to the default setting (which cannot be enabled since workstations are locked).

I found it working for printing background images, but that doesn't work when the background needs to be repeated.

Is there any other work that might help? I am also trying to insert an image inside the immersion and stretch it, but that throws away all other relative positions and turns out to be very difficult to fix. However, I am still looking at it.

+1


source to share


4 answers


I've used this ActiveX component in situations where controlling the printer's output was absolutely necessary (think stickers on prints, etc.).

You want: printBackground



However, this is not due to their free license, but perhaps the cost of that license outweighs the other work in terms of implementation time.

Disadvantage: IE only.

0


source


If you can educate your users, there is an option in the IE and Firefox print dialog that is labeled "Include Background Images" or "Print Background Images"



This will include repeating background images.

0


source


I could not download the link and I may not be understanding the problem correctly, but ...

This is more of a job than a solution, but can you make one image that just repeats? Or at least repeating (for browser variables and screen sizes) but large enough to be "correct" for printing (which is much more standard)?

0


source


The easiest way I can think of is to have another print style sheet that uses standardized container-like images printed on paper.

The display style sheet will continue to use duplicate images, which will not hinder performance because the full images loaded into the print style sheet will only be loaded when the page is sent to the printer.

... at least what the HTML spec says should happen. If this is indeed the case, I cannot be 100% sure.

0


source







All Articles