Issue 16156 - OLE File Import behaves strange
Summary: OLE File Import behaves strange
Status: ACCEPTED
Alias: None
Product: Writer
Classification: Application
Component: ui (show other issues)
Version: OOo 1.1 Beta2
Hardware: PC All
: P3 Trivial with 9 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: oooqa
: 93426 93593 (view as issue list)
Depends on:
Blocks:
 
Reported: 2003-06-27 14:50 UTC by andree
Modified: 2017-05-20 10:44 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
example WFM (6.41 KB, application/octet-stream)
2003-08-31 08:30 UTC, Rainer Bielefeld
no flags Details
example WFM (10.95 KB, application/octet-stream)
2003-08-31 08:31 UTC, Rainer Bielefeld
no flags Details
Draw Docs, one is good after insertion, the other not (18.14 KB, application/winzip)
2003-11-05 14:19 UTC, michael.ruess
no flags Details
I checked with "2.0.1 RC5 German version WIN XP: [680m1(Build8990)]" and still see the problem (53.31 KB, application/vnd.oasis.opendocument.graphics)
2005-12-19 17:44 UTC, Rainer Bielefeld
no flags Details
I checked with "2.0.1 RC5 German version WIN XP: [680m1(Build8990)]" and still see the problem (53.31 KB, image/png)
2005-12-19 17:45 UTC, Rainer Bielefeld
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description andree 2003-06-27 14:50:13 UTC
Situation:
- create a drawing with one single rectangle 40mm x 20mm anywhere on canvas
- save as test.sxd
- create a text document
- page size in both documents is A4
- in text document, go 'Insert->Object->OLE Object'
- select radio button 'Create from file', click 'Search'
- select file 'test.sxd', click 'Open'
- click 'OK'

Result:
- an object frame is created that spans the width of the page (209.97mm)
  and that is 180.39mm high
- clicking button 'Original Size in the 'Object' dialog changes the height to 
  241.41mm
- printing the drawing file yields the correct rectangle (40mm x 20mm)
- printing the text file yields a rectangle that is too small (26mm x 13mm)

Expected Result:
- an object frame is created just large enough to accomodate all objects from 
  the drawing file (only the one retangle in this case)
- all objects appear with their original size (only the one rectangle in this 
  case, 40mm x 20mm)

Reasoning:
- if a file is imported as an OLE object, what is really interesting is the 
  contents of this file (in case of my drawing example the rectangle)
- import should be true to the original where possible,i.e. scaling should 100% 
  (if the space used by all objects in the imported file is too large to be 
  imported using the orginal scale, the objects should be scaled down 
  automatically until they fit - a little info popup would be nice to inform the 
  user that objects have been scaled down)

Further Remarks:
- I haven't been able to find any documentation explaining the scaling strategy 
  used for OLE object import
- there doesn't seem to be an option to rotate the OLE object on the page in 
  writer (90° would be fully sufficient IMO)
Comment 1 Regina Henschel 2003-08-25 23:47:17 UTC
I can confirm this defect behavior for OOo1.1RC2 on win98 (German).

1. Create a drawing on a C6-portrait-sized page, with background so
that you can better see the size.
2. Save it. 
3. Make a standard A4 writer-document and insert the draw-document via
Insert ->Object -> OLE-Object  ->Create from file

The OLE-object has always 21cm width. The saved drawing-page is put in
the middle in a wrong size. Doubleclicking the object and altering the
frame or formatting the C6-format once again, will not repair it.

You see, the error occurs even when the writer-page has enough room to
insert it without any scaling down.

4. Insert an object via 'Insert ->Object -> OLE Object -> Create new
drawing' works. There you can format the drawing with pagesize C6.
Doubleclicking the object you can alter the frame without effect on
the size of the object.

kind regards
Regina
Comment 2 Rainer Bielefeld 2003-08-31 08:24:02 UTC
I can not confirm that with 1.1RC3.
I created a testgrafik.sxd with page-size exactly so that all elements
are in the page and inserted into test.sxw as OLE-object:
In Text-Document:
Menu - Insert - object - OLE-Object - from file

The drawing was inserted just as expected, please see attached files.

I will set this issue WFM with 1.1RC3, if there will be no new
objections until 5th September.

Rainer
Comment 3 Rainer Bielefeld 2003-08-31 08:30:02 UTC
Created attachment 8899 [details]
example WFM
Comment 4 Rainer Bielefeld 2003-08-31 08:31:27 UTC
Created attachment 8900 [details]
example WFM
Comment 5 Rainer Bielefeld 2003-08-31 08:44:42 UTC
I also tested with 1.0.3, there it would _not_ be WFM!

When I insert the OLE-object, the vertical size is correct, but the
horizontal size not, there I have the "white border".

So it seems that thre has been real improvement from 1.0.3 to 1.1RC3 :-)

Rainer
Comment 6 Rainer Bielefeld 2003-08-31 08:46:49 UTC
Could pls. somone confirm that it is WFM with 1.1RC3  for other OS
than my WIN98?

Rainer
Comment 7 mci 2003-10-29 18:03:11 UTC
reassigned to mru

@mru:  I think this is something for you...
Comment 8 michael.ruess 2003-11-05 14:19:47 UTC
Created attachment 10973 [details]
Draw Docs, one is good after insertion, the other not
Comment 9 michael.ruess 2003-11-05 14:21:21 UTC
This is of course not a problem in the Word Processor. I don't know
what area of the doc is handed over by drawing component to the OLE
object in either application. My attachment archieve shows the problem.
Comment 10 wolframgarten 2003-11-05 15:17:47 UTC
Can be reproduced in OO1.1.0.
Comment 11 wolframgarten 2003-11-05 15:18:10 UTC
Reassigned to Christian.
Comment 12 clippka 2003-11-06 09:25:36 UTC
Will see what I can do
Comment 13 Rainer Bielefeld 2005-12-19 17:44:49 UTC
Created attachment 32581 [details]
I checked with "2.0.1 RC5 German version WIN XP: [680m1(Build8990)]"  and still see the problem
Comment 14 Rainer Bielefeld 2005-12-19 17:45:09 UTC
Created attachment 32582 [details]
I checked with "2.0.1 RC5 German version WIN XP: [680m1(Build8990)]"  and still see the problem
Comment 15 michael.ruess 2008-09-04 06:32:44 UTC
*** Issue 93426 has been marked as a duplicate of this issue. ***
Comment 16 lllbutcher 2008-09-04 10:36:39 UTC
This same bug has been reported many times.
16156:  Aug 2003, OO 1.1
20643:  Oct 2003, OO 1.1
28046:  Apr 2004
50398:  Jun 2005, OO 2.0 beta
53266:  Aug 2005, 680m122
72879:  Dec 2006, OO 2.1
73343:  Jan 2007, OO 2.1
81143:  Aug 2007, OO 2.2.1
82873:  Oct 2007, OO 2.3
93426:  Sep 2008, OO 2.4.1 and OOO300m4

Quite possibly other issues.

All Issues address the same bug:  When OLE linking Draw figures into Write, the
bounding box of the object in write is wrong.

93426 gives specific step-by-step instructions on how to demonstrate the bug.
93426 gives a recommendation on a simple and intuitive fix which will address
most of the issues.

Please escalate this bug from "go away don't bother us" to "someone assigned to
address this".





Comment 17 lllbutcher 2008-09-04 11:10:10 UTC
Another reference to this same bug:

76286:  Apr 2007, OO 2.2
Comment 18 michael.ruess 2008-09-08 11:27:08 UTC
*** Issue 93593 has been marked as a duplicate of this issue. ***
Comment 19 docb 2009-11-16 15:16:15 UTC
I vote for it...otherwise it will still be in OO 5.x....
Comment 20 Alexander Seeck 2015-07-18 11:24:14 UTC
I'm on 4.1.1 and this is still an issue. I tried inserting a draw document into writer showing a graph that, in Draw, fits exactly into its page. In writer however it's slightly scaled up and cut off at the bottom. It also always keeps a distance from the top end left so I'm not able to move it that way to fit it into the page. In edit mode, the frame does not tell me what the outcome will be when changed, the diagram is always moved and scaled somewhere else.
Even worse, extending the edit frame to the right beyond the right page border makes it snap back into page boundaries and scales the content down. Since there's no zoom option I was left with no choice but to reimport.
In this particular case I exported the whole diagram as an image because the embedding is unusable.

P.S.: 12 years... wow
Comment 21 Marcus 2017-05-20 10:44:49 UTC
Reset the assignee to the default "issues@openoffice.apache.org".