views:

12

answers:

0

In my application I have some pages to print and I do it using the DocumentPaginator. Works fine so far. Most of the pages are in landscape orientation while a few are in Portrait orientation. But its looks to me I can only set one orientation for the PrintTicket.

PrintDialog dia = new PrintDialog();
dia.PrintTicket.PageOrientation = PageOrientation.Portrait

I tried to change the orientation in the GetPage-method of the DocumentPaginator but it had no effect at all. Is it possible to change the orientation?

BTW

It is not a solution to have different print jobs for the different orientations. I need to create one pdf-file out of the print job. Every page must be in that single print job.

EDIT

I fixed the problem by doing a RotateTransform with the page content. Works fine for me. But I guess there are better ways to do it.