use VC++ insert a picture into word
-
Tuesday, May 15, 2012 2:09 AM
hello everyone!i want to insert a picture into a tables by using vc++.so first i create a table.
tables.Add(sel.GetRange(),1,2,&defaultBehavior,&AutoFitBehavior);
table=tables.Item(1);it's 1*2,so i want to insert two pictures into the different cells.
Cell c1=table.Cell(1,1);
CString filePath = "c:\\6.jpg";
CComVariant LinkToFile(false),SaveWithDocument(true);
InlineShape lineshape =inlineshapes.AddPicture(filePath,&LinkToFile,&SaveWithDocument,&vRange);
my idea is choose the cell,the selection the cell,after insert into the first cell. but i don't know how to realize. especially how to decide the path(vRange)?
Thank you very much.My email z1027453200@sina.com.
- Edited by zhang_bin Tuesday, May 15, 2012 2:42 AM
- Changed Type Helen ZhaoModerator Wednesday, May 23, 2012 2:57 AM
All Replies
-
Wednesday, May 16, 2012 5:42 AMproblem solved!Happy,but i don't know how to control the size?
-
Wednesday, May 16, 2012 7:07 AM
how did you solve it ?
you have post three similar threads.
please share your solution with us.
Please mark this reply as answer if it helps you! Thanks for your cooperation! Good Luck to you.
-
Wednesday, May 23, 2012 2:57 AMModerator
Hi zhang_bin,
I'd like to change the type of this thread to "General Discussion" so that we can get more helpful ideas from more members.
Thanks for your understanding and active participation in the MSDN Forum.
Best regards,
HelenHelen Zhao [MSFT]
MSDN Community Support | Feedback to us

