Book a Demo

Author Topic: Empty .emf file generated by Diagram > Save image to file  (Read 5658 times)

sacripantina

  • EA Novice
  • *
  • Posts: 5
  • Karma: +1/-0
    • View Profile
Empty .emf file generated by Diagram > Save image to file
« on: February 12, 2016, 01:56:36 am »
Diagram > Save image to file generates an empty .emf file. Other file formats (.bmp, .png, .wmf) are generated correctly.

In previous EA versions saving diagrams to .emf files worked fine. Am I doing anything wrong, or is it a bug in EA?

The problem is observed with EA 12.1.1227, Ultimate Edition (Academic license), used via Crossover 15.0.1.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Empty .emf file generated by Diagram > Save image to file
« Reply #1 on: February 12, 2016, 07:36:10 am »
You should report that as bug. It does not matter which license you have.

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Empty .emf file generated by Diagram > Save image to file
« Reply #2 on: February 12, 2016, 08:51:55 am »
You haven't specified which "previous versions" worked.

Also, given that you are using Crossover, I recommend trying with the 'GDI Plus Metafiles' option unticked on the appearance page of the options dialog.

It's possible (or even likely) that either a partial implementation of GDI+ is causing problems or the application you are viewing the metafiles with doesn't handle GDI+ metafiles properly. (Which may be to ignore the GDI+ entries and render the fallback instructions)

sacripantina

  • EA Novice
  • *
  • Posts: 5
  • Karma: +1/-0
    • View Profile
Re: Empty .emf file generated by Diagram > Save image to file
« Reply #3 on: February 12, 2016, 11:32:04 pm »
Thank you for your prompt reply. Leaving the 'GDI Plus Metafiles' option unticked let me save the image of the diagram to a .emf file. With 'GDI Plus Metafiles' on the .emf file has zero size, i.e. it is not a problem of the application used to view it, but of how it is produced.

The behaviour looks quite erratic over versions 9.x-12.x:

- with EA 9.3 and GDI+ Metafiles on in Options > Appearance, the .emf file is produced by Diagram > Save image to file with size >0;

- with EA 10.0 and 11.1 and GDI+ Metafiles on in Options > Appearance, the .emf file is produced with size >0, but the 'GDI Plus Metafiles' option appears unticked after producing the image, even if it was ticked before saving the diagram image, i.e. this is a symptom of a side effect of  Diagram > Save image to file;

- with EA 12.1 and GDI+ Metafiles on in Options > Appearance, the .emf file is produced with size =0, and the option remains ticked after saving the diagram image to file;

- with EA 12.1 and GDI+ Metafiles off in Options > Appearance, the .emf file is produced with size >0.

There is still a problem with the .emf file, when it is produced: when it is imported into OpenOffice, it looks fine, while when it is imported into MS PowerPoint, some parts of the diagram are messed up. An example of a PowerPoint slide is in https://www.ge.infn.it/geant4/temp/ea/APCexercise.pdf, where the top picture is the result of importing the .emf file and the bottom one of importing the .png file of the same diagram. Since OpenOffice seems to be able to import the .emf file correctly, I guess that the problem is not (or not only) with EA.

I am using EA on a Mac with Mac OS 10.11.3 and Crossover 15.0.1.