Re: [dev] XStandaloneDocumentInfo - can not write info using oo 2.0.1/oo 1.1.5 ...
Oliver Brinzing wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, as one can read, i still have problems using the XStandaloneDocumentInfo ... using the code snippet to read and write the documentinfo from different files causes the following problems: *.sdw *.sxw *.odt read writeread write read write oo 1.1.5okokok fails fails fails oo 2.0.1fails fails ok fails ok fails can somebody confirm this ? I didn't test it but your data looks reasonable. It is not intended that OOo2 handles sdw-Format in StandaloneDocumentInfo. Is this a problem? Then please file an issue. It is a limitation of the current implementation that writing DocumentInfo to sxw or odt still fails. It could be seen as a bug or an RFE, whatever, but I think that it *should* work. So you could add this to the issue if you want. That OOo115 can't *read* DocumentInfo from odt looks like a bug that wasn't discovered in testing (the ODF implementation in OOo115 is a little bit tricky), but anyway, this bug will surely not become fixed and writing an issue for it would be a waste of time. Best regards, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dev] XStandaloneDocumentInfo - can not write info using oo 2.0.1/oo 1.1.5 ...
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, as one can read, i still have problems using the XStandaloneDocumentInfo ... using the code snippet to read and write the documentinfo from different files causes the following problems: *.sdw *.sxw *.odt read writeread write read write oo 1.1.5okokok fails fails fails oo 2.0.1fails fails ok fails ok fails can somebody confirm this ? Oliver REM * BASIC * Option Explicit Sub Main On Local Error Goto ErrorHandler Dim oSM, oDesk, oInfo As Object Dim sFile as String Dim sTitle as String sFile = E:\test.sdw ' sFile = E:\test.sxw ' sFile = E:\test.odt oSM = CreateObject(com.sun.star.ServiceManager) oInfo = oSM.createInstance(com.sun.star.document.StandaloneDocumentInfo) oInfo.loadFromURL(ConvertToUrl(sFile)) sTitle = oInfo.getPropertyValue(Title) msgBox sTitle oInfo.setPropertyValue(Title, Hello World) oInfo.storeIntoURL(ConvertToUrl(sFile)) Exit Sub ErrorHandler: MsgBox Error() Chr(13) Erl() Chr(13) Err() End Sub - - -- GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFDvAhCTiyrQM/QSkURAsCNAJwJrQZwf2uXQyvE0R2QZ7PjpEEcBQCgjdtN iFAmVAKH+zazmaWqKKMYKPo= =iphg -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]