本文介绍了使用c#应用程序打印tiff文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 大家好... 我正在尝试通过我的c#application.in文件列表存储在网络路径中的大量tiff文件显示在datagridview中。通过上下文菜单条我试图打印选定的文件。 以下是我的打印代码... ProcessStartInfo psi = new ProcessStartInfo(); psi.Arguments =/ P \+ dataGridView1.SelectedRows [0] .Cells [7] .Value.ToString()+ \; psi.FileName = dataGridView1.SelectedRows [0] .Cells [7] .Value.ToString(); //休息。 psi.Verbs = {打开,打印}; psi.Verb =打印; Process.Start(psi).WaitForExit(); 每当我点击cntxtstrip所选文件在MS-Picture管理器中打开而不是打印..我想将所选的tiff文件直接发送到printter而不显示文件.. 请帮我解决这个问题......... 解决方案 hello all...i am trying to print huge amount of tiff files stored in a network path through my c# application.list of files are displayed in datagridview. through context menu strip i am trying to print selected files.below is my code for printing... ProcessStartInfo psi = new ProcessStartInfo(); psi.Arguments = "/P \"" + dataGridView1.SelectedRows[0].Cells[7].Value.ToString() + "\""; psi.FileName = dataGridView1.SelectedRows[0].Cells[7].Value.ToString(); //Break. psi.Verbs = { "Open", "Print" }; psi.Verb = "Print"; Process.Start(psi).WaitForExit();whenever i click on cntxtstrip the selected file opens up in MS-Picture manager rather than printing.. i want to send the selected tiff files directly to printter without showing the file..Please help me to solve this issue......... 解决方案 这篇关于使用c#应用程序打印tiff文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-04 02:24
查看更多