If I use
- Code: Select all
_document.PrintSettings.Landscape = true;
_document.PrintSettings.SelectPageRange(1, 2);
_document.PrintSettings.SelectMultiPageLayout((int)1, (int)2);
Stream [] streamPdf = _document.SaveToStream (FileFormat.PDF);
pdfDocumentViewer1.LoadFromStream (streamPdf [0]);
pdfDocumentViewer1.PrintSettings.Copies = document.PrintSettings.Copies;
pdfDocumentViewer1.PrintSettings.Landscape = document.PrintSettings.Landscape;
pdfDocumentViewer1.PrintSettings.SelectPageRange(
_document.PrintSettings.PrintFromPage,
_document.PrintSettings.PrintToPage);
pdfDocumentViewer1 shows me a document without print settings.
I am interested in settings such as Landscape, SelectMultiPageLayout, PageFrom and PageTo.
And also why PdfViewer and PdfDocumentViewer do not accept PdfDocument objects. Only File or stream.
Thank.