Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有基于 wpf 的应用程序,只是想知道如何获得 wpf 控件的打印/打印预览。
就像某些窗口/页面具有面板控件,其中包含多个控件,例如图表 + 图形 + 数据网格(数据网格可能有大量记录,因此带有滚动条)
我想要它的打印版本,但不想只打印视觉部分,还想打印滚动部分......
请提出解决方案。谢谢
无法自动打印适合纸张打印的屏幕。 您需要使用其他方法来打印表格和图表,如下所示: