打印内存中的PDF列表 [英] Printing a list of PDFs in memory
本文介绍了打印内存中的PDF列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
希望这个问题不会像我的其他帖子一样详细,因为我的问题很简单.
我有一个由报表服务器提供的Byte
数组列表.这些数组是PDF.我希望能够使用用户可以启动并提供进度反馈的应用程序打印这些PDF.
我已经可以做的事
- 使用
Process
类启动PDF阅读器,该阅读器将加载PDF文件且不显示窗口.
我不能做的事
- 打印PDF文档.经过一些研究,我发现将命令行参数传递给程序,该程序需要在注册表中具有一个条目,然后在给定某些参数的情况下指定程序的行为.
- 将
Byte
数组转换为PDF文档.我怀疑这可能比最初预期的要困难得多.
非常感谢
劳伦斯 - Using the
Process
class start a PDF reader which loads a PDF file and doesn''t display a window.
What I can''t do
- Print the PDF document. After some research I have found out that to pass command line arguments to a program that needs to have an entry in the registry which then specifies the behaviour of the program given certain arguments.
- Convert a
Byte
array into a PDF document. I suspect that this may be a great deal harder then first anticipated.
Many thanks
Laurence
推荐答案
"已经发现将命令行参数传递给需要在注册表中具有一个条目的程序,然后该程序会在给定某些参数的情况下指定程序的行为."
从什么时候开始?
"After some research I have found out that to pass command line arguments to a program that needs to have an entry in the registry which then specifies the behaviour of the program given certain arguments."
Since when?
ProcessStartInfo psi = new ProcessStartInfo("MyApp", "My Arguments list /p"); Process.Start(psi);
该程序需要安装,是的.否则,Windows将不知道在哪里可以找到它.
The program needs to be installed, yes. Otherwise Windows doesn''t know where to find it.
这篇关于打印内存中的PDF列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
- Convert a
- Print the PDF document. After some research I have found out that to pass command line arguments to a program that needs to have an entry in the registry which then specifies the behaviour of the program given certain arguments.
Hi Everyone,
This question hopefully wont be as detailed as my other posts as my question is fairly simple.
I have list ofByte
arrays, which are delivered by a report server. These arrays are PDFs. I want to be able to print these PDFs using an application that the user can start off and gives feedback of the progress.
What I can already do
- 将
- 打印PDF文档.经过一些研究,我发现将命令行参数传递给程序,该程序需要在注册表中具有一个条目,然后在给定某些参数的情况下指定程序的行为.
查看全文