OOo Basic crash course: Working with documents on an FTP server
Wouldn't it be nice if you could access your Writer documents from any computer connected to the Internet and work with them as if they were on your local machine -- especially if this could be done transparently with just a couple of mouse clicks? To be able to do this, you don't have to install a full-blown document management solution or use a third-party file storage service. All you need is an FTP server and an OOo Basic macro.
The macro you are about to create uses a standard technique for opening an existing OpenOffice.org file:
ThisDoc = StarDesktop.loadComponentFromURL("path/to/document.odt", "_blank", 0, Array())
The path/to/document.odt points to the document -- for example, home/user/Documents/Loremipsum.odt on Linux or C:\Documents\Loremipsum.odt on Windows. The clever part here is that OpenOffice.org can handle not only paths to local files, but also FTP links and Web URLs. So the code that opens a document stored on an FTP server looks something like this:
- Login or register to post comments
- Printer-friendly version
- 1355 reads
- PDF version
More in Tux Machines
- Highlights
- Front Page
- Latest Headlines
- Archive
- Recent comments
- All-Time Popular Stories
- Hot Topics
- New Members
digiKam 7.7.0 is releasedAfter three months of active maintenance and another bug triage, the digiKam team is proud to present version 7.7.0 of its open source digital photo manager. See below the list of most important features coming with this release. |
Dilution and Misuse of the "Linux" Brand
|
Samsung, Red Hat to Work on Linux Drivers for Future TechThe metaverse is expected to uproot system design as we know it, and Samsung is one of many hardware vendors re-imagining data center infrastructure in preparation for a parallel 3D world. Samsung is working on new memory technologies that provide faster bandwidth inside hardware for data to travel between CPUs, storage and other computing resources. The company also announced it was partnering with Red Hat to ensure these technologies have Linux compatibility. |
today's howtos
|
Recent comments
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago