Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Rahmen in der Kopfzeile von Word zeichnen (OLE) (https://www.delphipraxis.net/117808-rahmen-der-kopfzeile-von-word-zeichnen-ole.html)

little_budda 25. Jul 2008 14:44

Re: Rahmen in der Kopfzeile von Word zeichnen (OLE)
 
Ich habs.
So gehts
Delphi-Quellcode:
WordApp.Selection.ParagraphFormat.Borders.item(-2).LineStyle := 0;
Danke für die Hilfe

p80286 25. Jul 2008 16:09

Re: Rahmen in der Kopfzeile von Word zeichnen (OLE)
 
Hallo Little_budda,

Du warst eine ganze Ecke schneller als ich. Hier meine Version (index als Hex-Darstellung).
Delphi-Quellcode:
  msword.Selection.ParagraphFormat.Borders.item($FFFFFFFE).LineStyle:= 0;

  msword.Selection.ParagraphFormat.Borders.item($FFFFFFFC).LineStyle:= 0;
  msword.Selection.ParagraphFormat.Borders.item($FFFFFFFF).LineStyle:= 0;


  msword.Selection.ParagraphFormat.Borders.item($FFFFFFFD).LineStyle := 1 ;
  msword.Selection.ParagraphFormat.Borders.item($FFFFFFFD).LineWidth := 4 ;
  msword.Selection.ParagraphFormat.Borders.item($FFFFFFFD).ColorIndex := 0;

  msword.Selection.ParagraphFormat.Borders.DistanceFromTop := 1;
  msword.Selection.ParagraphFormat.Borders.DistanceFromLeft := 4 ;
  msword.Selection.ParagraphFormat.Borders.DistanceFromBottom := 1;
  msword.Selection.ParagraphFormat.Borders.DistanceFromRight := 4 ;
  msword.Selection.ParagraphFormat.Borders.Shadow := False      ;


Grüße
K-H


Alle Zeitangaben in WEZ +1. Es ist jetzt 02:18 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz