| Summary: | reportContext.getOutputFormat not working | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Jason Weathersby <jasonweathersby> |
| Component: | BIRT | Assignee: | Birt-ReportEngine-inbox <Birt-ReportEngine-inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | Xiaoying Gu <bluesoldier> |
| Severity: | normal | ||
| Priority: | P3 | CC: | bluesoldier, millvall, wyan |
| Version: | 2.6.1 | ||
| Target Milestone: | 3.7.0 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | Obsolete | ||
|
Description
Jason Weathersby
Since this script is called at generation time, so if the report is fixed-layout, it always return "pdf". If the report is auto-layout, it always return "html". If this script is called at render time, it should return the actually format. Marked as wontfix. In my opinion that makes this call misleading. From script you can get the __format url parameter and at runtime in the viewer it is set to html even with a fixed report. The reason is we execute two task for such a request, the run task has no format while the render task has a format. The beforeFactory is invoked in the run task only. I understand that. Maybe a better option would be to return rptdocument instead of pdf. *** Bug 332906 has been marked as a duplicate of this bug. *** |