Date: prev next · Thread: first prev next last

LibreOffice 4.3.7を使っております,ci5kymと申します。

UNO Java経由でcalcのドキュメント内の一定範囲のセル(A1:C5など)に格子線(外枠だけでなく中も引く)

--- やったこと ---
documentの取得などは省略します。 xPropSet = null; xCellRange = null;

    xCellRange = xSheet.getCellRangeByName("A1:C5");
    xPropSet = UnoRuntime.queryInterface(,
xCellRange); aLine = new;
    aLine.Color = 0x99CCFF;
    aLine.InnerLineWidth = aLine.LineDistance = 0;
    aLine.OuterLineWidth = 50; aBorder = new;
    aBorder.TopLine = aBorder.BottomLine = aBorder.LeftLine =
aBorder.RightLine = aLine;
    aBorder.IsTopLineValid = aBorder.IsBottomLineValid = true;
    aBorder.IsLeftLineValid = aBorder.IsRightLineValid = true;
    xPropSet.setPropertyValue("TableBorder", aBorder);

これだと外枠だけに引かれて,範囲の内側のセルには引かれないままです。 を使って Iterator で回しながら,個別セルごとに経由で枠線指定すれば個別セルの周りをを引くことができるのでしょうが,


Unsubscribe instructions: E-mail to
Posting guidelines + more:
List archive:
All messages sent to this list will be publicly archived and cannot be deleted


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.