Opened 21 years ago
Closed 14 years ago
#137 closed enhancement (worksforme)
Report content converter
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | report system | Version: | 0.10.2 |
Severity: | normal | Keywords: | css contentconverter |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
The "print-it-out-and-tack-it-to-your-cubicle-wall feature", as Daniel referred to it.
The ability to output reports as PDFs with a similar look to the HTML reports, but without the navigation etc.
Attachments (1)
Change History (12)
comment:1 by , 21 years ago
Milestone: | → 1.0 |
---|
by , 21 years ago
Attachment: | trac-format-print.patch added |
---|
comment:2 by , 21 years ago
Summary: | Output reports as PDF → Output reports as PDF/HTML |
---|
The patch add a output "print"
it's only the report, with no header/footer, etc
from this report, it's easy to generate the PDF (a lot of html2pdf exist)
comment:4 by , 19 years ago
If the goal of this tickets is just to print the reports (and now custom queries) I think this can be closed since the print-media stylesheet already does this. Plus you can output to PostScript by checking the "Print to file" in most standard printer dialogs.
comment:6 by , 18 years ago
Milestone: | 1.0 → 0.10.4 |
---|---|
Version: | 0.5.2 → 0.10.2 |
I think that some kind of report output generator component Interface, that the user could register as a plugin to be listed/used from reports.py could be useful.
With this we could have the "Output report as XXXXX" solved.
where XXXX = { HTML, PDF, XLS, XML, …..}
I've been working to port the patch posted at #2669 to 0.10.2 (http://trac.edgewall.org/attachment/ticket/2669/report-by-xls-for-trac0_9_5.diff and http://sourceforge.net/projects/pyexcelerator), made it work, and then came to this idea.
What do you think about it?
follow-up: 8 comment:7 by , 18 years ago
The change proposed by mapelayo is reflected in this patch:
http://trac-hacks.org/browser/reportpluginpatch/0.10.3/trac-0.10.3-report-plugin.patch
it defines a class ITicketReportRenderer(Interface):
"""Extension point interface for components that implement new report writing formats."""
in trac.ticket.report
this is an example plugin: ExcelReportPlugin
comment:8 by , 18 years ago
Milestone: | 0.10.4 |
---|---|
Summary: | Output reports as PDF/HTML → Report content converter |
Replying to ajo:
it defines a class ITicketReportRenderer(Interface):
Thanks for working on a patch for this, however there is already an IContentConverter
interface which is meant to handle these types of conversions. See the query module's implementation for an example. And also an example of handling the conversion. If you have any questions feel free to stop by the development MailingList or IrcChannel.
Also, this won't make it into 0.10.4 since we reserve enhancements for major releases. It could make it into 0.11 when the patch is ready.
comment:9 by , 18 years ago
Keywords: | mimevuew contentconverter added |
---|---|
Milestone: | → 0.12 |
Related to #3332.
comment:10 by , 14 years ago
Milestone: | next-major-0.1X → unscheduled |
---|
comment:11 by , 14 years ago
Keywords: | css added; mimevuew removed |
---|---|
Milestone: | unscheduled |
Resolution: | → worksforme |
Status: | new → closed |
As the original request is more about a "ready-to-print" HTML, enhancing the @media print
style should be enough (comment:4). I suppose this makes it a worksforme, as for me at least the printed view of a report already looks good.
The more general changes mentioned in comment:6 are covered by #3332.
Patch to add a print output