View Full Version : Printing the grid
srofewd
11-05-2004, 06:49 AM
Is there any way to print the complete contents of the grid control?
mmeyer
01-23-2006, 05:03 AM
I am using the grid to display report information in a Dashboard and the users are now asking for print capabilities.
I would think this would be a common item. Does anyone have any suggestions?
Thanks
bfagan
01-23-2006, 06:31 AM
I make LzBrowser calls to launch a new browser that calls a Java servlet that runs iText to generate PDFs.
mmeyer
01-24-2006, 08:22 AM
How to you actually process the data, are you passing the XML or what gets passed to the servlet to make this happen?
bfagan
01-24-2006, 08:36 AM
I do something like:
<button x="440" y="200"
onclick="LzBrowser.LoadURL('http://localhost/report?'+'mrn='+global.mrn+'&visit_id='+global.vis it_id+'&preview=true&private_key='+privatekey.getp ointer().xpathquery('/root/privatekey/text()'), '_blank')"
text="Print Preview" />
On the backend, I have the servlet called from the above URL make a JDBC call based on the parameters in the query string and generate the PDF.
mmeyer
01-24-2006, 08:40 AM
Thanks.
I am assuming the lastest version of Lazlo doesn't have any print enhancements for the grid. Have you heard of anything for the future?
bfagan
01-24-2006, 08:46 AM
AFAIK there's nothing in Laszlo that's geared specifically towards generating something printable. That's why I do my print generation on the server side and launch in an external browser.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.