Defining where on the page the flowdocument I am printing will 'start' and 'end'

前端 未结 1 1014
情歌与酒
情歌与酒 2021-01-06 02:39

I am almost done with implementing a printing functionality, but I am having trouble getting the last hurdle done with.

My problem is, that I am printing some report

相关标签:
1条回答
  • 2021-01-06 03:01

    I found it myself - there is a function called pagepadding, where I can set the distance from the four sides of the paper :)

    Fairly easy solution - I just didn't know what to look for

    Example:

    Flowdocument fd = new FlowDocument();
    
    fd.PagePadding = new Thickness(0.25,160,0.25,45);
    
    0 讨论(0)
提交回复
热议问题