开发者

Printing Silverlight 4 RichTextBox content

开发者 https://www.devze.com 2023-01-10 13:40 出处:网络
I am using S开发者_StackOverflowilverlight 4 RichTextBox to capture data that will be printed. My problem is when I print using the code below the border surrounding the RichTextBox is also printed, e

I am using S开发者_StackOverflowilverlight 4 RichTextBox to capture data that will be printed. My problem is when I print using the code below the border surrounding the RichTextBox is also printed, even when BorderThickness is set to 0.

  PrintDocument theDoc = new PrintDocument();
            theDoc.PrintPage += (s, args) =>
            {
                args.PageVisual = MyRTB;
                args.HasMorePages = false;
            };


Sorted with BorderBrush="{x:Null}"

0

精彩评论

暂无评论...
验证码 换一张
取 消