从数据库导出数据到word、excel、
txt 收藏 using System; using System
Data; using System
Drawing; using System
SqlClient; using Excel; using Word; using System
IO; namespace Common { /// /// 把数据导入到
xls 文件中 /// public class Export { private const string DATAWORDPATH = @"C:\folder\doc\datadoc\"; private const string IMAGEWORDPATH = @"C:\folder\doc\imagedoc\"; private const string IMAGEPATH = @"C:\folder\image\"; private const string EXCELPATH = @"C:\folder\excel\"; private const string TXTPATH = @"C:\folder\txt\"; private const string IMAGEPOSTFIX = "
bmp"; private const string WORDPOSTFIX = "
doc"; private const string EXCELPOSTFIX = "
xls"; private const string TXTPOSTFIX = "
txt"; private const int DATADISTANCE = 5; private const int TABDISTANCE = 8; public Export() { // // TODO: 在此处添加构造函