Results 1 to 3 of 3

Thread: 'server has not yet been opened' error :RESOLVED

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2002
    Location
    Somewhere in war torn Israel
    Posts
    51

    'server has not yet been opened' error :RESOLVED

    Hi,
    I'm trying to open a form with the report viewer control on it to view a report.
    The report data is set using the SetDataSource method:
    rptCourses.Database.SetDataSource rst, 3

    The report's viewing form Load event is:
    CRViewer1.ReportSource = rptCourses
    CRViewer1.ViewReport

    I get a 'server has not yet been opened' error when trying to execute the 'CRViewer1.ViewReport' statement.

    I have another report in the same project (not using SetDataSource) that runs just fine, and a report on another project that does use SetDataSource that uses more or less the same code and runs fine.

    I'm using VB6 and CR 8.5 on winXP machine

    Any ideas? Help would be appreciated.
    thanx
    Last edited by Shafan; May 17th, 2003 at 11:41 PM.

  2. #2
    Fanatic Member SkiNLaB's Avatar
    Join Date
    Jan 2002
    Location
    Sydney, Australia
    Posts
    747
    how does the recordset behave if u try and use it in your visual basic code?

    eg.

    while rst.eof = false
    debug.print rst(0)
    rst.movenext
    wend

  3. #3

    Thread Starter
    Member
    Join Date
    Jan 2002
    Location
    Somewhere in war torn Israel
    Posts
    51
    Found what was the problem - one field was missing in the dynamic ADO recordset I was passing compared to the one the report was built on.

    Thanx.

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