Results 1 to 4 of 4

Thread: Only getting botton half of page on report

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2010
    Posts
    350

    Only getting botton half of page on report

    I am creating s SSRS report from VB using a rdlc file.
    When I display the report sometimes instead of getting the whole page I'm getting only the bottom half of the page displayed.
    The top half of the page is off the top of the screen and cannot be accessed.
    I have no idea why this is happening - any suggestions?
    Thanks

  2. #2
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: Only getting botton half of page on report

    Look for non-printable characters in your data, maybe there are LF or VT
    JG


    ... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2010
    Posts
    350

    Re: Only getting botton half of page on report

    It works OK on all computers appart from one.
    So it must be an installed software issue - but I don't know which.

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2010
    Posts
    350

    Re: Only getting botton half of page on report

    I have done some more work on this and found that the problem occurs on all computers.
    I was just creating one or two reports and they were OK, other people were creating many reports and then they were not displaying correctly - you either get part or none of the report displayed - you xcan print it all.

    Here is part of the code - I wonder if it is an initialistation or clearing problem that causes the problem.

    ReportViewer1.Reset()
    ReportViewer1.LocalReport.DisplayName = MyReport
    ReportViewer1.LocalReport.ReportEmbeddedResource = "MIS." & MyReport & ".rdlc"
    ReportViewer1.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Local
    ReportViewer1.LocalReport.ReportPath = AppPath & "\" & MyReport & ".rdlc"
    '
    '
    ' create a data adaptor
    Dim da As SqlDataAdapter = New SqlDataAdapter(ReportQuery, SQLConnection)
    ' create a new data set
    Dim ds As DataSet = New DataSet
    ' fill the data adapter
    da.Fill(ds)
    ' clear the datasource
    ReportViewer1.LocalReport.DataSources.Clear()
    ' set the dataource (DataSet1 is defined in the matrix in the rdlc file)
    Dim rds1 As New Microsoft.Reporting.WinForms.ReportDataSource("DataSet1", ds.Tables(0))
    ' add a new datasource
    ReportViewer1.LocalReport.DataSources.Add(rds1)

    ReportViewer1.RefreshReport()

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width