none
Report Rendering Issue When User Win 7 Display is 150% RRS feed

  • Question

  • The Above Image is Normal Win 7 Display Appearance to display the report

    The Above Image is Win 7 Larger 150% Display Appearance to display the report.

    Can anyone help me how to make the report display properly when user Win 7 apprearance is set to "Larger 150%" ?? I'm using VS2010 SP1 VB.Net  and user using Report Viewer 2010 SP1.

    The sample code as below which is ok when Win 7 is normal display.

    Private Sub frmViewReport_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Dim loRptDataSource As ReportDataSource = New ReportDataSource()
            Try
                rptViewer.LocalReport.ReportEmbeddedResource = cReportFile
                loRptDataSource.Name = cDatasetName
                loRptDataSource.Value = oDataTable
                rptViewer.LocalReport.DataSources.Add(loRptDataSource)
                'Check parameter exists
                Dim loTmp As ReportParameter = TryCast(oRptParameter(1), ReportParameter)
                If Not loTmp Is Nothing Then
                    rptViewer.LocalReport.SetParameters(oRptParameter)
                End If
                rptViewer.SetDisplayMode(DisplayMode.PrintLayout)
                'rptViewer.ZoomMode = ZoomMode.FullPage
                'rptViewer.ZoomMode = ZoomMode.Percent
                'rptViewer.ZoomPercent = 100%
                rptViewer.RefreshReport()
            Catch ReportViewerExceptionErr As ReportViewerException
                MsgBox(ReportViewerExceptionErr.Message, MsgBoxStyle.Exclamation, "Message")
            End Try
        End Sub

    Appreciate very much for help & teach me :)

    Regards

    KittyMy

    Wednesday, March 14, 2012 6:54 AM