★★★★★如何设置Word表格的列宽?★★★★★ 在你的应用程序里应该引用了Word对象了吧。如果引用了,那么可以这样设置:ActiveDocument.Tables[1].Columns.Width =10; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 试试这一段代码: Selection.SelectColumn '选定一列 Selection.Columns.PreferredWidthType = wdPreferredWidthPoints '设定表格的当前列的宽度 Selection.Columns.PreferredWidth = CentimetersToPoints(4.3) Selection.Move Unit:=wdColumn, Count:=1 Selection.SelectColumn '选定表格的下一列 Selection.Columns.PreferredWidthType = wdPreferredWidthPoints Selection.Columns.PreferredWidth = CentimetersToPoints(4.1) Selection.Move Unit:=wdColumn, Count:=1 Selection.SelectColumn '再次选定下一列 Selection.Columns.PreferredWidthType = wdPreferredWidthPoints Selection.Columns.PreferredWidth = CentimetersToPoints(3.7) Selection.Move Unit:=wdColumn, Count:=1这个例子中要保证当前的指针在单元格内部时才可以的 怎么songboemail(宋波)的代码我一点都看不懂啊??? 请教一个队列的问题 NHibernate.ISession 相关的问题 winform中panel中添加panel SmtpClient的问题 求采集网页的正则表达式 请高手指教一下,遍历硬盘目录后增加节点的问题。非常着急!(50分) Win32_ServerConnection 得到的ComputerName 怎么转成IP地址格式 搜索了一下,没有好的解决办法,一个窗体调用另外一个窗体中函数的问题 如何将一个结构变成char[]或者string 类型? dataset表中增加一列? 关于程序集的强名称 怎么能让打印机停下来???
Selection.SelectColumn '选定一列
Selection.Columns.PreferredWidthType = wdPreferredWidthPoints
'设定表格的当前列的宽度
Selection.Columns.PreferredWidth = CentimetersToPoints(4.3) Selection.Move Unit:=wdColumn, Count:=1
Selection.SelectColumn '选定表格的下一列
Selection.Columns.PreferredWidthType = wdPreferredWidthPoints
Selection.Columns.PreferredWidth = CentimetersToPoints(4.1)
Selection.Move Unit:=wdColumn, Count:=1
Selection.SelectColumn '再次选定下一列
Selection.Columns.PreferredWidthType = wdPreferredWidthPoints
Selection.Columns.PreferredWidth = CentimetersToPoints(3.7)
Selection.Move Unit:=wdColumn, Count:=1
这个例子中要保证当前的指针在单元格内部时才可以的