基于窗口的应用程序如何创建一个浏览文件的按钮

问题描述:



我是一个非常新的asp.net,我的要求是:

1.选择文件(文本,doc,asp页).为此,我想创建一个按钮,当我单击该按钮时,它应显示可以从中选择任何一个文件的列表.

2.将所选文件转换为PDF格式.

您能否指导我做到这一点.如果分享任何例子,这将对您有很大的帮助.

谢谢...

Hi,

I am very new asp.net and my requirement is :

1. select file(text,doc,asp pages). For that I wanted to create one button and when I click that button it should display list of the files from that I can select any one.

2. conversion of the selected file into PDF format.

Could you please guide me to do that.It will be great help if share any example.

Thanks...

1)使用文件上传控件浏览文件.
2)检查在ASP.NET服务器上将Word文档转换为PDF [开源pdf库 [
1)Use a file upload control to browse for the files.
2)check Convert Word-Documents to PDF on an ASP.NET Server[^]
open source pdf libraries[^]