在ASP.Net C#Web应用程序中打印PDF文档 [英] Print PDF document in ASP.Net C# web application

查看:299
本文介绍了在ASP.Net C#Web应用程序中打印PDF文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须从服务器下载多个PDF文档,并在客户端计算机上全部打印.无需打开打印对话框即可完成此操作.有人可以帮助PDF打印吗?

I have to download multiple PDF documents from server and print all at the client''s machine. Without opening the print dialog box this to has be done. Can Somebody help in PDF printing.

推荐答案

看看这个静默打印pdf. [
Take a look at this article.[^]

A lot of third party softwares (few free) also offer a way to print it silently. Google returns a lot of results when you search for print pdf silently.[^]


私有静态无效RunExecutablePrint(字符串可执行文件,字符串参数)
{
ProcessStartInfo starter =新的ProcessStartInfo(可执行文件,参数);
starter.CreateNoWindow = true;
starter.RedirectStandardOutput = true;
starter.UseShellExecute = false;

流程= new Process();
process.StartInfo =启动器;
process.Start();
Thread.Sleep(20000);
process.CloseMainWindow();
process.Kill();
}


private static void RunExecutablePrint(string executable, string arguments)
{
ProcessStartInfo starter = new ProcessStartInfo(executable, arguments);
starter.CreateNoWindow = true;
starter.RedirectStandardOutput = true;
starter.UseShellExecute = false;

Process process = new Process();
process.StartInfo = starter;
process.Start();
Thread.Sleep(20000);
process.CloseMainWindow();
process.Kill();
}



我需要简单的dll才能在c#.net Web应用程序中进行pdf打印. j我/sendme

malyadri s

I need simple dll for pdf printing in c#.net webapplication. sujest me/sendme

malyadri s


这篇关于在ASP.Net C#Web应用程序中打印PDF文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆