1
我目前正在开发一个Windows 8 metro应用程序在哪里我需要打印PDF文档点击打印报告按钮。我使用了下面的代码。从Windows 8 metro应用程序使用C#打印pdf documnets
StorageFolder localFolder = Windows.Storage.ApplicationData.Current.LocalFolder;
StorageFile reportFile = await localFolder.GetFileAsync("abc.pdf");
var options = new Windows.System.LauncherOptions();
options.DisplayApplicationPicker = false;
bool success = await Windows.System.Launcher.LaunchFileAsync(reportFile, options);
但它会打开PDF文档,然后用户手动需要打印它。 有没有什么方法可以直接打印PDF文档而不打开它?
我刚刚才知道,除非我们使用第三方工具,否则无法显示或打印来自Windows 8 metro应用程序的PDF。但这可以在Windows 8.1中完成 –
@RaviB它如何在Windows 8.1中完成? –