xtremetore.blogg.se

Openoffice for window
Openoffice for window




openoffice for window openoffice for window
  1. #Openoffice for window password#
  2. #Openoffice for window zip#

The following example shows how a textfile separated by a comma in Apache OpenOffice Calc can be opened using the FilterName option.

openoffice for window

UpdateDocMode (Integer) indicates how/if links will be updated. ReadOnly (Boolean) value true loads a document in read-only mode.

#Openoffice for window password#

Values : see .MacroExecMode Password (String) transfers a password for a protected file. MacroExecutionMode (Integer) indicates if document macros may be executed. JumpMark (String) once a document has been opened, jumps to the position defined in JumpMark. Hidden (Boolean) value true loads the document in invisible mode. The filter names available are defined in the \share\config\registry\instance\org\openoffice\office\TypeDetection.xml file.įilterData (String) defines additional options for filters.įilterOptions (String) defines additional options (used by old filters). If is false, template files are loaded for editing.ĬharacterSet (String) defines which set of characters a document is based on.įilterName (String) specifies a special filter for the loadComponentFromURL function. LoadComponentFromURL supports the following options:ĪsTemplate (Boolean) if true, loads a new, untitled document from the given URL. The data field must provide a PropertyValue structure for each option in which the name of the option is saved as a string as well as the associated value. which provides Apache OpenOffice with various options for opening and creating documents. The fourth parameter of the loadComponentFromURL function is a PropertyValue data field. Once the message box has been confirmed, it replaces the content of the window with the test2.odt file. The example first opens the test.odt file in a new window with the frame name of MyFrame. loadComponentFromURL (Url, "MyFrame", SearchFlags, Dummy ) MsgBox "Press OK to display the second document."ĭoc = StarDesktop. See storeAsURL Method Options, below.Ĭreating, Opening and Importing Documentsĭocuments are opened, imported and created using the methodĭim Doc As Object Dim Dummy ( ) Dim Url As String Dim SearchFlags As Long By means of a storeAsURL method option, the user can save the original XML files directly.

#Openoffice for window zip#

Apache OpenOffice therefore compresses the files and saves them as a ZIP file. Since XML is based on standard text files, the resultant files are usually very large. XML-based files can be opened and edited with other programs. A space in a local filename therefore, for example, becomes a %20 in the URL.Īpache OpenOffice documents are based on the XML fileformat. To do this, they are converted into their hexadecimal value in the UTF-8 set of characters and are preceded by a percent sign. All other characters are inserted as escape coding in the URLs. The Internet Standard RFC 1738, upon which this is based, permits use of the 0-9, a-z, and A-Z characters. It then converts a URL into a local filename and also displays this. The example converts a local filename into a URL and displays it in a message box. MsgBox ConvertToUrl ( "C:\doc\test.odt" ) ' supplies file:///C:/doc/test.odt MsgBox ConvertFromUrl ( "file:///C:/doc/test.odt" ) ' supplies (under Windows) c:\doc\test.odt To convert a URL into a local filename, Apache OpenOffice provides the ConvertFromUrl function: To convert local filenames into a URL, Apache OpenOffice provides the ConvertToUrl function. The following path references the test.odt file in the doc directory on the C: drive. If the file name contains sub-directories, then these are separated by a single forward slash, not with a backslash usually used under Windows. Standard file names using this system begin with the prefix file:/// followed by the local path. Since Apache OpenOffice is a platform-independent application, it uses URL notation (which is independent of any operating system), as defined in the Internet Standard RFC 1738 for file names. This includes the way in which file names are structured for Apache OpenOffice documents, as well as the format in which files are saved. When working with Apache OpenOffice documents, it is useful to deal with some of the basic issues of document administration in Apache OpenOffice. ThisComponent returns the last previously active document.īasic Information about Documents in Apache OpenOffice If you are running from within the Basic IDE, debugging or exploring, then StarDesktop returns the Basic IDE itself. The global name ThisComponent generally returns the same object as StarDesktop.CurrentComponent, with one significant advantage. The active document object is accessed in Apache OpenOffice through the StarDesktop.CurrentComponent property, or through ThisComponent. VBA : Whereas the active document in Word is accessed through Application.ActiveDocument and in Excel through Application.ActiveWorkbook, in Apache OpenOffice, the StarDesktop is responsible for this task.






Openoffice for window