Opening report file after generating it

Just a small feature which can save you some time during the report development.

When you develop reports you usually have a sort of template to generate report from and some test data to see how the report is generated. Once you’ve generated a report file – you need to look through it if it’s something like PDF.

The following java code:
Desktop.getDesktop().open(new File(‘report_file_path’));
will open the generated file based on the associations of your window system and will save your some time.

This works at least for Explorer in Windows and Gnome in Linux.