· 从 VBA 中使用 Visual Basic .NET 将 word 文档序列化为 XML
Michael Corning
Microsoft Corporation
2002年10月适用于:
Microsoft® word 2002
Microsoft Visual Studio® .NET摘要:学习如何在 Microsoft office Visual Basic for Applications (VBA) 程序中利用 .NET 代...
· Imports System
Imports System.Text
Namespace toExcel '功能:将ASP.net中DataGrid生成Excel文件下载。
'Mountains改进:1、支持中文 2、隐藏列不显示
'日期:2002.10.30
Public Class DataGridToCSV Public Function GenerateFile(ByRef Page As System.Web.UI.Page, ByV...
· 除了采用TblImp导入Excel object库实现Excel的调用外.
其实还可以采用反射的方法获得属性,并进行后期绑定实现
Excel的调用.下面是简单的调用Excel程序.using System;
using System.Reflection;
using System.Windows;
using System.Windows.Forms;class TestLateBound:System.Windows.Forms.Form
{...
· This article covers one of the most common questions I see about getting email sent properly from an ASP or ASP.NET page. How do to setup my pc machine or server to send CDONTS mail. Step 4 is generally what have to be setup. This article covers having a mail program and S...
· System namespace has a Random class which is used for generating random numbers. This article explains how to display a random record from a database table using the random class.The Random class has an overloaded method named Next which will generate random numbers. One vari...
· 数据表单向导Visual Studio .NET 数据表单向导允许您快速连接到数据库,并生成简单的用户界面,用于显示数据并与数据进行交互。要使用数据表单向导,请执行以下步骤:
在 Windows 应用程序项目中,在 Project(项目)菜单上,单击 Add Windows Form(添加 Windows 窗体)。
在 Templates(模板)...
· '假设mCnnDB是个已打开某一数据库的ADO.Connection
'获取数据库中的所有表名关键是用到ADO.Connection的OpenSchema方法
'该方法返回一个只读的数据集,包括系统表和用户表.
'因此,需要一个集合来保存其中的用户表
Public Function GetAllTableName() As System.Collections.ArrayList
D...