von schosch » Sa, 28.08.2004 13:44
Hallo Linus,
hiermit funktionierts:
----------------------------------------------------
REM ***** BASIC *****
Function MakeCellBorderLine( nColor, nInnerLineWidth, nOuterLineWidth, nLineDistance ) _
As com.sun.star.table.BorderLine
oBorderLine = createUnoStruct( "com.sun.star.table.BorderLine" )
With oBorderLine
.Color = nColor
.InnerLineWidth = nInnerLineWidth
.OuterLineWidth = nOuterLineWidth
.LineDistance = nLineDistance
End With
MakeCellBorderLine = oBorderLine
End Function
Sub Main
...
oCells.LeftBorder = MakeCellBorderLine( 0, 0, 75, 0 )
oCells.RightBorder = MakeCellBorderLine( 0, 0, 75, 0 )
oCells.TopBorder = MakeCellBorderLine( 0, 0, 75, 0 )
oCells.BottomBorder = MakeCellBorderLine( 0, 0, 75, 0 )
End Sub
-------------------------------------------------------------------
hab ich hier gefunden:
http://www.oooforum.org/forum/viewtopic ... 6&start=15
gruß
Georg
Hallo Linus,
hiermit funktionierts:
----------------------------------------------------
REM ***** BASIC *****
Function MakeCellBorderLine( nColor, nInnerLineWidth, nOuterLineWidth, nLineDistance ) _
As com.sun.star.table.BorderLine
oBorderLine = createUnoStruct( "com.sun.star.table.BorderLine" )
With oBorderLine
.Color = nColor
.InnerLineWidth = nInnerLineWidth
.OuterLineWidth = nOuterLineWidth
.LineDistance = nLineDistance
End With
MakeCellBorderLine = oBorderLine
End Function
Sub Main
...
oCells.LeftBorder = MakeCellBorderLine( 0, 0, 75, 0 )
oCells.RightBorder = MakeCellBorderLine( 0, 0, 75, 0 )
oCells.TopBorder = MakeCellBorderLine( 0, 0, 75, 0 )
oCells.BottomBorder = MakeCellBorderLine( 0, 0, 75, 0 )
End Sub
-------------------------------------------------------------------
hab ich hier gefunden:
http://www.oooforum.org/forum/viewtopic.php?t=4996&start=15
gruß
Georg