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 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. Openoffice for window free#If you are looking for a free alternative to Microsoft Office, Apache OpenOffice is a good choice.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. SummaryĪpache OpenOffice is a solid office suite that offers similar functionality to Microsoft Office and is compatible with many industry-standard file formats. Openoffice for window pdf#PDF format for sharing documents across platforms. You can also export OpenOffice files in the. You can open and save files in the OpenOffice proprietary file format or as Microsoft Office file formats, such as. OpenOffice is used to create documents that assist in office productivity and organization, which include presentations, spreadsheets, drawings, diagrams, equations, and text documents.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |