In the Real World A Hobson's Choice: MSGraph Objects Versus PivotCharts
General-purpose OLE 2.0 objects created by mini-servers, such as MSGraph, are endangered species because Web browsers, including IE, don't support them directly. You can open a Word document or Excel spreadsheet in IE and display an embedded MSGraph chart because Word and Excel are OLE 2.0 full servers and act as the graph's container. The catch is that you must have Microsoft Office installed to open the Word or Excel document, plus MSGraph (which Office installs automatically) to view the embedded graph or chart. The Access 2003 runtime version includes a redistributable runtime version of Graph.exe; the runtime version's design features are disabled. PivotCharts and their underlying PivotTables are ActiveX controls, so they're Web-enabled and programmable with VBScript or JavaScript, as well as with VBA when they're used in conventional Access forms and reports. The hierarchy of the PivotChart object model is much simpler and more straightforward than that of MSGraph. PivotTables accept XML-encoded data, so they fit into Microsoft's .NET framework. PivotTables and thus PivotCharts also can manipulate DataCubes generated by SQL Server's Analysis (OLAP) Services. You can expect Microsoft to enhance these versatile controls in subsequent Office upgrades. MSGraph is in maintenance mode and Microsoft provides it only for backward compatibility; there won't be any additions to its current feature set or changes to its object model.
The only difference between the licensed and distributable behavior of OWC 11.0 is lack of design-mode features in the latter. For instance, users can't alter the field complement of PivotTables or perform pivoting operations, but expansion/contraction and setting filters are permitted. This is more of an issue with PivotTables than with PivotCharts; most applications set the properties of PivotCharts either in the Properties dialog for the object or with VBA code. There's no "real alternative" to PivotCharts in the new Access 11 applications you create or, as mentioned early in the chapter, for existing applications you upgrade to ADP and SQL Server. The workaround for the lack of SQL Server crosstab queries described in Chapter 22's "Emulating Jet Crosstab Queries with T-SQL" section is a short-term approach. Dedicate your graph and chart learning investment to PivotCharts; MSGraph is a dead end. |