Visual Basic 6 / Crystal Reports
I am creating a report in visula basic 6 with crystal. I am using menu options,
"Project, Add Crystal Reports 8.5."
I have no problem connecting to tables (Timberline, pervasive odbc),
dragging fields on to the report, but when I run it, I am getting a popup message, "server has not been opened.".
Any help on solving this.
Thanks in advance.
Re: Visual Basic 6 / Crystal Reports
Quote:
Originally Posted by rbvinc
...I have no problem connecting to tables (Timberline, pervasive odbc),
dragging fields on to the report, but when I run it, I am getting a popup message, "server has not been opened."...
That's because whnen you design report you're connected but at run time you need to connect through your crystal ocx as well.
I don't remember exact property's name so check it out and pass DSN/User/Password before doing anything.
Re: Visual Basic 6 / Crystal Reports
Hi,
I will try what you said,
On the same issue, in vb code, where do or how do I find the code for
username,password,odbc, etc..
Thanks,
Re: Visual Basic 6 / Crystal Reports
As I said it's one of the crystal.ocx properties (I don't have it here so cannot etl you exactly which one it is). You must have CrystalReport (or what ever the name is) control on your form, don't you?