LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default sending an array to Excel

I would like to see some code building a SAFEARRAY in C++ for
sending to Excel.


This is from MS, might be useful.

How to automate Excel from MFC and Visual C++ 2005 or Visual C++ .NET to fill or obtain data in a range using arrays
http://support.microsoft.com/kb/308407


That MS KB uses the MFC automation library which I am not using
currently so I can not use it for additional code. The MS KB code
used the importing of the Excel object which is specific to the
version of Excel imported. My code is non-specific and can talk to
Excel 1997 to Excel 2010 (and future versions).

That said, I went back to the MS KB and stumbled across "How to
automate Excel from C++ without using MFC or #import"
http://support.microsoft.com/kb/216686
which talks about SAFEARRAYs and is exactly what I wanted !

Of course, this is the most obtuse interface and requires much
reading and rereading in order to begin to understand it.

Thanks,
Lynn
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending An Email In Excel Programmatically W/O Sending An Object [email protected] Excel Programming 8 December 1st 08 09:35 PM
Sending SMS from excel yshridhar Excel Programming 1 October 13th 08 01:47 PM
sending excel Pammy Excel Discussion (Misc queries) 2 October 7th 08 04:05 PM
Sending array data to Word with DDEPoke VC[_2_] Excel Programming 0 November 9th 03 03:19 AM
Sending an array to DLL Function Domagoj Vulin Excel Programming 1 July 17th 03 11:08 AM


All times are GMT +1. The time now is 03:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"