如何在WinRT中打印字形元素 [英] How To Print Glyph Elements in WinRT

查看:96
本文介绍了如何在WinRT中打印字形元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Path,TextBlock和 Glyph 元素,但是在打印的内容中排除了Glyph.这与 Silverlight 5矢量打印的完全相同的问题十分相似.我从来没有找到解决方案.我是否缺少某些东西,或者WinRT中是否存在相同的问题?

I am trying to print a Canvas with Path, TextBlock and Glyph elements on it, however the Glyphs are excluded in the printed content. This is eerily similar to the exact same problem with Silverlight 5 Vector printing, for which I never found a resolution. Am I missing something or does the same problem exist in WinRT?

作为背景,我想打印XPS文档,但是由于WinRT无法直接打印一个XPS文档,因此我要在每页之外创建一个Canvas,然后可以将其提供给WinRT打印API.除字形丢失外,其他所有方法都没用.

As background, I would like to print an XPS document, but as WinRT cannot print one directly, I am creating a Canvas out of each page, which can then be fed to the WinRT printing API. This works A-OK except that the Glyphs are missing, making the whole scheme rather useless.

有关打印XPS文档,打印字形或确认两种方法均不可行的任何帮助将是有帮助的.

Any help regarding printing an XPS document, printing Glyphs, or confirmation that neither is possible would be helpful.

更新:当UIElement发送到打印机时,似乎还会丢弃ImageBrush元素.

Update: It seems that ImageBrush elements are also discarded when the UIElement is sent to the printer.

推荐答案

在其MSDN论坛上从Microsoft收到以下信息:

Received the following from Microsoft on their MSDN forum:

James,您目前还不能真正在WinRT中打印字形-您将 必须改用TextBlocks.

Hi James, You cannot really print Glyphs in WinRT as yet - you will have to use TextBlocks instead.

这篇关于如何在WinRT中打印字形元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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