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 ThenTryugWorkHistory.PrintPreview()Catch ex As ExceptionVHCS.UI.TOOLS.VHCSMessage.MessageError(ex.Message)End TryEnd IfEnd Sub
-----------------------------------------------------------------------------------
Private Sub ugWorkHistory_InitializePrintPreview(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.CancelablePrintPreviewEventArgs) Handles ugWorkHistory.InitializePrintPreviewe.PrintPreviewSettings.Zoom = 0.9e.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 = 1e.PrintDocument.DefaultPageSettings = settingsPagee.DefaultLogicalPageLayoutInfo.PageHeader = "Contribution Work History for " & sWorkHistory.CA_GetWorkHistoryReport.Rows(0)("Employee").ToStringe.DefaultLogicalPageLayoutInfo.PageHeaderHeight = 40e.DefaultLogicalPageLayoutInfo.PageHeaderAppearance.FontData.SizeInPoints = 12e.DefaultLogicalPageLayoutInfo.PageHeaderAppearance.TextHAlign = HAlign.Centere.DefaultLogicalPageLayoutInfo.PageHeaderBorderStyle = UIElementBorderStyle.Solide.DefaultLogicalPageLayoutInfo.PageFooter = vbCrLf & "Page <#>" & vbCrLf & Date.Now.ToShortDateStringe.DefaultLogicalPageLayoutInfo.PageFooterAppearance.TextHAlign = HAlign.Righte.DefaultLogicalPageLayoutInfo.PageFooterAppearance.FontData.Italic = DefaultableBoolean.Truee.DefaultLogicalPageLayoutInfo.PageFooterBorderStyle = UIElementBorderStyle.Solide.DefaultLogicalPageLayoutInfo.ClippingOverride = ClippingOverride.Autoe.PrintDocument.DocumentName = "Member Contribution Work History"End Sub
I'm noticing this behavior with the latest NetAdvantage_WinForms_20092.2058_SR
Is this a known issue?
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