|
![]() |
#1 |
Пенсионер
|
А где можно посмотреть объектную модель OpenOffice ?
__________________
![]() А еще у меня растет 2 внучки!!! Кому интересно подробности тут: http://www.baby-shine.com/ |
|
![]() |
#2 |
Участник
|
признаюсь - за основу я взяла код из 1с
http://www.forum.mista.ru/topic.php?...&area=exchange А объектная модель есть здесь http://lists.altlinux.ru/pipermail/o...er/008421.html |
|
![]() |
#3 |
Участник
|
![]() X++: .... //*****выделить диапазон + границы BorderStruct = OpenOffice.Bridge_GetStruct('com.sun.star.table.BorderLine'); BorderStruct.Color(24567057); BorderStruct.LineDistance(0); BorderStruct.InnerLineWidth(0); BorderStruct.OuterLineWidth(1); // oRange = oSheet.getCellByPosition(8,1,9,1); oRange = oSheet.getCellRangeByName("H2:I2"); oRange.merge(true); oRange.setPropertyValue("CellBackColor", 16764057); oRange.SetPropertyValue("LeftBorder",BorderStruct); oRange.SetPropertyValue("RightBorder",BorderStruct); oRange.SetPropertyValue("TopBorder",BorderStruct); oRange.SetPropertyValue("BottomBorder",BorderStruct); //***************************** for(i=1; i<10;i++) { oRange = oSheet.getCellByPosition(0,i); oRange.SetValue(i); oRange.setPropertyValue("CellStyle", "Result"); oRange = oSheet.getCellByPosition(1,i); oRange.Setstring('Прелесть'); oRange.setPropertyValue('CharPosture',100); oRange = oSheet.getCellByPosition(2,i); oRange.SetValue(i*i); oRange.setPropertyValue('CharWeight',200); oRange.setPropertyValue('CharUnderline',124); oRange = oSheet.getCellByPosition(3,i); oRange.SetString(date2str(today(),123,2,2,2,2,4)); oRange.setPropertyValue("CharColor", 500); oRange.setPropertyValue('CharShadowed', True); oRange = oSheet.getCellByPosition(4,i); oRange.SetString(today()); oRange.setPropertyValue("CellBackColor", 0x99CCFF); oRange.setPropertyValue("CharHeight", 12); oRange.setPropertyValue("IsTextWrapped", True); oRange = oSheet.getCellByPosition(5,i); oRange.SetString(today()); oRange.setPropertyValue("CellStyle", "Date"); } |
|
![]() |
#4 |
Пенсионер
|
Цитата:
Сообщение от PT
![]() признаюсь - за основу я взяла код из 1с
http://www.forum.mista.ru/topic.php?...&area=exchange А объектная модель есть здесь http://lists.altlinux.ru/pipermail/o...er/008421.html
__________________
![]() А еще у меня растет 2 внучки!!! Кому интересно подробности тут: http://www.baby-shine.com/ |
|
![]() |
#5 |
Участник
|
Пользовался примером - хватило...
http://rsdn.ru/article/openoffice/ooautomation.xml внизу ссылки полезные.... |
|
Теги |
документация |
|
![]() |
||||
Тема | Ответов | |||
Как открыть шаблон в OpenOffice? | 28 | |||
DeniZone: OpenOffice and Dynamics ax | 0 | |||
Ищу класс для работы с OpenOffice | 9 | |||
Axapta+OpenOffice | 3 | |||
Axapta i OpenOffice | 3 |
|