c# 打印指定路径的文件
此处给出c#打印指定路径的文件方法
- 利用openfiledialog组件选择指定路径的文件
- 打印选择路径的文件
步骤如下
1 窗体:包含一个按钮控件
图1 窗体
2 方法
private void Print_TagetFile()
{
OpenFileDialog tagetFile = new OpenFileDialog();
Process pr = new Process();
if (tagetFile.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{