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
Post a Comment