如何在WPF c#.net中打开打印机窗口? [英] How can I open printer window in WPF c#.net?
本文介绍了如何在WPF c#.net中打开打印机窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我有来自数据库的图像列表。请查看网址。有一个截图图片。
我想打开列表图像的打印屏幕。请找到网址。显示图像列表。
Hello everyone,
I have list of images from database. Please look up on the url. There is an screenshot images.
I want to open print screen for list images . Please find url. That showing list of images.
System.IO.FileInfo[] Files = new System.IO.FileInfo[] { };
foreach (var i in items)
{
/*below code is contain imagepath+imagename*/
/*Convert.ToString(i.FilePath) + Convert.ToString(i.Parent_File_Name) + "_" + Convert.ToString(i.Child_File_Name)*/
System.IO.DirectoryInfo d = new System.IO.DirectoryInfo("?");
Files = d.GetFiles("?");
}
foreach (System.IO.FileInfo file in Files)
{
var p = new Process();
p.StartInfo.FileName = file.FullName;
p.StartInfo.Verb = "Print";
p.Start();
}
如何打开图像组的打印机窗口?
请帮帮我...
我尝试过的事情:
如何打开打印机WPF中的窗口C#.Net [ ^ ]
[ ^ ]
推荐答案
参见 PrintDialog类(System.Windows.Forms) [ ^ ]用于访问打印机。
See PrintDialog Class (System.Windows.Forms)[^] for access to the printers.
这篇关于如何在WPF c#.net中打开打印机窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文