[Libreoffice-bugs] [Bug 118026] The Range property of a paragraph enumerated from an Automation client is not found

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Jun 6 09:52:36 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=118026

--- Comment #1 from Tor Lillqvist <tml at iki.fi> ---
Created attachment 142554
  --> https://bugs.documentfoundation.org/attachment.cgi?id=142554&action=edit
Sample VBscript to exercise the problem

Output:

> $ cscript ../bugreport.vbs
> Microsoft (R) Windows Script Host Version 5.812
> Copyright (C) Microsoft Corporation. All rights reserved.
> 
> Creating Writer.Application
> Set d = w.Documents
> Opening u1.odt
> Getting a = w.ActiveDocument
> Trying Set r = x1.Paragraphs(1).Range
> Enumerating paragraphs in the document with For Each
> Paragpraph 1
> Trying Set range = i.Range
> C:\cygwin64\home\Tor\lo\bugreport.vbs(38, 5) Microsoft VBScript runtime error: Object doesn't support this property or method: 'i.Range'

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180606/d3c361cf/attachment.html>


More information about the Libreoffice-bugs mailing list