Einzelnen Beitrag anzeigen

Sergej_Molotov

Registriert seit: 18. Jul 2006
61 Beiträge
 
Delphi 11 Alexandria
 
#2

Re: TWordApplication und Commandbar

  Alt 23. Jul 2008, 15:17
Kurz vor meinem Seelbstmord habe ich bei der MSDN einen Beitrag gefunden, der sich mit der Anpassung von Word mit Hilfe von Templates (so wie ich es ja mache) beschäftigt.

Dort bin ich auf folgende Zeilen gestoßen:
Delphi-Quellcode:
'Force the customization context to return to the active document's
   'attached template, or to Normal.dot if no document is open.
'This helps ensure that Word continues to display
   'all current customizations.
If Documents.Count > 0 Then
CustomizationContext = ActiveDocument.AttachedTemplate
'Danach klapps auch mit der Leiste
   Else
      CustomizationContext = NormalTemplate
   End If
Hier die URL:
Customizing Word 2003

Ps:
Jedes Word verhält sich anders.
Thomas
  Mit Zitat antworten Zitat