Вниз
Скачать: CL | DM;

D5 + Excel   Найти похожие ветки 

← →
First_May ©   (2002-06-03 15:11) [0]

Подскажите пожалуйста, как некоторой ячейки в Excel сделать нужную границу?


← →
kat ©   (2002-06-03 16:24) [1]

//определяем диапазон
IDispatch(IR1) := ISheet.Cells.Item[StartRow, StartColumn];
IDispatch(IR2) := ISheet.Cells.Item[StartRow + ods.RecordCount , StartColumn + ColCount - 1];
IRange := ISheet.Range[IR1,IR2];

// это диагональные линии
IRange.Borders.item[xlDiagonalDown].LineStyle := xlNone;
IRange.Borders.item[xlDiagonalUp].LineStyle := xlNone;

//левая линия
IRange.Borders.item[xlEdgeLeft].LineStyle := xlContinuous;
IRange.Borders.item[xlEdgeLeft].Weight := xlThin;
IRange.Borders.item[xlEdgeLeft].ColorIndex := xlAutomatic;

//верхняя
IRange.Borders.item[xlEdgeTop].LineStyle := xlContinuous;
IRange.Borders.item[xlEdgeTop].Weight := xlThin;
IRange.Borders.item[xlEdgeTop].ColorIndex := xlAutomatic;

//нижняя
IRange.Borders.item[xlEdgeBottom].LineStyle := xlContinuous;
IRange.Borders.item[xlEdgeBottom].Weight := xlThin;
IRange.Borders.item[xlEdgeBottom].ColorIndex := xlAutomatic;

//правая
IRange.Borders.item[xlEdgeRight].LineStyle := xlContinuous;
IRange.Borders.item[xlEdgeRight].Weight := xlThin;
IRange.Borders.item[xlEdgeRight].ColorIndex := xlAutomatic;


//это вертикальные в таблице
IRange.Borders.item[xlInsideVertical].LineStyle := xlContinuous;
IRange.Borders.item[xlInsideVertical].Weight := xlThin;
IRange.Borders.item[xlInsideVertical].ColorIndex := xlAutomatic;

//это горизонтальные в таблице
IRange.Borders.item[xlInsideHorizontal].LineStyle := xlContinuous;
IRange.Borders.item[xlInsideHorizontal].Weight := xlThin;
IRange.Borders.item[xlInsideHorizontal].ColorIndex := xlAutomatic;



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.01 c
1-88909
Project1
2002-06-08 00:29
2002.06.27
Взаимодействие процессов...


7-89061
Gurban
2002-03-25 08:23
2002.06.27
Учёт количества напечатанных страниц.


1-88905
Alex
2002-06-14 17:06
2002.06.27
Transperency


1-88938
Wolverin
2002-06-15 15:37
2002.06.27
Ресурсы и AVI


3-88765
SKing
2002-06-04 10:18
2002.06.27
Sweep с помощью IBX ?




   Наверх