【问题标题】:Unable to print .pdf document using Windows 8 Reader无法使用 Windows 8 阅读器打印 .pdf 文档
【发布时间】:2015-11-01 10:26:25
【问题描述】:

以下代码在 Windows 8 Microsoft Reader 中打开一个 .pdf 文件,但它不打印该文档。此代码从执行 如果无法从 Reader 的命令行进行打印,请告知我们。

SHELLEXECUTEINFO seInfo;
ZeroMemory(&seInfo, sizeof(seInfo));
seInfo.cbSize = sizeof(seInfo);
seInfo.fMask = SEE_MASK_NOCLOSEPROCESS|SEE_MASK_FLAG_DDEWAIT;
seInfo.lpDirectory = NULL;
seInfo.lpClass = NULL;
seInfo.lpIDList = NULL;
seInfo.nShow = SW_NORMAL;
seInfo.hwnd = ::GetForegroundWindow();
seInfo.lpVerb       = _T("open");
seInfo.lpFile       = (const _TCHAR *)szShortPath;//File name including the path
seInfo.lpParameters = _T("/p");
ShellExecuteEx(&seInfo);

【问题讨论】:

  • 我手边没有 Windows 8。 Windows 资源管理器是否提供从上下文菜单打印文件的功能?
  • 尝试在控制台中通过命令行调用它,如果它不起作用,那么它也不会与ShellExecute一起工作。
  • 无法从 Windows 资源管理器上下文菜单打印文件。该命令在命令行中不起作用

标签: pdf printing windows-8


【解决方案1】:

Microsoft Reader 应用似乎没有注册 print 或 printto 动词。可能>>因为在 PrintManager 类中没有用于自动打印的方法。我建议>>>当PDF文件类型的注册程序不>>>>没有注册pint或printto动词时禁用打印功能,并指示用户更改默认的>>>>>PDF文件程序。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-07-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-09-06
    • 1970-01-01
    • 1970-01-01
    • 2016-10-09
    相关资源
    最近更新 更多