Referring to the Elements library - Creating a Report / Newsletter

I am trying to find a tool where I can prepare a report.
I would like to be able to get html or php code for the report I have once created.

Do you have a template for this.

With Adobe InDesign I am not sure if I can store things in html or php code …
Storing something in html or php will allow me to insert graphics or bar charts from another database.

Any ideas
Urs E. Gattiker