Author Topic: 846 Legends in generated documents  (Read 1667 times)

skiwi

  • EA Practitioner
  • ***
  • Posts: 1758
  • Karma: +36/-53
    • View Profile
846 Legends in generated documents
« on: May 31, 2010, 08:23:57 am »
I have the following legend in a diagram.


When I generate my document this is the legend that is displayed.

has anyone else observed this problem?

I believe this may also be an issue in recent earlier versions of EA?
Orthogonality rules
Using EA14.0 (1422) on Windows 10 Enterprise/64 bit. Repositories in SQLServer2014 R2 & Access2003/JET4.0

skiwi

  • EA Practitioner
  • ***
  • Posts: 1758
  • Karma: +36/-53
    • View Profile
Re: 846 Legends in generated documents
« Reply #1 on: May 31, 2010, 08:35:47 am »
In fact if you use Diagram | Save Image which is how I generated the image from the model, it looks good.

If you use Diagram | Copy Image you get this - also wrong
Orthogonality rules
Using EA14.0 (1422) on Windows 10 Enterprise/64 bit. Repositories in SQLServer2014 R2 & Access2003/JET4.0

Simon M

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 6441
  • Karma: +55/-6
    • View Profile
Re: 846 Legends in generated documents
« Reply #2 on: May 31, 2010, 09:28:03 am »
I assume you've sent the bug report to Sparx Systems.

My immediate response is that it looks like metafiles are causing the problem, in that case try changing your options for GDI+ metafiles (Tools | Options | Diagram | Appearance) or setting your report to use bitmaps.
Simon

support@sparxsystems.com

skiwi

  • EA Practitioner
  • ***
  • Posts: 1758
  • Karma: +36/-53
    • View Profile
Re: 846 Legends in generated documents
« Reply #3 on: May 31, 2010, 11:01:06 am »
I changed the clipboard option to "bitmap"
the document generated images are still incorrect.
Will report soon, see if there are any more comments from community first.
« Last Edit: May 31, 2010, 11:12:08 am by skiwi »
Orthogonality rules
Using EA14.0 (1422) on Windows 10 Enterprise/64 bit. Repositories in SQLServer2014 R2 & Access2003/JET4.0

Simon M

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 6441
  • Karma: +55/-6
    • View Profile
Re: 846 Legends in generated documents
« Reply #4 on: May 31, 2010, 11:11:25 am »
That would be because you're not copying an image to the clipboard.

There is an option in the generator.  (Look at the advanced tab) Bearing in mind that it allows a temporary override of the options specified in the template itself.
Simon

support@sparxsystems.com

skiwi

  • EA Practitioner
  • ***
  • Posts: 1758
  • Karma: +36/-53
    • View Profile
Re: 846 Legends in generated documents
« Reply #5 on: May 31, 2010, 11:19:41 am »
Well that is interesting.
When I change the setting on the advanced TAB the image is correctly generated.

Its also interesting because the advanced document generation setting is independent from the Tools options etting.

I also notice that when I repeat the test the "Diagram Format" is not sticky, it reverts to Metafile.

Orthogonality rules
Using EA14.0 (1422) on Windows 10 Enterprise/64 bit. Repositories in SQLServer2014 R2 & Access2003/JET4.0

Simon M

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 6441
  • Karma: +55/-6
    • View Profile
Re: 846 Legends in generated documents
« Reply #6 on: June 01, 2010, 08:19:14 am »
Quote
Its also interesting because the advanced document generation setting is independent from the Tools options etting.

I also notice that when I repeat the test the "Diagram Format" is not sticky, it reverts to Metafile.
As I said,

Quote
That would be because you're not copying an image to the clipboard.

...

Bearing in mind that it allows a temporary override of the options specified in the template itself.
Simon

support@sparxsystems.com

skiwi

  • EA Practitioner
  • ***
  • Posts: 1758
  • Karma: +36/-53
    • View Profile
Re: 846 Legends in generated documents
« Reply #7 on: June 01, 2010, 09:14:12 am »
Simon

Its clear that I don't understand what you are getting at.

Is there a means of setting at a global level the setting found in the Generate RTF documentation dialogue box, Advanced TAB, Diagram format option to bitmap?

How it this option set initially? Is it by default set to metafile?

What is the default for   Tools | Options | general | Clipboard option?

It seems to me that whether I copy an image to the clipboard, save the image to a folder, or generate an image as part of a diagram, the image should look the same, and the two options settings above should not impact on the visual appearance of the image.

The tecnhical format of the diagram (jpeg, enhanced metafile) should not have to matter to me for the simple usage I require.
I just want EA to work, rather than have to research and report bugs that impact the quality of work I produce to the business.
I should not have to alert EA developers to the way that tools put images on the clipboard, or copy them off. To me as a windows user I expect these things to "Just work"TM (in the way I am used to). I use many Windows applications, and most of them (eg MS Office, Open office), do just work.
Orthogonality rules
Using EA14.0 (1422) on Windows 10 Enterprise/64 bit. Repositories in SQLServer2014 R2 & Access2003/JET4.0

skiwi

  • EA Practitioner
  • ***
  • Posts: 1758
  • Karma: +36/-53
    • View Profile
Re: 846 Legends in generated documents - bug repor
« Reply #8 on: June 01, 2010, 09:19:15 am »
Here is the bug report I propose to make. Feedback welcome


When a Legend is shown in a diagram in a RTF generated document the line colour and widths are not rendered at all, all that shows is a narrow grey line.

The setting of  Tools | Options | general | Clipboard option
or
Generate RTF documentation dialogue box, Advanced TAB, Diagram format option

should be irrelevant to the image created in the document.

See forum http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1275258238 for details.
Orthogonality rules
Using EA14.0 (1422) on Windows 10 Enterprise/64 bit. Repositories in SQLServer2014 R2 & Access2003/JET4.0

Simon M

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 6441
  • Karma: +55/-6
    • View Profile
Re: 846 Legends in generated documents
« Reply #9 on: June 02, 2010, 08:40:36 am »
Simon, there is no doubt that the image format should make no difference to the contents of the image.  I am not suggesting that, my thoughts were that it was a problem with generating metafiles, so I suggested a way that you could get the report you need.

Regarding the option to generate bitmaps, I'll try to explain it further.  All of the options of the advanced page of the RTF Generation dialog also exist as properties of each RTF template.  If you wish to change the default, you need to change the template.  I believe that all templates provided by Sparx Systems use metafile images as the default.

The problem (as I see it) is this:

Quote
Line styles in diagram legends are not drawn correctly into  metafiles.

You could then fill out your own steps to reproduce, and full description of what you are seeing.

The fact that you are trying to generate an RTF report is actually immaterial to the issue.
« Last Edit: June 02, 2010, 08:47:17 am by simonm »
Simon

support@sparxsystems.com

skiwi

  • EA Practitioner
  • ***
  • Posts: 1758
  • Karma: +36/-53
    • View Profile
Re: 846 Legends in generated documents
« Reply #10 on: June 02, 2010, 09:17:55 am »
Thanks for that.
Bug report on the way.
Orthogonality rules
Using EA14.0 (1422) on Windows 10 Enterprise/64 bit. Repositories in SQLServer2014 R2 & Access2003/JET4.0