ptrex Posted July 28, 2013 Share Posted July 28, 2013 (edited) QlikView - Data Visualisation Tool This powerfull Data Visualisation Tool, has an extensive COM object Model to control the application QlikView Examples The good news is they have a free fully functional working version for personal use. Free Download This will get you started. expandcollapse popup$oMyError = ObjEvent("AutoIt.Error","MyErrFunc") $Qview = ObjCreate("QlikTech.QlikView") if IsObj($Qview) Then MsgBox(0,"",$Qview.OSName & " " &$Qview.OSVersion) Else MsgBox(0,"","NOK") EndIf $Qview.MsgBox("QlikView Version " & $Qview.QvVersion ) $Qview.OpenDoc("C:\QlikView\SALES per Region.qvw") WinSetState("QlikView", "", @SW_MAXIMIZE) $ActiveDoc = $Qview.ActiveDocument ; INSERT HERE and start every call with "QvDoc." $Sheet = $ActiveDoc.ActivateSheet("Sales By Region - YTD") $Sheet.FitZoomToWindow ConsoleWrite($ActiveDoc.GetVariable("vCurrentYear") & @CRLF) ConsoleWrite($ActiveDoc.GetPathName & @CRLF) ;$Qview.Quit Func MyErrFunc() $HexNumber=hex($oMyError.number,8) Msgbox(0,"COM Test","We intercepted a COM Error !" & @CRLF & @CRLF & _ "err.description is: " & @TAB & $oMyError.description & @CRLF & _ "err.windescription:" & @TAB & $oMyError.windescription & @CRLF & _ "err.number is: " & @TAB & $HexNumber & @CRLF & _ "err.lastdllerror is: " & @TAB & $oMyError.lastdllerror & @CRLF & _ "err.scriptline is: " & @TAB & $oMyError.scriptline & @CRLF & _ "err.source is: " & @TAB & $oMyError.source & @CRLF & _ "err.helpfile is: " & @TAB & $oMyError.helpfile & @CRLF & _ "err.helpcontext is: " & @TAB & $oMyError.helpcontext _ ) SetError(1) ; to check for after this function returns Endfunc Edited January 30, 2014 by ptrex Digisoul 1 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 Link to comment Share on other sites More sharing options...
Tjalve Posted January 28, 2014 Share Posted January 28, 2014 This is AWSOME! Ive started messing abit with your example code but i cant get the "change sheet" to work. And also i cant read a varibale. I the first error i get: 80020009 (Unspecified Error) The secound is: Variable must be of type "Object". Error: 000000A9 Link to comment Share on other sites More sharing options...
Andreik Posted January 28, 2014 Share Posted January 28, 2014 Looks great but where is SALES per Region.qvw? An example file is welcome. Link to comment Share on other sites More sharing options...
Tjalve Posted January 28, 2014 Share Posted January 28, 2014 I actually got this to work pretty good (just testing). And im now able to do several selections and loop on a field and print a specific report. I thank you for getting me started on this. Link to comment Share on other sites More sharing options...
Rickname Posted January 29, 2014 Share Posted January 29, 2014 (edited) What does this and for what is useful ? Edited January 29, 2014 by Rickname Link to comment Share on other sites More sharing options...
ptrex Posted January 30, 2014 Author Share Posted January 30, 2014 @Andreik I can't share the SALES per Region.qvw file because it holds company information, sorry And secondly using the Free version you can't share the qvw files. There is alwas a catch using a free version. @Tjalve Nice to see you like it. @Rickname I updated the links in the first post. It holds a product demo. Enjoy! ptrex 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 Link to comment Share on other sites More sharing options...
Andreik Posted January 31, 2014 Share Posted January 31, 2014 That's ok, I asked just to see an example because it looks very complicated for me now. From what I saw on google, QlickView it's pretty good as data visualisation so I have to read the help file because I like it. Link to comment Share on other sites More sharing options...
ptrex Posted January 31, 2014 Author Share Posted January 31, 2014 @Andreik, Good to see you like it. Rgds ptrex 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 Link to comment Share on other sites More sharing options...
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