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

Buovjaga <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ilmari.lauhakangas@libreoff
                   |                            |ice.org

--- Comment #4 from Buovjaga <[email protected]> ---
(In reply to Wolfgang Jäger from comment #0)
> Created attachment 159578 [details]
> A slightly reworked version of the mentioned helper from 2 years ago.
> 
> Code example in Basic:  
> 
> srvSupplier = ThisComponent.CurrentController.Frame
> Dim args(0) As New com.sun.star.beans.PropertyValue
> args(0).Name  = "Password"
> args(0).Value = "A wrong Password" REM Actually taken from a SheetCellRange.
> targetDoc = srvSupplier.loadComponentFromURL(pUrl, "_blank", 0, args)

Running isPwdCorrect(), I get

BASIC runtime error.
Argument is not optional.

pointing to line 13:
args(0).Value = pPwd

Arch Linux 64-bit
Version: 25.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: ffcdff2ff40124c58249f4a1219430610db7567f
CPU threads: 8; OS: Linux 6.14; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Built on 27 May 2025

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to