The information in this article applies to:
SUMMARYYou can improve the performance of your Automation code in Visual C++ by using a two-dimensional variant SAFEARRAY to read and write data all at once, and by using the clipboard to copy and paste data. MORE INFORMATION
A common cause of speed problems with Automation involves repetitive reading and writing of data. This is typical for Excel Automation clients. However, most people aren't aware that this data can usually be written or read all at once using a two-dimensional variant SAFEARRAY. Q186120 HOWTO: Use MFC to Automate Excel and Fill a Range with an Array Q186122 HOWTO: Use MFC to Automate Excel and Obtain an Array from a Range Q179706 HOWTO: Use MFC to Automate Excel and Create/Format a New WorkbookAlso, using the clipboard can sometimes improve performance. For instance, you can copy your data to the clipboard, then use Automation to tell the server to perform a paste operation. Or vice- versa; you can tell the server to copy data to the clipboard, and then paste it into your application. Additional query words:
Keywords : kbOutlook kbVC kbVC400 kbVC500 kbVC600 kbOffice2000 |
Last Reviewed: October 7, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |