Re: [dev] Please help: saving document as DOC format, then opening, losing position properties for TextGraphicObject

2010-01-03 Thread tora - Takamichi Akiyama
Hi, Chris Fleischmann wrote: Hi basically I am using the OpenOffice SDK (3.1.1) to create a new Writer document. I add images with the following code, passing in the XText (which in this case is an XText from a XTextFrame). XTextCursor xTextCursor = xFrameText.createTextCursor(); ...

Re: [dev] Please help: saving document as DOC format, then opening, losing position properties for TextGraphicObject

2010-01-02 Thread Chris Fleischmann
Hello... I have since tried the following code, which aims to do just that... It add the picture to a frame, The frame is either anchored to a paragraph or frame...Thats is, I have a parent frame which is anchored to a particular page, with PAGE anchoring... Inside that frame is the "NEW" frame t

Re: [dev] Please help: saving document as DOC format, then opening, losing position properties for TextGraphicObject

2010-01-02 Thread Chris Fleischmann
Hi basically I am using the OpenOffice SDK (3.1.1) to create a new Writer document. I add images with the following code, passing in the XText (which in this case is an XText from a XTextFrame). I pass in a width, and height... and if I pass in an X/Y coordinate i change the anchor to "FRAME": O

Re: [dev] Please help: saving document as DOC format, then opening, losing position properties for TextGraphicObject

2010-01-02 Thread Cor Nouws
vito smolej wrote (02-01-10 20:56) What about putting the graphics into a container - a text box for instance -, which is able to listen to your prayers (g)? Good take. With regular formatting issues (headers and such) a table is the best way to keep an image on it's place cross-application.

Re: [dev] Please help: saving document as DOC format, then opening, losing position properties for TextGraphicObject

2010-01-02 Thread vito smolej
What about putting the graphics into a container - a text box for instance -, which is able to listen to your prayers (g)? Regards Vito - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: de

Re: [dev] Please help: saving document as DOC format, then opening, losing position properties for TextGraphicObject

2010-01-02 Thread tora - Takamichi Akiyama
Hi, What I have just noticed with writer_MS_Word_2003_XML is ... Steps 1. Manually create an empty Writer document. 2. Manually import a graphic image. 3. Move it and alter its attributes. 4. Save it as Word 2003 XML. 5. Open it with my favorite text editor. The inside of the XML file

Re: [dev] Please help: saving document as DOC format, then opening, losing position properties for TextGraphicObject

2010-01-02 Thread tora - Takamichi Akiyama
Are you using vertical writing? If so, there is a bug which misinterprets the position of graphic object during importing from and exporting into Microsoft Word 97-2003. http://qa.openoffice.org/issues/show_bug.cgi?id=86769 http://www.openoffice.org/nonav/issues/showattachment.cgi/61766/i86769

Re: [dev] Please help: saving document as DOC format, then opening, losing position properties for TextGraphicObject

2010-01-02 Thread Chris Fleischmann
Thanks for responding, I have since tried playing around with the orientation settings, but alas, its still not keeping the x/y position from the paragraph anchor when I open it up in Word ... See the picture properties here for one of my images in openoffice 3.1.1: http://old.nabble.com/file/p26

Re: [dev] Please help: saving document as DOC format, then opening, losing position properties for TextGraphicObject

2010-01-02 Thread tora - Takamichi Akiyama
I am not sure, but, hopefully, this could be a hint. After manually inserting a graphic image into an empty Writer document, the following code fragment of OpenOffice.org Basic reports that HoriOrientRelation = 7 VertOrientPosition = 7 Sub Main oObject = ThisComponent.ge

[dev] Please help: saving document as DOC format, then opening, losing position properties for TextGraphicObject

2010-01-01 Thread Chris Fleischmann
Hello All, OpenOffice 3.1.1. Java SDK, MAC OS X 10.6.2, MS Word 2007/2008. Firstly I am happily able to position my TextGraphicObject's where I need them, ie., I use the following code to position the TextGrahicObject in OpenOffice with a particular width and height: Object newImage = x