1
我正在使用Silverlight 5和VB.Net。打印LayoutRoot和適合頁面
我的LayoutRoot是寬度= 1300。
當我打印到紙張或.xps文件時,我失去了輸出的右側。
如何強制Silverlight適合頁面?
我的代碼如下。謝謝,
JT
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