Window has a report viewer and “print” button. The print button fills in some of the properties on the report then uses the “.print()” method to print the report. Most (perhaps all) of the time, the report data generated from the properties does not show up on the report.
I must be missing something pretty simple… What is it?
The .print() method on the report viewer doesn’t wait for the content to update – it prints whatever you have at that instant. And since property assignment is in the foreground, the viewer can’t act on your assignments until after your event method completes. Use system.util.invokeLater() to call the .print() method a second or so later.