使用VB.NET从每个表SQL数据库收集数据 [英] collection data from each table SQL database using VB.NET

查看:77
本文介绍了使用VB.NET从每个表SQL数据库收集数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好..我现在尝试制作一个Attending System Manament..但是我需要VB.NET的编程帮助,以便从SQL数据库的许多表中收集数据.并将其导出到excel中.

hello guys.. i try to make an Attending System Manament right now..  but i need a bit help from you in programmatically VB.NET about to collecting data from many table in SQL database.. and export it into excel.. 

这里是表格的例子

表格名称:2014年2月3日

table name: 02-03-2014

,然后我尝试像这样(这是示例,我是手工制作的),因此在excel中取得结果

是否有可能像我在excel中手动制作的一样获得相同的结果?

is it possible to make it with the same result just like i made manually in excel?

推荐答案

是的,

有可能,但是您周围有这样的工作,

It is possible, but there's such work around in your part,

如果您有使用Export excel的经验,请使用Interop

If you have an experience using export excel, using Interop

Imports Microsoft.Office.Interop.Excel 

修改单元格范围(<所需的方式>),可能需要合并初始的行和列

Modifying the cell range, <the way you want it>, probably you need to merge your initial rows and columns

range("A1","B1").merge

Range(excelSheet.Cells(1, 1),excelSheet.Cells(1, 10)).Merge

此外:

使用rdlc或Microsoft Report自定义导出文件的简便得多的方法

There's much easier way to customized your own export file using rdlc or Microsoft Report


报告处理方式为:

希望这对您有帮助,

请.被标记为回答您的问题或被标记为有用的

Pls. marked if it answered your question or marked as a helpful


这篇关于使用VB.NET从每个表SQL数据库收集数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆