Performance Tips

One negative aspect of the reporting methods proposed in this chapter is the time it takes to generate a report. As mentioned earlier, the primary cause of this time hit is the overhead of cross-process-boundary communication. For example, pushing data from Visual Basic into Word crosses at least two process boundaries, possibly more, depending on how your data is retrieved. This situation is improving with each new release of Office and with the improvements in ActiveX and the COM architecture—and, of course, the lightning performance packed into the latest Pentium Pro computers doesn’t hurt.

Many of us, however, are stuck with earlier versions of Office and less powerful computers. If you fall into this category, you’ll need to take into account the performance issues. Here are a few tips for improving performance: