after creating the report pdf. go to configuration > report > choose the report you designed. and change the type to HTML. After that when you display your report in the browser , you can save as html and you got the source as (html ) text file.