Hi,
I have buffer with data, which I am presenting as JSP/javascript page.
I want to send the data to the printer in totally different format of the one presented on the screen.
The size of the buffer is not known, and it may take some pages- I want to have special format for the printer: having the date and the name of the columns at the top of each page, and some information at the bottom.
I thought of creating separate jsp page- with the data formatted, which will get as a parameter the page number and the lines in the buffer it supposed to present, and this page will format the information. This page will be exactly like 1 printed page.
The primary page will call this this new jsp in loop with different parameters each time .
Is it possible?
The problem is that I want to have button in the primary page, that in one click, will print ALL the jsp pages in the loop, without even presenting them on the screen. Is it possible to do it? How?
Do you have another solution/idea for this ?