dbOleWrapper v0.2
            
                
                    Administrator                
                
                    Member, Moderator, Administrator Posts: 2,507                
            
                        
            
                    dbOleWrapper
This Tiny OCX enables Navision to make use of
- COM Objects which do not have an OCX or AutomationController (e.g. OpenOffice)
- AutomationControllers, with Methods which are using parameters as SAFEARRAYs (e.g. ImageMagick)
First Beta Release - please Test & Enjoy
http://www.mibuso.com/dlinfo.asp?FileID=772
Discuss this download here.
                This Tiny OCX enables Navision to make use of
- COM Objects which do not have an OCX or AutomationController (e.g. OpenOffice)
- AutomationControllers, with Methods which are using parameters as SAFEARRAYs (e.g. ImageMagick)
First Beta Release - please Test & Enjoy
http://www.mibuso.com/dlinfo.asp?FileID=772
Discuss this download here.
0                
            Comments
- 
            dbOleWrapper v0.2
This tiny OCX enables Navision to remote-control OpenOffice over its UNO Interface. Source code included.
In the examples you'll find some samples, showing how to:
- exchange Navision data with OpenOffice.org Calc (Spreadsheet).
- invoke/control ImageMagick.
http://www.mibuso.com/dlinfo.asp?FileID=772
Discuss this download here.0 - 
            I've tried...it works fine! Great!
Just a note: on x64 O.S. you have to copy the file dbolewrap.ocx into "C:\Windows\SysWOW64" directory, to register it successfully
                        * Daniele Rebussi * | * Rebu NAV Diary *0 - 
            Hello,
Can you please tell me how to create new file, and save it as xls WITHOUT opening Calc application (visible to user) ?
I wanted to try "loadComponentFromURL" with "Hidden" parameter, but I didn't find out how to send this parameter using dbOLEwrapper.
Can you please tell me how the code in NAV should look like?
Thank you
SOLVED0 - 
            Hi,
Does an1 know how to run "DispatchExecute" function on "DispatchHelper" object.
I am able initialize "DispatchHelper" but "DispatchExecute" always throw error:
Invoke of executeDispatch failed, Errorcode 0x80020009
What am I doing wrong?
Code:
gOoDoc2 is Oofice document opened by LoadComponentFromUrl method.
Everything works without Error besides "DispatchExecute"OW.CallMethod ( locCurrC, gOoDoc2, 'getCurrentController', 0); OW.CallMethod ( locFrame, locCurrC, 'getFrame', 0); OW.SetParam (1, 'com.sun.star.frame.DispatchHelper') ; OW.CallMethod (Dispatch, locOoClass, 'createInstance', 1) ; OW.SetParam (1, locFrame) ; OW.SetParam (2, '.uno:GoToCell') ; OW.SetParam (3, '') ; OW.SetParam (4, 0) ; fOoCreatePropertyValue(locOoPropertyValue); OW.ArrayCreate (vOoParamArr, 1) ; OW.SetProperty(locOoPropertyValue,'Name','ToPoint'); OW.SetProperty(locOoPropertyValue,'Value','$A$2') ; OW.ArraySetElement(vOoParamArr,1,locOoPropertyValue); OW.SetParamFromVar (5, vOoParamArr) ; OW.CallMethod ( RV, Dispatch, 'executeDispatch', 5);
0 - 
            Hi,
I'm trying to develop a to merge a range of cells, but I have some troubles calling the related function, which raises "Invoke of Merge failed, Errorcode 0x800200005":OW.SetParam (1, StartColNo); OW.SetParam (2, StartRowNo); OW.SetParam (3, EndColNo); OW.SetParam (4, EndRowNo); OW.CallMethod (ooCellRange, ooSheet, 'getCellRangeByPosition', 4) ; OW.CallMethod (ooCellRange, ooSheet, 'Merge' , 0) ;
Are parameters wrong? Merge documentation is provided here.
Could anyone help me?
Thanks* Daniele Rebussi * | * Rebu NAV Diary *0 - 
            Hi,
I'm trying to use this wrapper. But after install it with regsrv32 on Win x64 it is not available in Nav2009 R2 classic client. I see this ocx with 32-bit ReqDllView util. But I don't see it in virtual table "Automation Server". Can anybody help me?
Edit: I accidentally realized my mistake
 I should have chosen the OCX variable type, not Automation. And then dbolewrap.ocx is available.                        0 
Categories
- All Categories
 - 73 General
 - 73 Announcements
 - 66.6K Microsoft Dynamics NAV
 - 18.7K NAV Three Tier
 - 38.4K NAV/Navision Classic Client
 - 3.6K Navision Attain
 - 2.4K Navision Financials
 - 116 Navision DOS
 - 851 Navision e-Commerce
 - 1K NAV Tips & Tricks
 - 772 NAV Dutch speaking only
 - 617 NAV Courses, Exams & Certification
 - 2K Microsoft Dynamics-Other
 - 1.5K Dynamics AX
 - 323 Dynamics CRM
 - 111 Dynamics GP
 - 10 Dynamics SL
 - 1.5K Other
 - 990 SQL General
 - 383 SQL Performance
 - 34 SQL Tips & Tricks
 - 35 Design Patterns (General & Best Practices)
 - 1 Architectural Patterns
 - 10 Design Patterns
 - 5 Implementation Patterns
 - 53 3rd Party Products, Services & Events
 - 1.6K General
 - 1.1K General Chat
 - 1.6K Website
 - 83 Testing
 - 1.2K Download section
 - 23 How Tos section
 - 252 Feedback
 - 12 NAV TechDays 2013 Sessions
 - 13 NAV TechDays 2012 Sessions
 
