我正在使用 Silverlight 5 和 VB.Net。
我的 LayoutRoot 是 Width=1300。
当我打印到纸张或 .xps 文件时,我丢失了输出的右侧。
如何强制 Silverlight 适合页面?
我的代码如下。谢谢,
捷通
Imports System.Windows.Printing
Partial Public Class Page3
Inherits Page
Public WithEvents pd As New PrintDocument()
Public Sub New()
InitializeComponent()
pd = New PrintDocument()
Private Sub Button1_Click(sender As Object, ByVal e As RoutedEventArgs) Handles Button1.Click
pd.Print("People Framework")
End Sub
Private Sub pd_PrintPage(ByVal sender As Object, ByVal e As PrintPageEventArgs) Handles pd.PrintPage
e.PageVisual = LayoutRoot
End Sub