Пример #1
0
        public PrintViewer()
        {
            InitializeComponent();

            reportPrint = new ReportPrint()
            {
                HorizontalAlignment = HorizontalAlignment.Center,
                VerticalAlignment   = VerticalAlignment.Top
            };
        }
Пример #2
0
        public void PrintListClicked(object sender, RoutedEventArgs e)
        {
            ReportPrint reportPrint = new ReportPrint(request)
            {
                HorizontalAlignment = HorizontalAlignment.Center,
                VerticalAlignment   = VerticalAlignment.Top
            };

            List <UserControl> userControls = new List <UserControl>()
            {
                reportPrint
            };

            PrintViewer printViewer = new PrintViewer(userControls, "LetterPortrait");

            printViewer.Show();
        }