Opened 9 years ago

Closed 9 years ago

#443 closed defect (fixed)

Plots no longer allow printing either from toolbar or context menu

Reported by: butler Owned by: butler
Priority: major Milestone: SasView 3.1.0
Component: SasView Keywords:
Cc: Work Package: SasView Bug Fixing

Description

As noted by Steve King during 3.1.0 release testing, neither the print icon on the toolbar nor the print or print preview from the context menu work any more.

Change History (3)

comment:1 Changed 9 years ago by butler

Looks like matplot lib messed us over again. In fact apparently it no longer supports printing direcly at all and all printing will need to be through wx native printing. thus FigureCanvas.Printer_Print and Printer_Preview have been removed (apparently deprecated since 2010?)

Looking at using the wxPrintout framework

Last edited 9 years ago by butler (previous) (diff)

comment:2 Changed 9 years ago by butler

Have added a very bare bones printout object and changed the code to call wx.printer (and printpreview) now. Also changed toolbar code to just call the parent printer code (not sure why id did not do so already).

It is a bit ugly but works from PC installer … but printout object is clearly not properly formatted for the mac (it does go to the printer and print preview pages .. but has a blank page). Also I note there is some "printer setup" code which cannot possibly work but which I don't see being called (in a quick look through)

comment:3 Changed 9 years ago by butler

  • Resolution set to fixed
  • Status changed from new to closed

There remains a problem with the mac but the print does give a printout though the its preview seems to be lacking. The sasview print preview is clearly blank (never tried to print from there but suspect it will work). Mathieu has been removed the SasView print preview option from the menu for now but the code to do it remains. Should look at this since after the release but will close this ticket now and open an appropriate ticket for the mac print preview

Note: See TracTickets for help on using tickets.