.CSV到C#中的数据库导入 [英] .CSV to database import in C#

查看:58
本文介绍了.CSV到C#中的数据库导入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我是C#的新手,我需要对以下查询提出一些建议。

我有.csv文件是100的MB和一些数据用100左右的列和行登录到它。



任务是读取文件并生成图形视图结果记录在其中并保存为.pdf。



有人能建议最好和最有效的方法来实现这个吗?



-Thanks in Advance。

Hello,

I am a newbie to C# and I need some suggestions on the below query.
I have a .csv file which is in 100's of MB's and some data logged into it with some 100's of columns and rows.

The task is to read the file and generate a graphical views of the results logged in it and save it as .pdf.

Can anyone suggest the best and efficient way to implement this?

-Thanks in Advance.

推荐答案

1.对于读取和解析CSV文件,您可以使用 OleDbConnection

这篇文章解释了这一点:使用OleDb导入文本文件(选项卡,CSV,自定义) [ ^ ]



2.Then要生成PDF报告,您可以使用 iTextSharp 库。

您可以查看下一篇文章:Text2PDF [ ^ ]
1.For reading and parsing the CSV file you can use OleDbConnection
Here is an article that explain this: Using OleDb to Import Text Files (tab, CSV, custom)[^]

2.Then for generating PDF report you could use iTextSharp library.
You could have a look in the next article: Text2PDF[^]


这篇关于.CSV到C#中的数据库导入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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