开发者

Rotate print from WPF DocumentViewer

开发者 https://www.devze.com 2023-03-03 07:17 出处:网络
I\'ve got a WPF dialog containing a DocumentViewer: <DocumentViewer Document=\"{Binding LabelPrint}\" />

I've got a WPF dialog containing a DocumentViewer:

<DocumentViewer Document="{Binding LabelPrint}" />

LabelPrint is a FixedDocument in the ViewModel:

public FixedDocument Etiket开发者_C百科tDruck {get;set;}

Now when the user prints the document from the DocumentViewer, I need to rotate the FixedDocument for printing to landscape (sometimes). How can I tell the FixedDocument (or the DocumentViewer) it needs to be printed in landscape?

0

精彩评论

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