So far in my odyssey to build the printing functionality for the AIR
app I'm building, I've run into a dilemma. I have a print view
component which holds the meat of what needs to be printed plus the
header and footer which is made visible and invisible depending on
what page is being printed. The header and footer are separate
components themselves.

My problem, is that I have about ten or twelve different report types
that I need to print and I'm stuck trying to figure out how to go
about this. Each report will use a PrintAdvancedDataGrid to display
its data. I thought initially about changing the print view component
dynamically, but that would involve being able to add columns, assign
them data fields, and name the headers dynamically at runtime, which
I'm not even sure I can do via actionscript though I could be missing
something. That's not even mentioning grouping.

Or, I could simply create a printView object for each report, and
simply call an instance of whatever I need in the doPrint(). This is
the simplest method and what I'll probably end up doing, but I'd like
some advice first. Thanks in advance,

Brian Ross Edwards
Tech-Connect LLC

Reply via email to