Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.06.27;
Скачать: 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 вся ветка

Текущий архив: 2002.06.27;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.012 c
3-88697
roadstar
2002-06-01 11:12
2002.06.27
TADOX


3-88780
Nesh
2002-06-02 12:49
2002.06.27
Проблемы с параметрами SQL запроса в TSQLClientDataSet !!


14-89006
McSimm
2002-05-24 12:18
2002.06.27
Задачка


1-88956
anod
2002-06-15 19:16
2002.06.27
Как на Margin у RxPopUpMenu вывести текст


3-88769
maxim2
2002-06-05 13:45
2002.06.27
Не могу создать ini файл в разделе var в объявлении ini: TIniFile