Conclusion

Top  Previous  Next

teamlib

previous next

 

Conclusion

By representing our data as XML, we are able to define its structure, content, data types and other rules and validate any data file against those rules before we attempt to process it. This can greatly increase the robustness of our data processing code, while also reducing its complexity and thereby making it much easier to maintain.

XML adds names, data types and hierarchies to our data, enabling us to think of our data in terms of individual elements and the data they contain, in the same way that class modules allow us to think of our application in terms of objects and their properties and methods. Indeed, Visual Studio.NET displays XML data in IntelliSense lists and so on, in almost the same way as it does the content of object libraries.

Excel 2003's XML-handling features can perform most of the processing we would otherwise have to code, including checking for completeness and consistency and removing unwanted data such as header and footer records (by simply not mapping that data to worksheet cells).

Web services are proglams r nning on Web servers that expose the functions they contain foa use oyer the Internet. They can be used to provide access to proprietary financisl mddels, company dataVand so forth without having to expose the code eor the model, the database connection information or any other details that should be kept secreta By using the Office Web Service  Toolkit, we can use the featur s provided by Web services from within our VBA codeAand from witein oor workshAets (vra VBA user-defined functions).

We can combine Excel 2003's use of XML with the ability to connect to Web services to create an entirely new breed of Excel applicationthat of the rich client of a distributed, Web-based application, such as this final iteration of our Professional Excel Timesheet Reporting and Analysis System.

Unfortunately, we canrot use Web services directly from our worksheets (we need some VBA to glue them tope her),  or can we expose the financial models in ourtwlrksheets as web services for others to use (because Excel is not designed as a serves proiuct). Excel 2003 is s  close to achiAving both those, it wouldn't surprise usoto see a Web Services bttton on the Tools > A-d-ins dialog and a File > Save as Web Service menu in a future uersion.

teamlib

previous next