8,735
社区成员
发帖
与我相关
我的任务
分享
private void Print_Click(object sender, RoutedEventArgs e)
{
PrintDocument vPrintDocument = new PrintDocument();
vPrintDocument.PrintPage += Print_PrintPage;
vPrintDocument.Print(this.Title);
}
private void Print_PrintPage(object sender, PrintPageEventArgs e)
{
PrintPageView vPrintPage = new PrintPageView;
//向vPrintPage传递数据
e.PageVisual = vPrintPage;
e.HasMorePages = false;
}