Ejemplo n.º 1
0
        public List<PageContent> PrintPage()
        {
            List<PageContent> Pages = new List<PageContent>();

            InitializePages();

            PageContent pageContent = new PageContent();
            FixedPage fixedPage = new FixedPage();

            PrintDialog printDlg = new PrintDialog();

            PrintPreview printPreview = new PrintPreview(m_CaseObject);
            printPreview.Width = printDlg.PrintableAreaWidth;
            printPreview.Height = printDlg.PrintableAreaHeight;

            fixedPage.Children.Add((UIElement)printPreview);
                
            ((IAddChild)pageContent).AddChild(fixedPage);

            Pages.Add(pageContent);

            return Pages;
        }
Ejemplo n.º 2
0
        public List <PageContent> PrintPage()
        {
            List <PageContent> Pages = new List <PageContent>();

            InitializePages();

            PageContent pageContent = new PageContent();
            FixedPage   fixedPage   = new FixedPage();

            PrintDialog printDlg = new PrintDialog();

            PrintPreview printPreview = new PrintPreview(m_CaseObject);

            printPreview.Width  = printDlg.PrintableAreaWidth;
            printPreview.Height = printDlg.PrintableAreaHeight;

            fixedPage.Children.Add((UIElement)printPreview);

            ((IAddChild)pageContent).AddChild(fixedPage);

            Pages.Add(pageContent);

            return(Pages);
        }