| View previous topic :: View next topic |
| Author |
Message |
zymo General User

Joined: 03 Sep 2006 Posts: 5
|
Posted: Sun Sep 03, 2006 12:34 pm Post subject: Add text in rectangleshape |
|
|
Dear All, I'm starting to learn OOo.Draw and macro programming. The first thing I'm trying is drawing a rectangle (I can do that), but now I need to add a text (say "abcd") into that rectangle shape.
I can't get it to work. Any example code would do fine (in OOo Basic). |
|
| Back to top |
|
 |
Villeroy Super User


Joined: 04 Oct 2004 Posts: 10065 Location: Germany
|
|
| Back to top |
|
 |
SergeM Super User

Joined: 09 Sep 2003 Posts: 3211 Location: Troyes France
|
|
| Back to top |
|
 |
zymo General User

Joined: 03 Sep 2006 Posts: 5
|
Posted: Mon Sep 04, 2006 12:43 pm Post subject: |
|
|
Thank's, that was it,
The correct function is: oRectShape.SetString="abc"
after the shape is placed on the page |
|
| Back to top |
|
 |
pitonyak Administrator


Joined: 09 Mar 2004 Posts: 3618 Location: Columbus, Ohio, USA
|
Posted: Mon Sep 04, 2006 8:03 pm Post subject: |
|
|
The draw and Impress chapters from my book are available as a free download from my publisher. If you have trouble finding them let me know... _________________ --
Andrew Pitonyak
http://www.pitonyak.org/oo.php |
|
| Back to top |
|
 |
SergeM Super User

Joined: 09 Sep 2003 Posts: 3211 Location: Troyes France
|
|
| Back to top |
|
 |
zymo General User

Joined: 03 Sep 2006 Posts: 5
|
Posted: Thu Sep 21, 2006 9:33 am Post subject: |
|
|
It did work for me. The result after some evenings of my first OOo macro coding is a tool that generates ERDs (entities and relationships with symbols indicating entity types and relationship types) from an Oracle database based system, fully automatically.
OOo Macro = great stuff! |
|
| Back to top |
|
 |
pitonyak Administrator


Joined: 09 Mar 2004 Posts: 3618 Location: Columbus, Ohio, USA
|
Posted: Thu Sep 21, 2006 12:17 pm Post subject: |
|
|
Very interesting... can it also probe a Base document?
I would love to see an example of the file that it generates; even if you have to email it to me directly (andrew@pitonyak.org). _________________ --
Andrew Pitonyak
http://www.pitonyak.org/oo.php |
|
| Back to top |
|
 |
|