basic structure for exportReport on the client side is ready. TODO: PERL scripting for PDFs :/