[WPF 学习] 7 打印相关的东东
栗子: PrintDialog pd = new PrintDialog(); if (pd.ShowDialog() == true) { DrawingVisual visual = new DrawingVisual(); using (DrawingContext dc = visual.RenderOpen()) { Point p = new Point(0, 0); FormattedText ft = new FormattedText(@"中华人民共和国万岁", System.Globalization.CultureInfo.CurrentCulture, FlowDirection.LeftToRight, new Typeface("黑体"), 20, Brushes.Black, 1); dc.DrawText(ft, p); p.Y += ft.Height; ft = new FormattedText(@"中华人民共和国万岁", System.Globalization.CultureInfo.CurrentCulture, FlowDirection.LeftToRight, new Typeface("楷体"), 20, Brushes.Black, 1); dc.DrawText(ft, p); p.Y += ft.Height; ft =