roy Posted June 21, 2005 Posted June 21, 2005 This is a simple example of how to Embed an Excel spreadsheet using Microsoft Office Web Component (OWC). Have Fun! Roy EmbedXlsSheet.au3
GrungeRocker Posted June 22, 2005 Posted June 22, 2005 is not working-.- [font="Verdana"]In work:[list=1][*]InstallIt[*]New version of SpaceWar[/list] [/font]
ptrex Posted June 23, 2005 Posted June 23, 2005 @Analritter It is working !! But you might need to change the version of Office you are using. ;9 = Office 2000 (?) , 10 = Office XP , 11 = Office 2003 ObjCreate("OWC10.Spreadsheet.10") @Roy Nice job. COM object integrated in AutoIt is the BEST thing that happened lately. Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New
GrungeRocker Posted June 23, 2005 Posted June 23, 2005 @AnalritterIt is working !! But you might need to change the version of Office you are using.;9 = Office 2000 (?) , 10 = Office XP , 11 = Office 2003 ObjCreate("OWC10.Spreadsheet.10")@RoyNice job. COM object integrated in AutoIt is the BEST thing that happened lately.<{POST_SNAPBACK}>im not using office... im using open office... [font="Verdana"]In work:[list=1][*]InstallIt[*]New version of SpaceWar[/list] [/font]
Guest huuugo Posted June 24, 2005 Posted June 24, 2005 The code throws the following error: Line 30 (... MsgBox(0,"Evaluate=AVERAGE(5,15,25,33)",$oSpreadSheet.ActiveSheet.Evaluate("=AVERAGE(5,15,25,33)")) MsgBox(0,"Evaluate=AVERAGE(5,15,25,33)",$oSpreadSheet.ActiveSheet.E^ERROR Error: Unable to parse line
snaileater Posted June 28, 2005 Posted June 28, 2005 i find this method just amazing ... i made some small experiments with that code. i have windows XP and only office 2000 ... the right syntax i found for line 7 is the following : $oSpreadSheet = ObjCreate("OWC.Spreadsheet") [found a bit by chance...] i got errors for methods autofit and evaluate which don't seem to be supported in my context (pb of OWC version ?) ... the most complicated in this OWC programming i really discover is getting the right syntax and the way to call object ... where do u guys find good reference about OWC programming ? thanks for ur help !
kjactive Posted June 29, 2005 Posted June 29, 2005 Well the references is spread around related to the objects but a good place to start is this link:http://msdn.microsoft.com/office/understan...tionalresourcesBe avare of the security problem related to enbed activeX components...kjactive Au3PP 4.1 - Autoit3 preprocessor, optimize speed, performance to scripts and do executes....[/url]Au3Calibur - Create libraries of commonly used code excerptsWords manipulate UDF, functions that is lent from the rexx language, topics and index file includedCustomDialog UDF to include custom made dialogs like a extended colorpick requester to scripts...[url="ftp://fritidshjemmet.com/Autoit3/SysColor.zip"]SysColor UDF a low level color library to manipulate RGB and Hex values...Shell32 UDF to Automate Windows® operating tasks from native dialog and Wizards browsers... Optimized the CodeWicard with options to generate browser code etc...
kjactive Posted July 2, 2005 Posted July 2, 2005 (edited) Just a Word ObjCreate example - There's a lot of options to this control but I could not make it embedded so I skipped the project, maýbe someone else can do the trick but I'm not shure that this particulare object can be made embedded at all...$oWD = ObjCreate("Word.Application") $GUIActiveX = GUICtrlCreateObj( $oWD, 0, 0 , 640 , 480 ) $SinkObject = ObjEvent($oWD,"IEEvent_","Word"); Event dummy SetAppOptions($oWD) $filein = 'C:\\Dokumenter\\Text.doc'; must exist With $oWD .Documents.Open($filein) .Visible = True; do not change this .Caption = "My New word title" .DisplayStatusBar = True ;.Documents.Add($filein) EndWith MoveResizeWindow($oWD,100,150,600,300) ;$oIE.Documents.Save() ;$oIE.Quit Exit Func MoveResizeWindow($o,$x,$y,$w,$h) $o.Move($x, $y) $o.Resize($w, $h) EndFunc Func SetAppOptions($o) ;Set various application options. $o.Options.BackgroundSave = False $o.Options.Overtype = False EndFuncInformation can be found here:http://msdn.microsoft.com/library/default....nproperties.aspkjactive Edited July 2, 2005 by kjactive Au3PP 4.1 - Autoit3 preprocessor, optimize speed, performance to scripts and do executes....[/url]Au3Calibur - Create libraries of commonly used code excerptsWords manipulate UDF, functions that is lent from the rexx language, topics and index file includedCustomDialog UDF to include custom made dialogs like a extended colorpick requester to scripts...[url="ftp://fritidshjemmet.com/Autoit3/SysColor.zip"]SysColor UDF a low level color library to manipulate RGB and Hex values...Shell32 UDF to Automate Windows® operating tasks from native dialog and Wizards browsers... Optimized the CodeWicard with options to generate browser code etc...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now