摘要: 1 Public Class ExportWord 2 3 Dim wordApp As Word.Application = New Word.Application() 4 Dim wordDocu As Word.Document = New Word.Document() 5 Dim myNothing As Object = Missing.Value 6 7 Public Function CreateWord() As Boolean 8 wordDocu = wordApp.Documents.Add(myNothing, ... 阅读全文
posted @ 2014-03-25 15:09 IT新秀(星火燎原) 阅读(300) 评论(0) 推荐(0) 编辑
摘要: SQL中on条件与where条件的区别 数据库在通过连接两张或多张表来返回记录时,都会生成一张中间的临时表,然后再将这张临时表返回给用户。 在使用left jion时,on和where条件的区别如下: 1、 on条件是在生成临时表时使用的条件,它不管on中的条件是否为真,都会返回左边表中的记录。 2 阅读全文
posted @ 2014-03-12 16:28 IT新秀(星火燎原) 阅读(2997) 评论(0) 推荐(0) 编辑
摘要: 概要: excel导出在C#代码中应用己经很广泛了,我这里就做些总结,供自己和读者学习用。Excel知识点。一、添加引用和命名空间添加Microsoft.Office.Interop.Excel引用,它的默认路径是C:\Program Files\Microsoft Visual Studio 9.0\Visual Studio Tools for Office\PIA\Office12\Microsoft.Office.Interop.Excel.dll代码中添加引用using Microsoft.Office.Interop.Excel;二、Excel类的简单介绍此命名空间下关于Excel 阅读全文
posted @ 2014-03-11 22:36 IT新秀(星火燎原) 阅读(118) 评论(0) 推荐(0) 编辑