Apache OpenOffice (AOO) Bugzilla – Issue 122450
insertDocumentFromUrl not working with ftp url
Last modified: 2022-10-28 12:54:31 UTC
in Openooffice 3.4.1 the following Macro that works on earlier versions (till 3.2.1) will trhow this error "com.sun.star.lang.WrappedTargetException Message : Can't read contents! Target Exception : Type:com.sun.star.packages.ZipIoException Message: C:/AOO/sources/aoo340SVN/main/package/source/zippackage/ZipPackage.cxx:<unknown>:800;Bad Zip File.." Sub inserisciCodificati REM Dim InputVal As String Dim Fcodif As String Dim Doc As Object Dim Cursor As Object Dim Valori(1) as new com.sun.star.beans.PropertyValue Dim oDocument As Object Dim oText As Object Dim oViewCursor As Object Dim oTextCursor As Object Fcodif = "ftp://user@10.0.0.56/codificati/"+Fcodi+".sxw" oDocument = ThisComponent oText = oDocument.Text oViewCursor = oDocument.CurrentController.getViewCursor() oTextCursor = oText.createTextCursorByRange(oViewCursor.getStart()) oTextCursor.insertDocumentFromURL(Fcodif,Valori()) End Sub In Variable Fcodif is stored the path of the file it has to be imported. If i change the Path to something loccal as "file:///C:/Users/user/Desktop/test.sxw" everything works fine. Thanks in Advance
This should be fixed with revision 1488548 Try with a Developer Snapshot build: https://cwiki.apache.org/confluence/display/OOOUSERS/Development+Snapshot+Builds#DevelopmentSnapshotBuilds-AOOSnapshotfullsets
(In reply to Ariel Constenla-Haile from comment #1) > This should be fixed with revision 1488548 > > Try with a Developer Snapshot build: > https://cwiki.apache.org/confluence/display/OOOUSERS/ > Development+Snapshot+Builds#DevelopmentSnapshotBuilds-AOOSnapshotfullsets Thanks so much it Works !! I installed it on some client to test properly . I'll report bugs here if found. last Quetion. When will be relased the new version? Thanks Again
(In reply to ced from comment #2) > last Quetion. When will be relased the new version? by the end of June. You can subscribe to the announcements mailing list (it is a low traffic mailing list): http://openoffice.apache.org/mailing-lists.html#announce-mailing-list