回复 1楼lovecomputer的帖子
1.如何设置word文档中表格宽度
- this.textControl1.Tables.Add(10, 10, 11);
- foreach (TableColumn col in this.textControl1.Tables.GetItem(11).Columns)
- {
- col.Width = 100;
- }
复制代码
2.如何设置word文档中图片宽度
- System.Drawing.Image image = System.Drawing.Image.FromFile(@"filename");
- TXTextControl.Image tximage = new TXTextControl.Image(image);
- tximage.Sizeable = false;
- tximage.HorizontalScaling = 50;
- tximage.VerticalScaling = 50;
- this.textControl1.Images.Add(tximage, 1);
复制代码 |