[dev] TextGraphicObject, XTransferable and Save As, Microsoft Word, out of memory errors

2009-07-01 Thread Chris Fleischmann
Hello Folks... I am using the XTransferable Object to copy sections of a source document over to a destination document (that was opened as blank).. This seems to work, copying images, text, text styles etc. In terms of the source document I am loading images like so: protected void

Re: [dev] TextGraphicObject, XTransferable and Save As, Microsoft Word, out of memory errors

2009-07-02 Thread Chris Fleischmann
) { e.printStackTrace(); } Chris Fleischmann wrote: Hello Folks... I am using the XTransferable Object to copy sections of a source document over to a destination document (that was opened as blank).. This seems to work, copying images, text, text styles etc. In terms

[dev] Is this how you create a bitmap image from using xDevice.createDisplayBitmap

2009-07-07 Thread Chris Fleischmann
I found this code here: // System.out.println( The bitmap is going to be painted! ); XDevice xDevice = (XDevice)UnoRuntime.queryInterface( XDevice.class, m_xWindow ); if ( xDevice != null ) {

[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 =

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

2010-01-02 Thread Chris Fleischmann
: { if ( bConvDueToOrientation ) eHoriConv = CONV2COL; } ... Tora Chris Fleischmann wrote: 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

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

[dev] Please Help: Getting the width / height sizes to create a RectangleShape to create a boundary box

2010-01-13 Thread Chris Fleischmann
Hello folks, just wondering if there is a more accurate way of converting pixels to 1/00mm in OpenOffice... Other than the 72 DPI type of calculation people use? Currently I do the following: if (fontDescriptor[i].Name.equalsIgnoreCase(Arial)) {

Re: [dev] Please Help: Getting the width / height sizes to create a RectangleShape to create a boundary box

2010-01-13 Thread Chris Fleischmann
, or anything I am doing wrong, please let me know... Thanks once again! Regards, Chris Ariel Constenla-Haile wrote: Hello Chris, On Wednesday 13 January 2010, 18:49, Chris Fleischmann wrote: Hello folks, just wondering if there is a more accurate way of converting pixels to 1/00mm

Re: [dev] Please Help: Getting the width / height sizes to create a RectangleShape to create a boundary box

2010-01-14 Thread Chris Fleischmann
+ 50, nSaveHeight)); Chris Fleischmann wrote: Thanks for the hints... I have since tried the following: // get internal service factory of the document XMultiServiceFactory xWriterFactory_tmp = (XMultiServiceFactory) UnoRuntime.queryInterface