help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Windows Package - How to insert a title in Word (e.g. Heading


From: JohnD
Subject: Windows Package - How to insert a title in Word (e.g. Heading
Date: Thu, 9 Nov 2017 12:52:45 -0500

> Message: 8
> Date: Thu, 9 Nov 2017 01:17:59 -0700 (MST)
> From: Pierluigi <address@hidden>
> To: address@hidden
> Subject: Windows Package - How to insert a title.
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset=UTF-8
> 
> Hi,
> 
> I am writing for asking an advice on Windows Package. I am using it so far
with
> satisfaction but I did not find yet the way to insert a title (e.g.
> ?Heading 1?) in Microsoft Word? even if this seems a basic argument.
Common
> Matlab? like commands are not working for this.
> Could you recommend me a solution for this.
> 
> I thank you really much in advance.
> 
> Best regards,
> Pierluigi


You can use the activex control:

pkg load windows
actxWord = actxserver("Word.Application")
wordHandle = invoke(actxWord.Documents,'Add');
selection = actxWord.Selection
selection.InsertAfter('A heading')
selection.Style = 'Heading 1'
actxWord.visible=true




reply via email to

[Prev in Thread] Current Thread [Next in Thread]