Hlp on CR 8.5 and VB 6.0 sp5 
Author Message
 Hlp on CR 8.5 and VB 6.0 sp5

Well, the story is this...

I've done a few reports with CR and opened'em on VB with no problems...
'till now, I've designed my reports using an ODBC connection and whenever a
shut my app, the connecition to the database was shut as well... but now, I
have made a report with an ADO connection and my DB connection never
shutsdown I've tried to do cnn.close more than once and it shows an error
msg saying that the connection is already closed (which sounds logical) but
still I can see the DB engine running.

I must say that I close the recordset that I send to the report as soon as
the preview window is closed.

I have also tried to do the crxReport.Database.LogoffServer method but it
says that the server cannot shut down 'cause thera are reports still using
it even if there is none!

Please any tip will be very much appreciated...

P.S. I am using Sybase SQL Anywhere 5.0, that's why I know that the engine
is still running ('cause This version of Sybase opens a connection window)

--
Saludos.
Edgar Contreras



Sat, 03 Sep 2005 17:09:35 GMT  
 Hlp on CR 8.5 and VB 6.0 sp5

Quote:
>-----Original Message-----
>Well, the story is this...

>I've done a few reports with CR and opened'em on VB with
no problems...
>'till now, I've designed my reports using an ODBC

connection and whenever a
Quote:
>shut my app, the connecition to the database was shut as
well... but now, I
>have made a report with an ADO connection and my DB
connection never
>shutsdown I've tried to do cnn.close more than once and
it shows an error
>msg saying that the connection is already closed (which
sounds logical) but
>still I can see the DB engine running.

>I must say that I close the recordset that I send to the
report as soon as
>the preview window is closed.

>I have also tried to do the

crxReport.Database.LogoffServer method but it
Quote:
>says that the server cannot shut down 'cause thera are
reports still using
>it even if there is none!

>Please any tip will be very much appreciated...

>P.S. I am using Sybase SQL Anywhere 5.0, that's why I

know that the engine

Quote:
>is still running ('cause This version of Sybase opens a
connection window)

>--
>Saludos.
>Edgar Contreras

>.

Dim Report As New ReportName
Dim M_R As New ADOR.Recordset
M_R.Open "SELECT * FROM DataSource"
Report.Database.SetDataSource M_R
CRViewer1.ReportSource = Report


Sat, 03 Sep 2005 21:31:10 GMT  
 Hlp on CR 8.5 and VB 6.0 sp5
Thx for replying Iztok... but actually I have printed the report already...
my problem is that the DB Connection never shuts down... :S

Any idea?

--
Saludos.
Edgar Contreras

(Gua de netiquette del foro)
http://perso.wanadoo.es/rubenvigon/foro

"La informacion es presentada como es y sin garantia alguna"


Quote:

> >-----Original Message-----
> >Well, the story is this...

> >I've done a few reports with CR and opened'em on VB with
> no problems...
> >'till now, I've designed my reports using an ODBC
> connection and whenever a
> >shut my app, the connecition to the database was shut as
> well... but now, I
> >have made a report with an ADO connection and my DB
> connection never
> >shutsdown I've tried to do cnn.close more than once and
> it shows an error
> >msg saying that the connection is already closed (which
> sounds logical) but
> >still I can see the DB engine running.

> >I must say that I close the recordset that I send to the
> report as soon as
> >the preview window is closed.

> >I have also tried to do the
> crxReport.Database.LogoffServer method but it
> >says that the server cannot shut down 'cause thera are
> reports still using
> >it even if there is none!

> >Please any tip will be very much appreciated...

> >P.S. I am using Sybase SQL Anywhere 5.0, that's why I
> know that the engine
> >is still running ('cause This version of Sybase opens a
> connection window)

> >--
> >Saludos.
> >Edgar Contreras

> >.

> Dim Report As New ReportName
> Dim M_R As New ADOR.Recordset
> M_R.Open "SELECT * FROM DataSource"
> Report.Database.SetDataSource M_R
> CRViewer1.ReportSource = Report



Sun, 04 Sep 2005 04:11:14 GMT  
 Hlp on CR 8.5 and VB 6.0 sp5
ok... a Friend of mine gave me a solution and it works just fine...

I just set the active connection of the rst to nothing before sending it to
the report and that fixed it...

--
Saludos.
Edgar Contreras


Quote:
> Well, the story is this...

> I've done a few reports with CR and opened'em on VB with no problems...
> 'till now, I've designed my reports using an ODBC connection and whenever
a
> shut my app, the connecition to the database was shut as well... but now,
I
> have made a report with an ADO connection and my DB connection never
> shutsdown I've tried to do cnn.close more than once and it shows an error
> msg saying that the connection is already closed (which sounds logical)
but
> still I can see the DB engine running.

> I must say that I close the recordset that I send to the report as soon as
> the preview window is closed.

> I have also tried to do the crxReport.Database.LogoffServer method but it
> says that the server cannot shut down 'cause thera are reports still using
> it even if there is none!

> Please any tip will be very much appreciated...

> P.S. I am using Sybase SQL Anywhere 5.0, that's why I know that the engine
> is still running ('cause This version of Sybase opens a connection window)

> --
> Saludos.
> Edgar Contreras




Sun, 04 Sep 2005 08:03:29 GMT  
 Hlp on CR 8.5 and VB 6.0 sp5

Quote:
>-----Original Message-----
>Thx for replying Iztok... but actually I have printed the
report already...
>my problem is that the DB Connection never shuts
down... :S

>Any idea?

>--
>Saludos.
>Edgar Contreras

>(Gua de netiquette del foro)
>http://perso.wanadoo.es/rubenvigon/foro

>"La informacion es presentada como es y sin garantia
alguna"



>> >-----Original Message-----
>> >Well, the story is this...

>> >I've done a few reports with CR and opened'em on VB
with
>> no problems...
>> >'till now, I've designed my reports using an ODBC
>> connection and whenever a
>> >shut my app, the connecition to the database was shut
as
>> well... but now, I
>> >have made a report with an ADO connection and my DB
>> connection never
>> >shutsdown I've tried to do cnn.close more than once and
>> it shows an error
>> >msg saying that the connection is already closed (which
>> sounds logical) but
>> >still I can see the DB engine running.

>> >I must say that I close the recordset that I send to
the
>> report as soon as
>> >the preview window is closed.

>> >I have also tried to do the
>> crxReport.Database.LogoffServer method but it
>> >says that the server cannot shut down 'cause thera are
>> reports still using
>> >it even if there is none!

>> >Please any tip will be very much appreciated...

>> >P.S. I am using Sybase SQL Anywhere 5.0, that's why I
>> know that the engine
>> >is still running ('cause This version of Sybase opens a
>> connection window)

>> >--
>> >Saludos.
>> >Edgar Contreras

>> >.

>> Dim Report As New ReportName
>> Dim M_R As New ADOR.Recordset
>> M_R.Open "SELECT * FROM DataSource"
>> Report.Database.SetDataSource M_R
>> CRViewer1.ReportSource = Report

>.

' Reference to Microsoft ActiveX Data Objects Recordset 2.7
' Library(C:\Program Files\Common
Files\System\ADO\Msado15.dll)

Dim Report As New CrystalReport1
Dim M_Recordset As New ADOR.Recordset
Dim sCnstr as String
Dim sRecordset as String

sCnstr = "Provider = MSDASQL.1;Persist Security
Info=False;Extended
properties='DSN=sqls;Description=systemdesc;UID=;PWD=;APP=V
isual Basic;WSID=;Network=DBMSSOCN;Address=;Initial
Catalog='"
sRecordset="SELECT * FROM DataSource"
M_Recordset.Open sRecordset,sCnstr
Report.Database.SetDataSource M_Recordset
CRViewer1.ReportSource = Report
.

Iztok Hudales



Sun, 04 Sep 2005 15:14:01 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. VB6 (SP5) and CR 8.5 Dev Problems...

2. CR 8.5 / VB 6.0 - Charts not printed

3. VB 6.0 /CR 8.5 Sample Code

4. RightFax 6.0 and Crystal 8.5 and VB 6.0 Font size

5. Search newest developr.hlp for Crystal 8.5 VB

6. CR 8.5 and CR from VS.Net package

7. Decimal Place problem after Upgrading from CR 6 to CR 8.5

8. CR 8 and CR 8.5

9. Using a dll that referenced CR 8.5 files on a machine that has CR 8.0

10. Parameter to Stored Procedure CR 8.5 VB.Net Specified Cast Not Valid

11. Logon Failed (VB.NET/CR 8.5)

12. can't print report (cr 8.5 / vb 6)

 

 
Powered by phpBB® Forum Software