资 源 简 介
Visual C# MyWinWPF.rar,核心代码分享如下:
private void button1_Click(object sender, RoutedEventArgs e)
{//获取本地打印服务器后台文件的路径
var MyPrintServer = new System.Printing.LocalPrintServer();
string MyInfo = "本地打印服务器后台文件的路径是:" + MyPrintServer.DefaultSpoolDirectory;
MessageBox.Show(MyInfo, "信息提示", MessageBoxButton.OK);
}