Edgewall Software
Modify

Opened 20 years ago

Closed 14 years ago

#137 closed enhancement (worksforme)

Report content converter

Reported by: mrowe@… 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)

trac-format-print.patch (8.0 KB ) - added by fharvey 20 years ago.
Patch to add a print output

Download all attachments as: .zip

Change History (12)

comment:1 by anonymous, 20 years ago

Milestone: 1.0

by fharvey, 20 years ago

Attachment: trac-format-print.patch added

Patch to add a print output

comment:2 by fharvey, 20 years ago

Summary: Output reports as PDFOutput 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:3 by Brett, 19 years ago

Why milestone 1.0 this if we having a working patch?

Brett

comment:4 by Matthew Good, 18 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:5 by Christopher Lenz, 18 years ago

#2673 has been marked as duplicate of this ticket.

comment:6 by mapelayo, 17 years ago

Milestone: 1.00.10.4
Version: 0.5.20.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?

comment:7 by ajo, 17 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

in reply to:  7 comment:8 by Matthew Good, 17 years ago

Milestone: 0.10.4
Summary: Output reports as PDF/HTMLReport 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 Christian Boos, 17 years ago

Keywords: mimevuew contentconverter added
Milestone: 0.12

Related to #3332.

comment:10 by Remy Blank, 14 years ago

Milestone: next-major-0.1Xunscheduled

comment:11 by Christian Boos, 14 years ago

Keywords: css added; mimevuew removed
Milestone: unscheduled
Resolution: worksforme
Status: newclosed

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.