Date: prev next · Thread: first prev next last
2018 Archives by date, by thread · List index




Sub hidden_wait3000
'******* シートを非表示で開き、何か命令(この場合3秒wait)実行後クラッシュします *****

dbFile = "D:\DATA\test02.ods"
oUrl = ConvertToURL(dbFile)

Dim aArgs(0) As New
aArgs(0).Name = "Hidden"
aArgs(0).Value = True
dim dummy()

oDoc = StarDesktop.loadComponentFromUrl(oUrl, "_blank", 0, aArgs)

wait 3000

End Sub
'_hidden は IDL ガイドに記載がありませんが、ドキュメントを非表示状態で開くには
' loadComponentFromURL メソッドの最後の引数に MediaDescriptor で Hidden パラメータを指定します。とのこと
' より

Sub NOhidden_wait3000
'******* シートを表示する場合はクラッシュしません *****
dbFile = "D:\DATA\test02.ods"
oUrl = ConvertToURL(dbFile)

Dim dummy()

oDoc = StarDesktop.loadComponentFromUrl(oUrl, "_blank", 0, Dummy)

wait 3000

End sub

バージョン: (x64)
Build ID: 8f48d515416608e3a835360314dac7e47fd0b821
CPU threads: 2; OS:Windows 10.0; UI render: default;
ロケール: ja-JP (ja_JP); Calc: group


Unsubscribe instructions: E-mail to
Posting guidelines + more:
List archive:
All messages sent to this list will be publicly archived and cannot be deleted


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.