C# printing with WPF

前端 未结 4 1765
囚心锁ツ
囚心锁ツ 2021-01-15 04:30

My application prints (to a printer) the information shown on screen (using the Canvas control) N times.

The process is

The user clicks a button (called Pri

4条回答
  •  粉色の甜心
    2021-01-15 05:02

    Your UpdateText method is all wrong. Each time you call the method you are creating a new string in the textblock. So as a result all you will see is the last call to the routine.

    Instead you should be appending to the text instead of replacing the text.

提交回复
热议问题