C# 如何在wpf C中打印无背景支票#
我想打印支票,所以我用一张背景图像将文本块放在正确的位置,以便文本应该放在正确的位置。我的要求是我必须将支票放在打印机中,并且我必须显示支票上的值,所以我的意图是打印后不应在支票上显示图像C# 如何在wpf C中打印无背景支票#,c#,wpf,devexpress-wpf,C#,Wpf,Devexpress Wpf,我想打印支票,所以我用一张背景图像将文本块放在正确的位置,以便文本应该放在正确的位置。我的要求是我必须将支票放在打印机中,并且我必须显示支票上的值,所以我的意图是打印后不应在支票上显示图像 你的代码背后的按钮点击应该是这样的希望它的工作 grdCheque.Background = new SolidColorBrush(); PrintDialog dialog = new PrintDialog(); if (dialog.ShowDialog() == t
你的代码背后的按钮点击应该是这样的希望它的工作
grdCheque.Background = new SolidColorBrush();
PrintDialog dialog = new PrintDialog();
if (dialog.ShowDialog() == true)
{
dialog.PrintVisual(grdCheque, "grdCheque");
this.Close();
}
grdCheque.Background = new SolidColorBrush();
PrintDialog dialog = new PrintDialog();
if (dialog.ShowDialog() == true)
{
dialog.PrintVisual(grdCheque, "grdCheque");
this.Close();
}