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

 

 

  • 115
    Offline posted

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

     

    Is this a known issue?

  • 22852
    Offline posted

    Hello,

    There was an issue where duplicate rows would occur when printing that was addressed by the latest hot fix of NetAdvantage for Windows Forms 2006 Volume 3.  I am not sure if this is the same issue that you have, you could download the latest hot fix and see if you still have the same issue.

    To download the current hotfix for NetAdvantage from our website, please follow these instructions:

    1) Navigate to the "My Keys and Downloads" page on our website.  You may be asked to log in using your Infragistics member profile's user name and password.  You can reach the My Keys and Downloads page via the following link:

    <http://ko.infragistics.com/Membership/Default.aspx>

    2) Click on the "NetAdvantage" tab.  This will show all of your registered license keys for NetAdvantage.

    3) Click on the license key for the product and version for which you would like to download the hotfix.  This will bring up all available public downloads for this product and version.

    4) In the "Hot Fixes" section, click on the link for the appropriate version of NetAdvantage.  Note that there is a hotfix for each CLR version, and in some cases a separate hotfix for an ASP.NET-only, Windows-Forms-only, or full installation.

    Alan