- Portable版のVB制御
Set oSM = WScript.CreateObject("com.sun.star.ServiceManager")
'Set oCR = oSM.createInstance("com.sun.star.reflection.CoreReflection")
Set oDesktop = oSM.createInstance("com.sun.star.frame.Desktop")
Dim aArgs()
Set oDoc = oDesktop.loadComponentFromURL("private:factory/scalc","_blank",0,aArgs)
Set oSelection = oDoc.getCurrentSelection()
If oSelection.supportsService("com.sun.star.sheet.SheetCell") Then
Set oCell = oSelection
ElseIf oSelection.supportsService("com.sun.star.sheet.SheetCellRange") Then
Set oCell = oSelection.getCellByPosition(0,0)
Else
WScript.Quit()
End If
oCell.setValue(1000.0) - Spellcheck Clipboard
var shell=new ActiveXObject("WScript.Shell");
var objServiceManager = new ActiveXObject("com.sun.star.ServiceManager")
//Create the Desktop
var objDesktop = objServiceManager.createInstance("com.sun.star.frame.Desktop")
//Open a new empty writer document
var args=new Array();
var objDocument = objDesktop.loadComponentFromURL("private:factory/swriter", "_blank", 0,args)
//Create a text object
var args=new Array();
//create dispatcher
var doc=objDocument.CurrentController.Frame
var dispatcher = objServiceManager.createInstance("com.sun.star.frame.DispatchHelper")
dispatcher.executeDispatch(doc, ".uno:Paste", "", 0, args)
dispatcher.executeDispatch(doc, ".uno:GoToStartOfDoc", "", 0, args)
dispatcher.executeDispatch(doc, ".uno:SpellDialog ", "", 0, args)
dispatcher.executeDispatch(doc, ".uno:SelectAll", "", 0, args)
dispatcher.executeDispatch(doc, ".uno:Copy", "", 0, args)
shell.popup("Text was checked and the corrected version was copied to the clipboard");
objDocument.close(false) - Andrew Pitonyak
- Document: http://www.pitonyak.org/AndrewMacro.odt
- Book: http://www.hentzenwerke.com/catalog/oome.htm
- Free Info: http://www.pitonyak.org/oo.php
The Complete UNO/C++ Document From Welcome to Serge MoutouThe Complete UNO/C++ Document link master document Download
OOo Master documentchapter 1 : Introduction Download
OOo Chapter 1chapter 2 : How to install the SDK and compile the C++
examplesDownload
OOo Chapter 2chapter 3 : The UNO C++ language Download
OOo Chapter 3chapter 4 : OpenOffice.org's UNO/ automation with a
binary (executable)Download
OOo Chapter 4chapter 5 : OpenOffice Calc Download
OOo Chapter 5chapter 6 : OOoDraw/OOoImpress Download
OOo Chapter 6chapter 7 : Shapes Download
OOo Chapter 7chapter 8 : OOoWriter Download
OOo Chapter 8chapter 9 : General Utilities Download
OOo Chapter 9chapter 10 : IDL Files and Cpp Download
OOo Chapter 10chapter 11 : UNO registry and bootstrapping Download
OOo Chapter 11chapter 12 : Constructing Helpers Download
OOo Chapter 12chapter 13 : Constructing components Download
OOo Chapter 13chapter 14 : Addin : adding OooCalc functions Download
OOo Chapter 14chapter 15 The makefile Download
OOo Chapter 15chapter 16 Filters and XML Download
OOo Chapter 16 - Programming OpenOffice.org with Visual Basic
- Some Introspection techniques (various languages)
火曜日, 12月 16, 2008
VBScriptでOpenofficeの操作の例
登録:
コメントの投稿 (Atom)
0 件のコメント:
コメントを投稿