需要意见和建议。数据库还是StreamWriter? [英] Need opinion and advice. Database or StreamWriter?

查看:64
本文介绍了需要意见和建议。数据库还是StreamWriter?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个多个文本框表单,该表单将由用户完成并导出为PDF。我不确定如何创建它。我应该创建一个数据库吗?使用StreamWriter?一种不同的方法?我之前从未创造过这样的东西,而且我无休止地搜索过。



之前我曾经使用过StreamWriter,但我只能将它应用到一个文本框中。我还希望用户能够保存他们的输入并打开它们(MenuStrip)。



有什么建议吗?此致,提前感谢!

I'm trying to create a multiple textbox form that will be completed by the user and exported to PDF. I'm not sure about how to create it. Should I create a database? Use StreamWriter? A different approach? I've never created anything like this before and I've searched endlessly.

I've used StreamWriter before, but I could only apply it one textbox. I would also like the user to be able to save their inputs and open them (MenuStrip).

Any advice? Sincerely, thanks in advance!

推荐答案

您似乎对此方法感到有些困惑。您说您要将用户的数据导出为PDF文件,而不是询问数据库或Streamwriter。那么,它是什么?如果是数据库,那么看看SQL服务器。如果StreamWriter非常简单,只需用一些分隔符来编写文本项。如果是PDF,那么您很可能需要使用 iTextSharp [ ^ ]。



将菜单条添加到Windows表单只是一个问题从工具箱中拖出一个。
You seem to be somewhat confused about the approach. You say that you want to export the user's data to a PDF file, and than ask about Database or Streamwriter. So, which is it to be? If it's Database, then look at SQL server. If StreamWriter, that is quite straightforward, just write the text items with some separator character(s). If PDF then you most likely need to use iTextSharp[^].

Adding a menu strip to a Windows form is just a matter of dragging one from the Toolbox.


这篇关于需要意见和建议。数据库还是StreamWriter?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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