Hi!
I got an example how the merge of table columns work in writer:
xTextTableCursor=xTextTable~createCursorByCellName("A"row) -- create cursor
xTextTableCursor~gotoCellByName("B"row, .true) -- select area up to
and including this cell
xTextTableCursor~mergeRange -- merge selected
cells
Now it works.
Regards
Nicole
-------- Original-Nachricht --------
> Datum: Thu, 15 May 2008 23:32:36 +0200
> Von: "Nicole Scholz" <[EMAIL PROTECTED]>
> An: [email protected]
> Betreff: Re: [api-dev] merge table columns example
> Hi!
>
> Thanks for your tipp. I had a look at the developer guide but at the calc
> section. Now I looked at the textdocument section. I tried to merge the
> cells like in the developer guide but it doesn't work too.
>
> xTextTableCursor = xTextTable~createCursorByCellName("A"row)
> xTextTableCursor = xTextTableCursor~gotoCellByName("B"row, .true)
> xTextTableCursor~xMergeable~merge(.true)
>
> Now I get this error message:
> object method not found
> Error 97.1: Object "1" does not understand message "XMERGEABLE"
>
> Does someone have a hint what I should change?
> Thanks
> Nicole
>
> -------- Original-Nachricht --------
> > Datum: Thu, 15 May 2008 00:31:13 -0400
> > Von: Andrew Douglas Pitonyak <[EMAIL PROTECTED]>
> > An: [email protected]
> > Betreff: Re: [api-dev] merge table columns example
>
> > I believe that a text table has different support than a Calc document
> >
> > I only show how to merge and split text table cells in my book (and not
> > in my free macro document). Have you looked at the developer's guide?
> >
> > Nicole Scholz wrote:
> > > Hi!
> > >
> > > I found some examples of merging columns in scalc and I tried to
> > transfer the code into writer. Unfortunately I was not able to get it
> running.
> > >
> > > I created a CellRange of the Table in Writer and then tried to merge
> the
> > cellRange.
> > >
> > > CellRange = xTextTable~xCellRange~getCellRangeByName("A"row":B"row)
> > > CellRange~XMergeable~merge(.true)
> > >
> > > When I run the program I get the following error message:
> > > Object "The NIL object" does not understand message "MERGE"
> > >
> > > Do I create the CellRange wrong or call the merge method wrong?
> > >
> > > Thanks
> > > Nicole
> > >
> > >
> > > -------- Original-Nachricht --------
> > >
> > >> Datum: Sat, 10 May 2008 22:59:24 +0200
> > >> Von: "Nicole Scholz" <[EMAIL PROTECTED]>
> > >> An: [email protected]
> > >> Betreff: [api-dev] merge table columns example
> > >>
> > >
> > >
> > >> Hi!
> > >>
> > >> I try to merge two columns in one row of a table. I read the
> developer
> > >> guide and I searched the mailing list and so I found out that the
> > XMergeable
> > >> Interface is needed and that I have to set the method merge to true.
> > >>
> > >> But I dont know how to do this. How do I say which columns I want to
> > >> merge? Can someone give me a short example?
> > >>
> > >> Thanks
> > >> Nicole
> > >> --
> > >> Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
> > >> Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >> For additional commands, e-mail: [EMAIL PROTECTED]
> > >>
> > >
> > >
> >
> > --
> > 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]
>
> --
> 249 Spiele für nur 1 Preis. Die GMX Spieleflatrate schon ab 9,90 Euro.
> Neu: Asterix bei den Olympischen Spielen: http://flat.games.gmx.de
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
249 Spiele für nur 1 Preis. Die GMX Spieleflatrate schon ab 9,90 Euro.
Neu: Asterix bei den Olympischen Spielen: http://flat.games.gmx.de
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]