Freedom1 Posted May 11, 2007 Share Posted May 11, 2007 Im newly introduced to AutoIt and I have found it extremely flexible for my needs. I used to use WinBatch. Now I want to stretch it by being able to run Crystal Reports v10 (Changing parameters, database locations, etc.) from AutoIt. I searched the forums and found an old (2005) beta of some code to process a Crystal Report. That was developed for a version prior to v10. I was unable to get it to work. Does anyone have an update for that script or can someone provide a method to run Crystal Reports from AutoIt? Can it be done? Examples welcome!!! Freedom1 Link to comment Share on other sites More sharing options...
ptrex Posted May 11, 2007 Share Posted May 11, 2007 @freedom1 I don't have CR 10 but 8.5 so I can test it. But the principles should be the same, as in the example you found in the Example scripts. Sorry for not being able to help here; regards, 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...
Freedom1 Posted May 14, 2007 Author Share Posted May 14, 2007 Ptrex, It was my fault for not using the fix for CR10 correctly. I misread the way it was supposed to be changed. $CRViewer1 = ObjCreate("Crviewer.Crviewer") <----Orig $CRViewer1 = ObjCreate("Crviewer.xxxxxxx") <----To be changed. $CRViewer1 = ObjCreate("Crviewer.CrystalReports10.ActiveXReportViewer.1") <----What I changed it to...didn't work Should be: $CRViewer1 = ObjCreate("CrystalReports10.ActiveXReportViewer.1") <----Works fine. Now I just have to find out how to pass parameters and database locations to it. If you have any knowledge or examples, I'd appreciate them. Thanks, Freedom1 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