wpf - How can I get a XpsDocument in landscape within a DocumentViewer -


i'm trying display xpsdocument in landscape mode viewer display in portrait:

memorystream memorystream = new memorystream(); memorystream.write(protectioninfo.data, 0, protectioninfo.data.length);  xpsdocument xpsdocument = xpshelper.createxpsdocument(memorystream);  fixeddocumentsequence sequence = xpsdocument.getfixeddocumentsequence();  documentviewer viewer = new documentviewer(); viewer.document = sequence; window window = new window(); window.content = viewer; window.showdialog(); 

any ideas?

edit:

i used word application configure document (portrait/landscape + pagesize), export xpsdocument. works way.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -