Hello,
I´m not able to print xamgrid properly .
I mean, i can not adjust the xamgrid to the page size and i lose part of the grid.
This is what i have.
Private Sub btnPrint_Click(sender As Object, e As System.Windows.RoutedEventArgs) Handles btnPrint.Click pd = New PrintDocument() pd.Print("My dataGrid") End Sub
Private Sub pd_PrintPage(ByVal sender As Object, ByVal e As PrintPageEventArgs) Handles pd.PrintPage e.PageVisual = dataGrid dataGrid.Width = e.PrintableArea.Width dataGrid.Height = e.PrintableArea.Height End Sub
dataGrid.Width = e.PrintableArea.WidthdataGrid.Height = e.PrintableArea.Height
this changes the size of the grid and this is not the point.
Any suggestion??
Thank you in advance
Sincerely
David A.
Hello David,
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
Hello Stephan,
Thank you for your support.
Right now i'm with an urgent issue but i will check the post as soon as possible.
Best regards.
David Alonso.