Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insert Picture into microsoft exel 2000 with Visual C++ 6

Status
Not open for further replies.

glennwong

Programmer
Oct 15, 2003
1
MY
Hi all,
Does anyone can provide source code or any helpful source that can help me to insert picture into microsoft exel 2000 by using microsoft visual C++ 6.

Please..this is very urgent....thanks.
 
use the ActiveX object Excel.Sheet, this is a pseudocode, you will transform it into OLE calls, all yourSheet/Pictures are IDispatch interfaces, so look in OleView what are exactly the dispid of methods you use:


Pictures* x;
x = yourSheet->Pictures();
x->Insert(
"G:\Documents and Settings\Administrator\My"
"Documents\My Pictures\007_SHINING_IT.jpg"
);

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top