OpenFileDialog dialong = new OpenFileDialog();
dialong.Multiselect = false;
dialong.InitialDirectory = @"\\10.130.1.16\sunlight\公用文件\已转外观WI汇总\";
dialong.Filter = "所有文件(*.*)|*.*";
if (dialong.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
string file = dialong.FileName;
PDFIP.Text = file;
//var doc = PdfDocument.Load(@"" + file + ""); // Read PDF file
string destFile = copyfile(file.Substring(37));
PDF.LoadFile(destFile);
}
C# 打开本地文件夹选择内容
最新推荐文章于 2023-03-30 17:00:42 发布