Question: Deploying CR Application programs with databases

  • Thread starter Thread starter Ann Marinas
  • Start date Start date
A

Ann Marinas

Hi All!

I am developing an application program that uses Crystal Reports for VS.NET.

I was testing the project the other day, installing the program to another
computer. My windows form is running ok, but whenever I access the Crystal
Report viewer, I keep on getting a dialog box that searches for my database.
In my pc, it works fine, but on others, it keeps searching for the database.

Here are my questions:
1. How can I dynamically connect my report to a database, say an Access
database?
2. Will dynamically connecting to a database affect the fields on my report?
3. I saw an unbound field in the Field Explorer. What does it do and how do
you use it?

I really do appreciate your help!

Regards,
A
 
* "Ann Marinas said:
I am developing an application program that uses Crystal Reports for VS.NET.

I was testing the project the other day, installing the program to another
computer. My windows form is running ok, but whenever I access the Crystal
Report viewer, I keep on getting a dialog box that searches for my database.

Maybe you will find a solution here:

<http://support.crystaldecisions.com/communityCS/TechnicalPapers/crnet_deployment.pdf>

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Improve your quoting style:
<http://learn.to/quote>
<http://www.plig.net/nnq/nquote.html>
 
Ann Marinas said:
Hi All!

I am developing an application program that uses Crystal Reports for VS.NET.

I was testing the project the other day, installing the program to another
computer. My windows form is running ok, but whenever I access the Crystal
Report viewer, I keep on getting a dialog box that searches for my database.
In my pc, it works fine, but on others, it keeps searching for the database.

Here are my questions:
1. How can I dynamically connect my report to a database, say an Access
database?
2. Will dynamically connecting to a database affect the fields on my report?
3. I saw an unbound field in the Field Explorer. What does it do and how do
you use it?

I really do appreciate your help!

Regards,
A
 
1. Yes, you can, in fact it is better to do it that way.
2. As long as the DBs are the same
3. Don't really understand the question. Unused fields are not being query
from the DB and do nothing. If you want to use it, just put it in your
report or use it in a formula or something.

The below link might help you on setting the connection, though the exact
method might differ (we have so many versions of CR and different languages
to use it, ie VC, VB, C#, etc). You can probably find other URLs that touch
on this on the web.

http://www.dotnetjunkies.com/Tutori...75A0-C493-46D8-ABE0-40CA588D33D3&forumId=4162

HTH
elvin
 
Back
Top