Witam,
Mam płótno canvas którego całą zawartość chciałbym wydrukować na kilku stronach A4.
Dotychczasowa metoda drukuje jedynie fragment płótna a chciałbym aby drukowała sie każda jego część na kilku kartkach.
Jak to zrobić?
class result
{
public string Comments { get; set; }
}
private void PrintCanvas_Click(object sender, RoutedEventArgs e)
{
result res = new result { Comments = "Szablon czcionek" };
Dispatcher.Invoke(DispatcherPriority.Loaded, new Action(delegate { this.DataContext = res; }));
System.Threading.Thread.Sleep(500);
Dispatcher.Invoke(DispatcherPriority.Loaded, new Action(delegate
{
PrintDialog dialog = new PrintDialog();
if (dialog.ShowDialog() == true)
dialog.PrintVisual(this.Temp, " Szablon czcionek");
}));
System.Threading.Thread.Sleep(500);
}