我有一个 3.5 WPF 应用程序,我希望能够在其中打印列表框的内容。我注意到当有足够的项目需要垂直滚动条并且用户向下滚动时,它不会打印上面的任何内容,就像他们刚刚滚动过去的内容一样。有谁知道如何解决这一问题?
Dim pDialog As New PrintDialog
Dim winPrint As Window = GetDowntimeWindow("PrintQueue")
'Show the dialog to ask what printer to use
If pDialog.ShowDialog() Then
'Get the listbox to print
Dim lbxLabels As ListBox = CType(winPrint.FindName("lbxLabels"), ListBox)
pDialog.PrintVisual(lbxLabels, "Labels")
End If