Prakashm88
Prakashm88

Reputation: 178

Printing in Adobe Air Applications

I have a requirement to print a bill from the AIR application.

Following are the constraints.

  1. I need to print to a DotMatrix Printer.
  2. I have a complex layout with header, footer and a datagrid with data rolling out to more that one page.
  3. I need to have a template to which I will be passing my object.
  4. The suffice with the usage of Jasper reports, but I have no server side support.
  5. I tried the FlexReport, bentbit and other tools which is optimized for the DotMatrix printers.

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

Answers (2)

Prakashm88
Prakashm88

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

alxx
alxx

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

Related Questions