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
115
wingrid printing - repeating rows on page break on certain pcs
posted

Sometimes we have found that when we call WinGrid.PrintPreview() we have the last row duplicated on the next page on certain pcs/printers. This row is duplicated not only when printed but when viewed in print preview. Any ideas??

I'm using net advantage 2006 v3 clr2.0.

----------------------------------------------

Public Sub PrintButtonClicked(ByVal sender As Object, ByVal e As EventArgs)
If dsWorkHistory.CA_GetWorkHistoryReport.Rows.Count > 0 Then
Try
ugWorkHistory.PrintPreview()
Catch ex As  Exception
VHCS.UI.TOOLS.VHCSMessage.MessageError(ex.Message)
End Try
End If
End Sub

-----------------------------------------------------------------------------------

Private Sub ugWorkHistory_InitializePrintPreview(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.CancelablePrintPreviewEventArgs) Handles ugWorkHistory.InitializePrintPreview
e.PrintPreviewSettings.Zoom = 0.9
e.PrintPreviewSettings.DialogLeft = CInt(SystemInformation.WorkingArea.X * 0.95)
e.PrintPreviewSettings.DialogTop = CInt(SystemInformation.WorkingArea.Y * 0.95)
e.PrintPreviewSettings.DialogWidth = CInt(SystemInformation.WorkingArea.Width * 0.95)
e.PrintPreviewSettings.DialogHeight = CInt(SystemInformation.WorkingArea.Height * 0.95)
e.PrintPreviewSettings.DialogCaption = "Member Contribution Work History"
e.DefaultLogicalPageLayoutInfo.FitWidthToPages = 1
e.PrintDocument.DefaultPageSettings = settingsPage
e.DefaultLogicalPageLayoutInfo.PageHeader = "Contribution Work History for " & sWorkHistory.CA_GetWorkHistoryReport.Rows(0)("Employee").ToString
e.DefaultLogicalPageLayoutInfo.PageHeaderHeight = 40
e.DefaultLogicalPageLayoutInfo.PageHeaderAppearance.FontData.SizeInPoints = 12
e.DefaultLogicalPageLayoutInfo.PageHeaderAppearance.TextHAlign = HAlign.Center
e.DefaultLogicalPageLayoutInfo.PageHeaderBorderStyle = UIElementBorderStyle.Solid
e.DefaultLogicalPageLayoutInfo.PageFooter = vbCrLf & "Page <#>" & vbCrLf & Date.Now.ToShortDateString
e.DefaultLogicalPageLayoutInfo.PageFooterAppearance.TextHAlign = HAlign.Right
e.DefaultLogicalPageLayoutInfo.PageFooterAppearance.FontData.Italic = DefaultableBoolean.True
e.DefaultLogicalPageLayoutInfo.PageFooterBorderStyle = UIElementBorderStyle.Solid
e.DefaultLogicalPageLayoutInfo.ClippingOverride = ClippingOverride.Auto
e.PrintDocument.DocumentName = "Member Contribution Work History"
End Sub

 

 

Parents
No Data
Reply
  • 115
    Offline posted

    I'm noticing this behavior with the latest NetAdvantage_WinForms_20092.2058_SR

     

    Is this a known issue?

Children
No Data