build identifier: 2.5.2.v20100106

reportcontext.getoutputformat return pdf when preview in web viewer

reproducible: always

steps to reproduce:
steps to reproduce:
1. insert a label.
2. in onprepare, input this.text=reportcontext.getoutputformat();
3. preview in web viewer

current behavior:return pdf

expected result: return html
the onprepare is invoked in run task only and in that task there is no output format.
reopen it.
originally get html but now it changed to pdf
set to invalid.
c