I created a solution in Basic

http://www.oooforum.org/forum/viewtopic.phtml?t=8657

Kent Gibson wrote:

Hi-ya,

I would like to create XTextFrames of a fixed
arbitrary height and width and place them at arbitrary
x and y coordinates.
I can manage to get the frame, but I can't seem to
size it or place it arbitrarily. I have based my code
on the TextFrameExample() in TextDocuments.java.

// Set the size of the new Text Frame using the
XShape's 'setSize' method
Size aSize = new Size();
// this is probably (1/100 mm)
aSize.Height = 400;
aSize.Width = 15000;
xShape.setSize(aSize);

If anyone has any pointers that would be grand.

kent


--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
My Book: http://www.hentzenwerke.com/catalog/oome.htm
Info:  http://www.pitonyak.org/oo.php
See Also: http://documentation.openoffice.org/HOW_TO/index.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to