Hello,
I have a diagram and print button with me on click of which the diagram should get printed. I am using the below code for doing this:
PrintDialog printDialog = SetPrintDialogProperties();
diagram.PrintManager.Print(printDialog);
In the method SetPrintDialogProperties I am giving the pagemedia size as below :
printDialog.PrintTicket.PageMediaSize = new PageMediaSize(PageMediaSizeName.ISOA4);
I am facing the below issues:
Issue 1 : I want my diagram to be printed in full A4 Size paper i.e it should cover whole A4 paper,but this is not happening. Please refer to the pic at the end. Please suggest.
Issue 2 : I want to display header values in print out and if I am giving margin as below:
this.diagram.PrintManager.Margin = new Thickness(15,15,15,15); the header does not get displayed. If i change the values to 30 then it works fine. The pic at the end has no header as the margin is 15,15,15,15. Please suggest.
Pic :

Thanks,
Abdi