Using OpenOffice.org API to Save Files in Excel Format
OpenOffice.org Forum
In this example, you can use OpenOffice's API to store files in specific formats, such as MS Excel 97. Here’s the sample code for setting the filter:Set mySM = CreateObject("com.sun.star.ServiceManager")
Set myArgs(0) = mySM.Bridge_GetStruct("com.sun.star.beans.PropertyValue")
myArgs(0).Name = "FilterName"
myArgs(0).Value = "MS Excel 97"
This code initializes the ServiceManager object and sets a filter to specify the file type when saving. The FilterName property defines the desired file format.
1.04MB
文件大小:
评论区