private void PrintClick(object sender, RoutedEventArgs e)
{
PrintDialog dialog = new PrintDialog();
if (dialog.ShowDialog() == true)
{
dialog.PrintTicket.PageOrientation=System.Printing.PageOrientation.Landscape;
dialog.PrintVisual(this, "First LandScape");
}
}
You need to add a link to ReachFramework.dll and System.Printing.dll each.
source
share