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


渡邊です、先日お知らせしていました、マクロでCALCシートを非表示で表示した際のLibreOfficeがクラッシュする簡単なマクロを再現できましたので掲示します。

DドライブにDataフォルダを作って、そこにtest02.odsを入れてください
同じフォルダ内にCALCファイルを作成し、以下のマクロを記述して実行してみてください。

クラッシュを再現する簡単なマクロを作成しました

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

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

Dim aArgs(0) As New com.sun.star.beans.PropertyValue
aArgs(0).Name = "Hidden"
aArgs(0).Value = True
dim dummy()

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

wait 3000

oDoc.store()
oDoc.close(True)

End Sub
'_hidden は IDL ガイドに記載がありませんが、ドキュメントを非表示状態で開くには
' loadComponentFromURL メソッドの最後の引数に MediaDescriptor で Hidden パラメータを指定します。とのこと
'http://hermione.s41.xrea.com/pukiwiki/index.php?OOobbs2%2F106 より


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


Dim dummy()

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

wait 3000

oDoc.store()
oDoc.close(True)

End sub



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

Windows7やMAC・Linuxでも発生しますでしょうか?

-- 
Unsubscribe instructions: E-mail to discuss+unsubscribe@ja.libreoffice.org
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/ja/discuss/
All messages sent to this list will be publicly archived and cannot be deleted

Context


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.