Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
450
How to print xamgrid properly?
posted

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.Width
dataGrid.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.

Parents
No Data
Reply
  • 138253
    Offline posted

    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.

Children