资源简介
支持从WORD读取数据,向Word写入表格,数据等,支持写入到指定位置
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.xml;
namespace LaboratoryManagementUI.publics
{
public partial class Fm_Create_Rep : Form
{
private List _li_v_demodata = null;
public Fm_Create_Rep(List li)
{
_li_v_demodata = li;
InitializeComponent();
}
private void button1_Click(object sender EventArgs e)
{
if (radioButton1.Checked)
{
if (txt_No.Text == ““)
{
MessageBox.Show(“请输入方案编号.“);
return;
}
if (_li_v_demodata[0].DemoNameName == “集中器“)
{
System.Threading.Thread th = new System.Threading.Thread(Create3);
th.IsBackground = true;
th.Start(GetBook());
}
else
{
System.Threading.Thread th = new System.Threading.Thread(Create);
th.IsBackground = true;
th.Start(GetBook());
}
}
else
{
//获取书签
System.Threading.Thread th = new System.Threading.Thread(Create2);
th.IsBackground = true;
th.Start(GetBook2());
//开始生成
}
btn_save.Enabled = false;
btn_close.Enabled = false;
}
///
/// 获取书签信息
///
///
private Dictionary GetBook()
{
StringBuilder code = new StringBuilder();
bool ling = false;
foreach (Model.v_DemoData item in _li_v_demodata)
{
if (ling)
{
code.AppendLine(item.DemoCode.Trim());
ling = false;
}
else
{
code.Append(item.DemoCode.Trim() + ““);
ling = true;
}
}
int leng = 25;
Dictionary Book = new Dictionary();
Book.Add(“DemoGG“ SetStr(_li_v_demodata[0].StandardName));
Book.Add(“DemoName“ SetStr(_li_v_demodata[0].DemoNameName));
Book.Add(“DemoNo“ txt_No.Text);
Book.Add(“DemoPCB“ SetStr(_li_v_demodata[0].DemoZBNO));
Book.Add(“DemoPlan“ SetStr(_li_v_demodata[0].PlantName));
Book.Add(“DemoPlan2“ SetStr(_li_v_demodata[0].PlantName));
Book.Add(“DemoType“ SetStr(txt_jyfs.Text));
Book.Add(“DemoXH“ Se
- 上一篇:C#权限管理系统--动态加载菜单栏
- 下一篇:c# 画流程图
相关资源
- C#实现二叉树基本操作,排序,计算和
- C# WinForm读写INI文件
- C#的INI文件读写通用类
- C# 读写excel word(不用安装office)
- 读写 ic card数据( usb)
- C# Cad2006二次开发之图形扩展属性读写
- C#写的文件读写
-
C# 读写xm
l文件(xm l文件生成按钮 - C#游戏辅助helper类[内存多级指针读写
- C#Twincat3读写程序
- 明华URF-35H读卡器 C#读写源码 为大家
- c#读写PDF文件sql
- 基于C#与Mwic_32.dll编写的IC刷卡读写考
-
C# 读写xm
l类 -
读写xm
l源码 - VS 2008 C#读写excel文件
- C#读写EXCEl支持xlsx
- RFID仓储管理系统
- .net生成pdf 读写pdf文件包itextsharp 5.2
- ISO15693协议读写器开发源码
- C#Json文件读写修改类附带操作程序.
- C#使用CH341 SPI模块读写SD卡
- C#基于OPC服务器读写欧姆龙PLC数据
- 0237 C#通过OPC连接PLC读写数据源码.ra
- npoi的excel读写代码C#实现,并用winfo
- PLC通讯实现-C#访问OPCUA实现读写PLC
- DWGdirect.NET文档说明C# 读写CAD文件DWG格
- DWGdirect_NET文档说明C# .NET读写CAD文件
- C#版RFID无线射频识别系统
- 读写锁源代码C#编写
评论
共有 条评论