Edgewall Software
Modify

Ticket #137 (closed enhancement: worksforme)

Opened 8 years ago

Last modified 20 months ago

Report content converter

Reported by: mrowe@… Owned by: jonas
Priority: normal Milestone:
Component: report system Version: 0.10.2
Severity: normal Keywords: css contentconverter
Cc:
Release Notes:
API 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

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

Download all attachments as: .zip

Change History

comment:1 Changed 8 years ago by anonymous

  • Milestone set to 1.0

Changed 8 years ago by fharvey

Patch to add a print output

comment:2 Changed 8 years ago by fharvey

  • Summary changed from Output reports as PDF to 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:3 Changed 7 years ago by Brett

Why milestone 1.0 this if we having a working patch?

Brett

comment:4 Changed 6 years ago by mgood

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 Changed 6 years ago by cmlenz

#2673 has been marked as duplicate of this ticket.

comment:6 Changed 5 years ago by mapelayo

  • Milestone changed from 1.0 to 0.10.4
  • Version changed from 0.5.2 to 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?

comment:7 follow-up: Changed 5 years ago by ajo

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 in reply to: ↑ 7 Changed 5 years ago by mgood

  • Milestone 0.10.4 deleted
  • Summary changed from Output reports as PDF/HTML to 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 Changed 5 years ago by cboos

  • Keywords mimevuew contentconverter added
  • Milestone set to 0.12

Related to #3332.

comment:10 Changed 20 months ago by rblank

  • Milestone changed from next-major-0.1X to unscheduled

comment:11 Changed 20 months ago by cboos

  • Keywords css added; mimevuew removed
  • Milestone unscheduled deleted
  • Resolution set to worksforme
  • Status changed from new to 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.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from jonas. Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.