Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-9, 2005 Key Biscayne, Florida Using the Crystal RDC Interface in Visual.

Slides:



Advertisements
Similar presentations
IPS of Boston Checks On Demand! ® Welcome! To navigate this presentation, first click in this window, then use the arrow keys on your keyboard. Welcome!
Advertisements

Copyright © 2008 SAS Institute Inc. All rights reserved. SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks.
Live Excel PRESENTER: Brad Leupen | CTO, Entrinsik |
COM vs. CORBA.
Microsoft Visual Basic: Reloaded Chapter Seven More on the Repetition Structure.
Data Access Worldwide May 16 – 18, 2007 Copyright 2007, Data Access Worldwide May 16 – 18, 2007 Copyright 2007, Data Access Worldwide Building Great Looking.
Feature requests for Case Manager By Spar Nord Bank A/S IBM Insight 2014 Spar Nord Bank A/S1.
IS 1181 IS 118 Introduction to Development Tools VB Chapter 06.
Mark Harr Multi-Tier Development in.Net.
Bar|Scan ® Asset Inventory System The leader in asset and inventory management.
Slide 1 of 9 Presenting 24x7 Scheduler The art of computer automation Press PageDown key or click to advance.
Software Design & Development Software Design & Development Programming Types Event Driven Programming Event driven programming Is a type of programming.
Other Features Index and table of contents Macros and VBA.
Context\Context.wb Library Functions.  Data Driven Programming.  Enhance Existing programs.  Quickly Develop new Programs.  Powerful Set of Library.
Sage CRM Developers Course
Introduction to the Enterprise Library. Sounds familiar? Writing a component to encapsulate data access Building a component that allows you to log errors.
Visual Basic: An Object Oriented Approach 12 – Creating and using ActiveX objects.
Crystal Hoyer Program Manager IIS Team Preview of features that will be announced at MIX09 Please do not blog, take pictures or video of session.
May 16 – 18, 2007 Copyright 2007, Data Access Worldwide May 16 – 18, 2007 Copyright 2007, Data Access Worldwide Build Great Web Application 'Fast and Easy'
Outlook Lesson 5 Managing Contacts Microsoft Office 2010 Advanced Cable / Morrison 1.
Advanced Excel for Finance Professionals A self study material from South Asian Management Technologies Foundation.
ICC Features Features Supporting unlimited projects per ICC –Advanced technical support Friendly registration utility 5 password-levels exceptional workspace.
Stimulsoft Reports.Net 20 Problems which Stimulsoft Reports.Net solves
1 PHP and MySQL. 2 Topics  Querying Data with PHP  User-Driven Querying  Writing Data with PHP and MySQL PHP and MySQL.
COM vs. CORBA Computer Science at Azusa Pacific University September 19, 2015 Azusa Pacific University, Azusa, CA 91702, Tel: (800) Department.
London April 2005 London April 2005 Creating Eyeblaster Ads The Rich Media Platform The Rich Media Platform Eyeblaster.
DataFlex Web Framework Symposium – Part 2 Web Framework Overview John Tuohy Development Team
Multiple Forms, Container Controls, AddHandler This presentation is based on the Forms and ContainerControls VB Projects 1.
Codeigniter is an open source web application. It occupies a very small amount of space in the memory and is most useful for developers who aim to develop.
VDF-SIG Codejock Classes
Inside the WebApp Classes John Tuohy Data Access Worldwide.
‘Tirgul’ # 7 Enterprise Development Using Visual Basic 6.0 Autumn 2002 Tirgul #7.
Tutorial 111 The Visual Studio.NET Environment The major differences between Visual Basic 6.0 and Visual Basic.NET are the latter’s support for true object-oriented.
Chapter 5 Files/Folders needed: \Chapter5\Samples \Chapter5\Labs.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
PowerBuilder Online Courses - by Prasad Bodepudi
Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-9, 2005 Key Biscayne, Florida 1 Pervasive.SQL Version 9 - What’s New.
You can use Access forms to create an interface to your reports and queries. You can add: Buttons to initiate reports and queries Combo Boxes, List.
Open Solutions for a Changing World™ Copyright 2011, Data Access Worldwide May 4, Visual DataFlex 16.1 Released May 2011 John Tuohy CTO Data Access.
Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide Meet Me In Saint Louis October 14-15, 2005 Using the Crystal RDC Interface in.
XRX Basic CRUDS Create, Read, Update and Delete and Search XML Data Date: May 2011 Dan McCreary President Dan McCreary & Associates
P6 BTEC Level 3 Subsidiary Diploma in ICT. Automation The end user of a spreadsheet may be proficient in using the software, but the more that you automate.
Microsoft Office Excel 2007: Programming Business Intelligence Features John Hooper Service Line Architect Microsoft Corporation Jed Farr Senior Consultant.
VISUAL C++ PROGRAMMING: CONCEPTS AND PROJECTS Chapter 5A Repetition (Concepts)
LANDESK SOFTWARE CONFIDENTIAL Tips and Tricks with Filters Jenny Lardh.
Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-9, 2005 Key Biscayne, Florida Visual DataFlex 11 an Overview John J Tuohy.
Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-9, 2005 Key Biscayne, Florida 1 Application Deployment Stephen W. Meeley.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 4: Events Programming with Alice and Java First Edition by John Lewis.
Preface IIntroduction Objectives I-2 Course Overview I-3 1Oracle Application Development Framework Objectives 1-2 J2EE Platform 1-3 Benefits of the J2EE.
Visual Basic for Application - Microsoft Access 2003 Finishing the application.
Introduction to KE EMu Unit objectives: Introduction to Windows Use the keyboard and mouse Use the desktop Open, move and resize a.
Integrating Crystal Reports Into.Net 2.0 Applications Reggie Gentle, Data Management Group.
Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-9, 2005 Key Biscayne, Florida Table Types and Programming Styles John.
The business logic engine for Microsoft IIS Speaker T.M. Arnett.
Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-9, 2005 Key Biscayne, Florida 1 Techniques for using Visual DataFlex.
Data Access Worldwide May 16 – 18, 2007 Copyright 2007, Data Access Worldwide May 16 – 18, 2007 Copyright 2007, Data Access Worldwide Product Roadmap John.
Source Level Debugging of Parallel Programs Roland Wismüller LRR-TUM, TU München Germany.
Data Access Worldwide May 16 – 18, 2007 Copyright 2007, Data Access Worldwide May 16 – 18, 2007 Copyright 2007, Data Access Worldwide The New VDF12.1 Codejock.
ITERATION. Iteration Computers are often used to automate repetitive tasks. Repeating identical or similar tasks without making errors is something that.
Aggregator  Performs aggregate calculations  Components of the Aggregator Transformation Aggregate expression Group by port Sorted Input option Aggregate.
Using Workflow With Dataforms Tim Borntreger, Director of Client Services.
Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-9, 2005 Key Biscayne, Florida Extending Existing Applications to the.
Integrating and Extending Workflow 8 AA301 Carl Sykes Ed Heaney.
7 Copyright © 2006, Oracle. All rights reserved. Creating Experts.
Open Solutions for a Changing World™ Eddy Kleinjan Copyright 2005, Data Access WordwideNew Techniques for Building Web Applications June 6-9, 2005 Key.
CSCI 6962: Server-side Desig n and Programming ASP Server Controls.
Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-9, 2005 Key Biscayne, Florida Welcome to Synergy 2005! Connect! Chip.
Connectivity in DataFlex 19.0
MapReduce “MapReduce allows us to stop thinking about fault tolerance.” Cathy O’Neil & Rachel Schutt, 2013.
Presentation transcript:

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-9, 2005 Key Biscayne, Florida Using the Crystal RDC Interface in Visual DataFlex John J Tuohy Data Access Worldwide

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida What does the Crystal class do?  Allows you to run a Crystal Report from within your VDF Application  At the most basic level you want to select a report and run it Just select a Report, select an output destination and run it  In more advanced cases you want to dynamically change the report at runtime Change the sort order Change record and group selection formulas Change formula and parameter values Change tables being used in a report Generate and use dynamic (non-table based) data

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida How the current Crystal class works  CrystalReport class  Based on crpe32.dll API  Can be distributed royalty free  Implemented using VDF’s External_functions  Uses a flat Interface which passes complex data  Works great

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida Why do we need to change this?  Business Objects / Crystal really wants you to stop using it!  As of Crystal Reports XI It is no longer supported Crystal XI claims it’s not even there (it is) It is very old technology that will not be updated or fixed  It has been replaced with their RDC API

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida How does the new interface work?  Based on their Report Design Component (RDC) API  RDC is a COM interface Imported via FlexCom2 Uses  Craxddrt.dll – automation library  CRViewer.dll – activeX Report viewer  CDO32.dll – automation library  Can be distributed royalty free  Uses the RDC object model Lots of objects with simple interfaces

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida Implementation plans  Provide a new class, cCrystal, which will wrap all of the RDC COM objects  Make it easy to get at the most commonly needed COM objects Simplify the object aggregation process  Use the standard RDC object model and interface  Provide a simple way to view reports within an application  Provide helper interfaces to make it easy to do the most commonly required tasks  For more complicated tasks, provide good samples to show how to do it.  Get out of the way!

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida What are the benefits of using the new class?  You are up to date  You have more features at your disposal (e.g. CDO)  You are using the industry standard method for working with Crystal This lets you use the Crystal Documentation, Crystal Newsgroups, etc. to get development assistance.  Once you “get it”, it's not that hard  The skills you learn can be applied to other COM solutions

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida Compatibility issues  The new class is not designed to be compatible with the old class  You can still use CRPE32 for your old reports  Options we are considering for providing a “compatibility layer” None at all Could provide a limited compatibility layer Could provide a complete compatibility layer  Give us your feedback on this issue.

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida The new class structure/interface  cCrystal class Property Integer peOutputDestination Property String psReportName Procedure RunReport Procedure OnInitializeReport handle hoReport Procedure PrintReport handle hoReport Procedure PreviewReport handle hoReport Procedure ExportReport handle hoReport

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida Samples: Print to viewer // // Simple Print (default is print to preview) // Object oCrystalReport is a cCrystal Set psReportName to "CustLst.rpt" End_Object

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida Samples: Select output destination Object oCrystalReport is a cCrystal Set psReportName to "CustLst.rpt" End_Object Object oPrintToScreen is a Button Procedure OnClick Set peOutputDestination of oCrystalReport to PRINT_TO_WINDOW Send RunReport of oCrystalReport End_Procedure End_Object Object oPrintToExport is a Button Procedure OnClick Set peOutputDestination of oCrystalReport to PRINT_TO_FILE Send RunReport of oCrystalReport End_Procedure End_Object

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida Samples: Select printer via prompt Object oCrystalReport is a cCrystal Set psReportName to "CustLst.rpt" Procedure OnInitializeReport Handle hoReport Forward Send OnInitializeReport hoReport End_Procedure Procedure PrintReport handle hoReport Set piPrinterPrompt of hoReport to True End_Procedure End_Object Object oButton1 is a Button Procedure OnClick Set peOutputDestination of oCrystalReport to PRINT_TO_PRINTER Send RunReport of oCrystalReport End_Procedure End_Object

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida Samples: Output to predefined printer Object oCrystalReport is a cCrystal Set psReportName to "CustLst.rpt" Set peOutputDestination of oCrystalReport to PRINT_TO_PRINTER Procedure OnInitializeReport Handle hoReport Forward Send OnInitializeReport hoReport End_Procedure Procedure PrintReport Handle hoReport Send ComSelectPrinterof hoReport "winspool" "Lexmark 3320" "LPT1:" Set ComPaperOrientationof hoReport to crLandscape Set ComPaperSizeof hoReport to crPaperLetter Set piPrinterCopiesof hoReport to 2 Set pbPrinterCollateof hoReport to FALSE Forward Send PrintReport hoReport End_Procedure End_Object

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida Samples: Output to MAPI – no prompt Object oCrystalReport is a cCrystal Set psReportName to "CustLst.rpt" Set peDestination to Print_to_File Procedure ExportReport Handle hoReport Handle hoExport Get ExportObject of hoReport to hoExport Set pbPromptExportof hoReport to False Set ComDestinationTypeof hoExport to crEDT MAPI Set ComMailToListof hoExport to Set ComMailSubjectof hoExport to "Testing" Set ComMailMessageof hoExport to "This is a test" Set ComExportFileNameof hoExport to "MyReport.pdf" Set ComFormatTypeof hoExport to crEFTPortableDocFormat Forward Send ExportReport hoReport End_Procedure End_Object

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida Samples: Assign selections, formulas and sorts Object oCrystalReport is a cCrystal Set psReportName to "CustLst.rpt" Procedure OnInitializeReport Handle hoReport : // set record selection formula Get Value of oForm1 to sState Set ComRecordSelectionFormula of hoReport to ('{Cust.State}="' * sState * '"}') // set a formula Send AssignFormula of hoReport "Company Name" '"Data Access Corporation"' // assign a sort order Send DeleteSortOrder of hoReport Send AppendSortField of hoReport "Cust" "State" crAscendingOrder Send AppendSortField of hoReport "Cust" "Name" crDescendingOrder End_Procedure End_Object

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida Samples: Using CDO (dynamic data sources) Object oReport is a cCrystal Set psReportName To "PercentageFilled.rpt" Procedure OnInitializeReport Handle hoReport Handle hoCDO Integer iItem Variant[][3] vData Forward Send OnInitializeReport hoReport Get CreateCDO of hoReport "Stuff.ttx" to hoCDO If hoCDO begin Direct_input "c:MyListOfStuf" While (not(SeqEof)) Readln vData[iItem][0], vData[iItem][1], vData[iItem][2] Increment iItem End // Add rows to CDO object Send ComAddRows of hoCDO vData End End_Procedure // OnInitializeReport End_Object // oReport

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida Samples: Using CDO with Code Validation Tables Object oReport is a cCrystal Set psReportName To "PercentageFilled.rpt" Procedure OnInitializeReport Handle hoReport Handle hoCDO Variant[][2] vData Forward Send OnInitializeReport hoReport Get CreateCDO of hoReport "States.ttx" to hoCDO Get TableData of Customer_State_VT to vData Send ComAddRows of hoCDO vData End_Procedure // OnInitializeReport End_Object // oReport