再发:: 如何实现将image中图片保存到excel和word文件中? 如何实现将image中图片保存到excel和word文件中? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 路过,我只有C#版的:http://expert.csdn.net/Expert/topic/1385/1385328.xml?temp=.4182093protected void getPhoto(string personId,ref PTSWord.Range range) { object LinkToFile = false,SaveWithDocument = true; object Range = System.Reflection.Missing.Value; PTSWord.InlineShape inLineShape; String fileName = String.Empty; fileName = PhotoPath + "\\" + personId + ".jpg"; try { range.Text = ""; inLineShape = range.InlineShapes.AddPicture(fileName,ref LinkToFile,ref SaveWithDocument,ref Range); inLineShape.Width = 80; inLineShape.Height = 103; } catch(Exception e) { Console.WriteLine(e.Message); this.IsExit = true; } return ; } localhost里面调试,图片路径后面多了个“/”,求解决方案! 表名如何使用参数 请问下webservice与WCF有什么区别 关于数据集 C#.net里换行连接符是什么? gridview 中的 radiobox 事件处理。 大家帮我看看这个奇怪的问题。 想做一个留言本,Html标签过滤问题 页面传递变量的问题 datagrid超连接列问题。 求助:基于ASP技术的数据结构教学网站方案设计及主页制作 有关js和.net的两个问题(二)
http://expert.csdn.net/Expert/topic/1385/1385328.xml?temp=.4182093protected void getPhoto(string personId,ref PTSWord.Range range)
{
object LinkToFile = false,SaveWithDocument = true;
object Range = System.Reflection.Missing.Value;
PTSWord.InlineShape inLineShape;
String fileName = String.Empty;
fileName = PhotoPath + "\\" + personId + ".jpg";
try
{
range.Text = "";
inLineShape = range.InlineShapes.AddPicture(fileName,ref LinkToFile,ref SaveWithDocument,ref Range);
inLineShape.Width = 80;
inLineShape.Height = 103;
}
catch(Exception e)
{
Console.WriteLine(e.Message);
this.IsExit = true;
}
return ;
}