Skip to main content

[Migrated content. Thread originally posted on 25 May 2004]

I am trying to integrate Crystal Reports with my AcuCobol app. I was fairly succesful with the OCX active-x control but was told by both Crystal and AcuCorp the preferred method was the RDC com component method. I am having difficulty with the syntax of the command to assign the odbc data source. With the OCX method the following worked:
Modify Crystal-1 Connect = DSN
(where DSN contained "DSN=field name of data set name)

I have tried the following but get compile errors:

Modify Handle-of-App @OdbcDataSourceName (DSN)

Any Ideas?

[Migrated content. Thread originally posted on 25 May 2004]

I am trying to integrate Crystal Reports with my AcuCobol app. I was fairly succesful with the OCX active-x control but was told by both Crystal and AcuCorp the preferred method was the RDC com component method. I am having difficulty with the syntax of the command to assign the odbc data source. With the OCX method the following worked:
Modify Crystal-1 Connect = DSN
(where DSN contained "DSN=field name of data set name)

I have tried the following but get compile errors:

Modify Handle-of-App @OdbcDataSourceName (DSN)

Any Ideas?
You need to be more specific.

Posting a 10 line program including the definition file you use will certainly help.
It would also be convenient to see the actual error message the compiler throws.

A good advise is also to follow an example from the vendor, in this case Crystal. Obviously, they won't have any ACUCOBOL-GT example, but I am sure they have a 10 liner in vb, which we should be able to translate pretty easily.