Hi,
i'm working with OO via C++ or VBasic...
I'm very interested in making writer document used for reporting
something....
At beginning i work with no complex table and i've not problem.
In complex tables i've seen in 2.0.4 you have fixed a bug in
columntableseparator that i've seen...
Now i've to use complex tables inside cells of complex tables......
and OO crash a lot of time, but it's very difficult for me reproduce the
bug...
I hope that the bugs i've seen are linked to this one....
If i've a table inside a cell of a table and i split cells when document is
not visible,
OO crash...
i know that making not visible the document means dont activate a lot of
services,
but splitting complex tables NOT in cell of table is made correctly also
with
the document invisible.
Hoping in your answer....
Simone
Ing. Gasparri Simone
[EMAIL PROTECTED]
Florence Italy
this example crash (OO 2.0.4)
Sub SplitTableInTableDocumentInvisible()
Dim mProp(0) As New com.sun.star.beans.PropertyValue
Dim args(0) as new com.sun.star.beans.PropertyValue
mProp(0).Name = "Hidden"
mProp(0).Value = true
oDoc = StarDesktop.loadComponentFromURL( "private:factory/swriter",
"_blank", 1, mProp())
oTable = oDoc.createInstance( "com.sun.star.text.TextTable" )
oTable.initialize( 2, 1 )
oText = oDoc.getText()
oViewCursor = oDoc.getCurrentController().getViewCursor()
oText.insertTextContent( oViewCursor, oTable, False )
oCell = oTable.GetCellByName("A2")
oText = oCell.Text
oCursor = oCell.Start
oTable2 = oDoc.createInstance( "com.sun.star.text.TextTable" )
oTable2.initialize( 2, 1 )
oText.insertTextContent( oCursor, oTable2, False )
oTextTableCursor = oTable2.createCursorByCellName( "A2" )
oTextTableCursor.splitRange ( 1, 1 )
oTextTableCursor = oTable2.createCursorByCellName( "A2" )
oTextTableCursor.splitRange ( 6, 0 )
destOdt = ConvertToURL("C:\report.odt")
oDoc.storeToURL(destOdt,array())
oDoc.close(true)
End Sub
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]