VC操作word插入图片
我已经实现了插入图片功能,我的报表要求是能够在指定方框内插入图片
tables.Add(sel.GetRange(),1,2,&defaultBehavior,&AutoFitBehavior);
table=tables.Item(1);在这个我生成了一个1乘2的表格,我要在第一个表格内插入图片,该怎么办?
CString filePath = "c:\\6.jpg";
CComVariant LinkToFile(false),SaveWithDocument(true);
InlineShape lineshape =inlineshapes.AddPicture(filePath,&LinkToFile,&SaveWithDocument,&vRange);
这样只能保存到word末尾...不是想要的