OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki
OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki
OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Formatting Spreadsheet Documents 148<br />
PrintDownFirst (Boolean)<br />
if the contents of a sheet extend across several pages, they are first printed in<br />
vertically descending order, and then down the right-hand side.<br />
PrintFormulas (Boolean)<br />
prints the formulas instead of the calculated values<br />
PrintZeroValues (Boolean)<br />
prints the zero values<br />
Source: http:/ / <strong>wiki</strong>. services. openoffice. <strong>org</strong>/ w/ index. php? title=Documentation/ <strong>BASIC</strong>_<br />
<strong>Guide</strong>/ Formatting_ Spreadsheet_ Documents&oldid=104508<br />
Principal Authors: Fpe, Ccornell, TJFrazier<br />
Editing Spreadsheet Documents<br />
Whereas the previous section described the main structure of spreadsheet documents, this<br />
section describes the services that allow you to easily access individual cells or cell ranges.<br />
Cell Ranges<br />
In addition to an object for individual cells (<br />
com.sun.star.table.Cell<br />
service), <strong>OpenOffice</strong>.<strong>org</strong> also provides objects that represent cell ranges. Such CellRange<br />
objects are created using the getCellRangeByName call of the spreadsheet object:<br />
Dim Doc As Object<br />
Dim Sheet As Object<br />
Dim CellRange As Object<br />
Doc = StarDesktop.CurrentComponent<br />
Sheet = Doc.Sheets.getByName("Sheet 1")<br />
CellRange = Sheet.getCellRangeByName("A1:C15")<br />
A colon (:) is used to specify a cell range in a spreadsheet document. For example, A1:C15<br />
represents all the cells in rows 1 to 15 in columns A, B, and C.<br />
The location of individual cells in a cell range can be determined using the<br />
getCellByPosition method, where the coordinates of the top left cell in the cell range is (0,<br />
0). The following example uses this method to create an object of cell C3.<br />
Dim Doc As Object<br />
Dim Sheet As Object<br />
Dim CellRange As Object<br />
Dim Cell As Object