Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Landscape documents in DocumentViewer

$
0
0

Hi.  I have a Windows Form application in VB 2013 with a Document Viewer control which I am using to display XPS documents. 

Most of the documents I want to display here are reports from a legacy system which were designed to be in landscape format  The XPS documents were created either by printing text reports to the XPS Document Writer printer or by printing PDF reports to the XPS Document Writer printer. In both cases the orientation was set to Landscape and I want to be able to display and print them this way. 

When they are displayed in the Document Viewer control, the text runs sideways.  I believe this is because the pages are oriented this way after "printing" them to XPS.  In other words, they are in landscape format, with the text running parallel to the long edge of the page, but the pages themselves are orientated in portrait.   I would like to be able to convert these documents into documents which have the pages themselves oriented in landscape.  I have tried a number of things, including a MatrixTransform, but have not been able to get this to work.

Does anyone have any suggestions/examples of how to do this? 

Thanks.Mary


Mary Leathem


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>