12 2019 档案

c# 利用word 软件生成word里面的table
摘要:public static void GenerateWordTable(string title) { Range rng=CaCheContext.doc.Range(); Table table= CaCheContext.doc.Tables.Add(rng, 3, 3,true,true); table.Rows[1].Cells[1].Range.Text = "图表1:" + tit 阅读全文

posted @ 2019-12-31 13:25 GIS-MAN 阅读(538) 评论(0) 推荐(0) 编辑

c# 获得当前打开的word 文档
摘要:Microsoft.Office.Interop.Word.Application wdApp = (Microsoft.Office.Interop.Word.Application)System.Runtime.InteropServices.Marshal.GetActiveObject("Word.Application"); Microsoft.Office.Interop.Word.D 阅读全文

posted @ 2019-12-30 10:24 GIS-MAN 阅读(1331) 评论(0) 推荐(0) 编辑

vsto c# 修改图表chart 的排列方式 和宽度
摘要:public void ResizeChartPoint(Series Orig) { Microsoft.Office.Interop.Excel.Points points1 = Orig.Points(); for (int j = 1; j <= points1.Count; j++) { points1.Item(j).PictureType = Microsoft.Office.Int 阅读全文

posted @ 2019-12-26 11:22 GIS-MAN 阅读(584) 评论(0) 推荐(0) 编辑

vsto c# 获取word里面的图片并保存
摘要:internal void GetEmbeddedImages() { int i = 0; Document doc = Globals.ThisAddIn.Application.ActiveDocument; foreach (Microsoft.Office.In... 阅读全文

posted @ 2019-12-24 14:00 GIS-MAN 阅读(1294) 评论(0) 推荐(0) 编辑

vsto 将图片加入到word里面
摘要:private void AddPictoWord() { string folderpath = @"C:\Users\k0021213\Pictures\QQ浏览器截图"; DirectoryInfo dicrectory = new DirectoryInfo(folderpath); FileInf... 阅读全文

posted @ 2019-12-24 13:28 GIS-MAN 阅读(619) 评论(0) 推荐(0) 编辑

c# VSTO 将word 里面的图表保存成图片
摘要:private void button1_Click(object sender, RibbonControlEventArgs e) { Document doc = Globals.ThisAddIn.Application.ActiveDocument; Paragraphs pp= doc.Content.Paragraphs; Form1 form = new Form1(); form 阅读全文

posted @ 2019-12-23 14:46 GIS-MAN 阅读(838) 评论(0) 推荐(0) 编辑

excel 知识备忘
摘要:另一种填充图表线颜色的方法 阅读全文

posted @ 2019-12-17 10:41 GIS-MAN 阅读(250) 评论(0) 推荐(0) 编辑

vsto 以隐藏的方式打开一个excel 文件 并获得excel文件的缩略图
摘要:public byte[] GetExcelPictureFile(string filepath) { Workbook workbook=null; Microsoft.Office.Interop.Excel.Application excelApp = newMicrosoft.Office 阅读全文

posted @ 2019-12-11 16:11 GIS-MAN 阅读(880) 评论(0) 推荐(0) 编辑

导航

< 2025年4月 >
30 31 1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 1 2 3
4 5 6 7 8 9 10
点击右上角即可分享
微信分享提示