Hello. Please help me with OO Basic.
How i can set pring range (i have cellrange and need set it as one page for division into pages) ?
Sorry my English.
[Solved] Print range in Calc
[Solved] Print range in Calc
Last edited by Hagar Delest on Tue Jun 10, 2008 2:00 pm, edited 2 times in total.
Reason: tagged the thread as Solved.
Reason: tagged the thread as Solved.
Re: Print range in Calc
Code: Select all
Dim oDoc as Object
Dim oPrintArea (0) as New com.sun.star.table.CellRangeAddress
...
oPrintArea (0).Sheet = 1
oPrintArea (0).StartColumn = 0
oPrintArea (0).StartRow = 0
oPrintArea (0).EndColumn = 5
oPrintArea (0).EndRow = 10
oDoc.Sheets.getByName ("Sheet 1").setPrintAreas (oPrintArea ())
Hope this suits your needs.
Re: Print range in Calc
Thank you. There is what i need.