Reputation: 178
I have a requirement to print a bill from the AIR application.
Following are the constraints.
Is there a alternative to get the above requirements done. Is there any alternative similar to that of jasper reports without going for a server.
Thanks in advance.
Upvotes: 0
Views: 1994
Reputation: 178
Guys i used the HTML to print from the JavaScript. I made templates in HTML with delimiters matching the print layout, then i passed a Associative Array with necessary details to be printed and passed it on to HTML and printed it from there. Thanks for your replies guys..
Upvotes: 0
Reputation: 9897
You don't need server to do printing, look at PrintJob class. You can print any sprites on page, and for tables there is PrintDataGrid class with paging support. So, if you can render your complex layout, you can print it. You may want to install some virtual printer for experimenting (I'm using Primo PDF, but there are others.)
Upvotes: 1