After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 533795 - PRINT PREVIEW does not work
PRINT PREVIEW does not work
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: Printing
1.9.x
Other Windows
: Normal normal
: ---
Assigned To: Andreas J. Guelzow
Jody Goldberg
: 533796 537077 551054 553818 565949 618362 619278 619534 632316 635427 644562 (view as bug list)
Depends on: 376469
Blocks:
 
 
Reported: 2008-05-19 05:00 UTC by Eric Katz
Modified: 2011-03-18 23:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Eric Katz 2008-05-19 05:00:22 UTC
Please describe the problem:
The PRINT PREVIEW function does not work. When selecting (or not selecting)
an area to print (the PRINT FUNCTION does WORK) THEN SELECTING print preview, my graphics display program (IrfanView) shows an error msg. The .emf file created by Gnumeric is invalid (usually 0-length). IrfanView CAN view .emf files, nut gnumeric is not generating valid .emf files to preview the print area.

Steps to reproduce:
1. select a portion of the spreadsheet to be printed
2. go to FILE, PRINT PREVIEW
3. An invalid .emf file is created in a \temp folder which cannot be viewed


Actual results:
invalid .emf file is generated by gnumeric. Cannot be viewed by graphics viewer.
Most cases the .emf file is 0-length. Sometimes it has non-zero length and can be viewed AFTER gnumeric is closed, but even then it is not a valid print preview image.

Expected results:
the graphics viewer program (IrfanView, in my case) should seccessfully open the .emf file containing the print preview image

Does this happen every time?
at least 95% of the time

Other information:
Happens on both of my machines - running WinXP Pro
Comment 1 Morten Welinder 2008-05-19 11:49:22 UTC
*** Bug 533796 has been marked as a duplicate of this bug. ***
Comment 2 Jody Goldberg 2008-05-19 12:52:46 UTC
This is a known problem in gtk+.  I'm working on a solution.
Comment 3 Jean Bréfort 2008-06-11 02:47:18 UTC
*** Bug 537077 has been marked as a duplicate of this bug. ***
Comment 4 Donald Hasson 2008-07-31 17:00:41 UTC
I am having precisely the same problem. And it seems to be 100% of the time for me. I don't know how to see the size of the emf file it creates though. Running Win XP Pro and version 1.9.1 of Gnumeric.
Comment 5 Andreas J. Guelzow 2008-09-05 22:29:00 UTC
*** Bug 551054 has been marked as a duplicate of this bug. ***
Comment 6 Andreas J. Guelzow 2008-09-26 06:23:48 UTC
*** Bug 553818 has been marked as a duplicate of this bug. ***
Comment 7 Andreas J. Guelzow 2008-12-29 16:27:12 UTC
*** Bug 565949 has been marked as a duplicate of this bug. ***
Comment 8 Arand 2009-03-01 19:20:10 UTC
Consistent error for me on 1.9.3
Very annoying.
Comment 9 Charlie Kravetz 2010-01-30 19:13:05 UTC
This bug has been reported on Ubuntu Launchpad as:
  https://bugs.launchpad.net/bugs/478818

From the launchpad report:
Gnumeric is running from a clean install of 64-bit Ubuntu 9.10. I couldn't print preview my spreadsheets, nor could I generate them as PDF/PS/SVG files by printing.

No error messages are displayed. I didn't experience this in Ubuntu 9.04.

ProblemType: Bug
Architecture: amd64
Date: Mon Nov 9 09:07:01 2009
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
Package: gnumeric 1.9.9-1ubuntu2
ProcEnviron:
 LANG=en_PH.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: gnumeric
Uname: Linux 2.6.31-14-generic x86_64
Comment 10 Andreas J. Guelzow 2010-01-30 19:17:35 UTC
Charlie: this bug is not the same as the bug reported on launchpad. This bug is MS Window's specific and has to do with the created emf file being empty.

Printing on a linux system should work.
Comment 11 Andreas J. Guelzow 2010-01-30 19:30:15 UTC
Charlie: the launchpad problem was probably fixed with 1.9.10. According to the NEWS file for 1.9.10:
Morten: 
     Fix problem with print area.
Comment 12 Andreas J. Guelzow 2010-05-11 16:02:47 UTC
*** Bug 618362 has been marked as a duplicate of this bug. ***
Comment 13 Jean Bréfort 2010-05-21 12:58:00 UTC
*** Bug 619278 has been marked as a duplicate of this bug. ***
Comment 14 Andreas J. Guelzow 2010-05-24 17:20:04 UTC
*** Bug 619534 has been marked as a duplicate of this bug. ***
Comment 15 Morten Welinder 2010-10-16 21:46:31 UTC
*** Bug 632316 has been marked as a duplicate of this bug. ***
Comment 16 Andreas J. Guelzow 2010-11-22 21:43:32 UTC
*** Bug 635427 has been marked as a duplicate of this bug. ***
Comment 17 Andreas J. Guelzow 2011-03-12 23:13:06 UTC
*** Bug 644562 has been marked as a duplicate of this bug. ***
Comment 18 Morten Welinder 2011-03-18 23:39:16 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.

I grew tired of waiting for the gtk+ people to fix this.

Note: the fix is rather crude: generate a pdf file and ask the system to
show it.  It will only work if acrobat reader or other pdf reader can be
found.  It might not work if the temp directory is non-ascii.

But, hey, it's better than a crash!  (And with 12 dupes, a lot of people
have hit this.)