Server has not yet been opened. ERR -2147192184 
Author Message
 Server has not yet been opened. ERR -2147192184

I am trying to intergrate Crystal Reports in to my application and haven't
used the RDC and CRViewer before, and I am having a problem that my lack of
knowledge is preventing me from solving. I was wondering if some body would
offer me some advice.

The code I am using is as follows:

    Dim objApp As New CRAXDRT.Application
    Dim objReport  As CRAXDRT.Report

      Set objReport = objApp.OpenReport("MyReport.rpt", 1)

      CRViewer1.ReportSource = objReport
      CRViewer1.ViewReport

The report has information for an ODBC connection to SQL2000 database (MDAC
2.6) and I am using VB 6 .

The problem I am having is that as soon as I call ViewReport I get the error
"Server has not yet been opened"

I have tried substituting my report into the examples you get with Crystal
and get the same problem. Help!!!!!!

If anybody has come accross this problem and found a solution I would be
very gratefull if you could share it with me.

Thankyou in advance

Chris Roberts



Mon, 19 Apr 2004 18:28:40 GMT  
 Server has not yet been opened. ERR -2147192184
Before the line CRViewer1.ViewReport
insert the code to log on to the server using either of
the following methods
 objReport.DATABASE.LogOnServer or
 objReport.database.setLogOnInfo
It might work

Quote:
>-----Original Message-----
>I am trying to intergrate Crystal Reports in to my

application and haven't
Quote:
>used the RDC and CRViewer before, and I am having a

problem that my lack of
Quote:
>knowledge is preventing me from solving. I was wondering
if some body would
>offer me some advice.

>The code I am using is as follows:

>    Dim objApp As New CRAXDRT.Application
>    Dim objReport  As CRAXDRT.Report

>      Set objReport = objApp.OpenReport("MyReport.rpt", 1)

>      CRViewer1.ReportSource = objReport
>      CRViewer1.ViewReport

>The report has information for an ODBC connection to

SQL2000 database (MDAC
Quote:
>2.6) and I am using VB 6 .

>The problem I am having is that as soon as I call

ViewReport I get the error
Quote:
>"Server has not yet been opened"

>I have tried substituting my report into the examples you
get with Crystal
>and get the same problem. Help!!!!!!

>If anybody has come accross this problem and found a
solution I would be
>very gratefull if you could share it with me.

>Thankyou in advance

>Chris Roberts

>.



Tue, 20 Apr 2004 02:45:45 GMT  
 Server has not yet been opened. ERR -2147192184
Thanks for that, I've just tried it and get the same error.

I used :
objReport.Database.LogOnServer "p2ssql.dll", "Servername", "Database",
"UserName", "PWD"

Any other ideas?????

Thanks in advance

Chris


Quote:
> Before the line CRViewer1.ViewReport
> insert the code to log on to the server using either of
> the following methods
>  objReport.DATABASE.LogOnServer or
>  objReport.database.setLogOnInfo
> It might work

> >-----Original Message-----
> >I am trying to intergrate Crystal Reports in to my
> application and haven't
> >used the RDC and CRViewer before, and I am having a
> problem that my lack of
> >knowledge is preventing me from solving. I was wondering
> if some body would
> >offer me some advice.

> >The code I am using is as follows:

> >    Dim objApp As New CRAXDRT.Application
> >    Dim objReport  As CRAXDRT.Report

> >      Set objReport = objApp.OpenReport("MyReport.rpt", 1)

> >      CRViewer1.ReportSource = objReport
> >      CRViewer1.ViewReport

> >The report has information for an ODBC connection to
> SQL2000 database (MDAC
> >2.6) and I am using VB 6 .

> >The problem I am having is that as soon as I call
> ViewReport I get the error
> >"Server has not yet been opened"

> >I have tried substituting my report into the examples you
> get with Crystal
> >and get the same problem. Help!!!!!!

> >If anybody has come accross this problem and found a
> solution I would be
> >very gratefull if you could share it with me.

> >Thankyou in advance

> >Chris Roberts

> >.



Tue, 20 Apr 2004 07:21:31 GMT  
 Server has not yet been opened. ERR -2147192184
I've figured it out

The reports are using an ODBC connection, that connection was using SQL
Server username and password for security. In normal use this prompts for a
Username and Password, however when using the RDC it does not.

I have got around the problem by switching the ODBC settings to use Windows
NT security.

Thanks to Ramana for your input, it set me on the right track

Yours
Chris Roberts


Quote:
> Thanks for that, I've just tried it and get the same error.

> I used :
> objReport.Database.LogOnServer "p2ssql.dll", "Servername", "Database",
> "UserName", "PWD"

> Any other ideas?????

> Thanks in advance

> Chris



> > Before the line CRViewer1.ViewReport
> > insert the code to log on to the server using either of
> > the following methods
> >  objReport.DATABASE.LogOnServer or
> >  objReport.database.setLogOnInfo
> > It might work

> > >-----Original Message-----
> > >I am trying to intergrate Crystal Reports in to my
> > application and haven't
> > >used the RDC and CRViewer before, and I am having a
> > problem that my lack of
> > >knowledge is preventing me from solving. I was wondering
> > if some body would
> > >offer me some advice.

> > >The code I am using is as follows:

> > >    Dim objApp As New CRAXDRT.Application
> > >    Dim objReport  As CRAXDRT.Report

> > >      Set objReport = objApp.OpenReport("MyReport.rpt", 1)

> > >      CRViewer1.ReportSource = objReport
> > >      CRViewer1.ViewReport

> > >The report has information for an ODBC connection to
> > SQL2000 database (MDAC
> > >2.6) and I am using VB 6 .

> > >The problem I am having is that as soon as I call
> > ViewReport I get the error
> > >"Server has not yet been opened"

> > >I have tried substituting my report into the examples you
> > get with Crystal
> > >and get the same problem. Help!!!!!!

> > >If anybody has come accross this problem and found a
> > solution I would be
> > >very gratefull if you could share it with me.

> > >Thankyou in advance

> > >Chris Roberts

> > >.



Fri, 23 Apr 2004 20:39:13 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Error: Server not yet opened (-2147192184)

2. Connection not Open + Server has not yet been opened error messages

3. Server has not yet been opened message with VB6, CRP7 and SQL-server

4. Server has not yet been opened - Very Urgent

5. "the server is not yet opened"

6. server has not yet been opened ( STILL )

7. Server has not yet been opened

8. Server has not yet been opened (Urgent)

9. server has not yet been opened.

10. Help! Server has not yet been opened

11. Server has not yet been opened

12. VB6 and CR 8.5 Server has not yet been opened

 

 
Powered by phpBB® Forum Software