Advertisement

02.11.2008 at 08:40PM PST, ID: 23155201
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.6

change crystal report access oledb location at runtime

Asked by tomkovic in Visual Studio, Programming for ASP.NET, Microsoft Visual Basic.Net

Tags:

I want to run a crystal report in my vs2005 web application. It uses two Access databases that are related in the report. The problem is that I used oledb and at design time I had to set the databse location of one of them to the application's app_data folder that is under MyDocuments\microsoft visual studio2005\projects\yada yada yada since that is where it is when I am developing the app. But when it moves to the actual web server that will no longer be the proper path. How do I deal with this? The other database path is OK since it is the same path on both the development machine and the production one. How do I change the location either at run time with code or by setting the thing up at design time?

I have seen some sql server and oracle examples on Google using report.DataSourceConnections(0).SetConnection but it asks for a server name as well as a database name and I have no idea what the server name for an access database is. Also, what is the database name as opposed to the server name? Which one requires the full path in addition to the file name so it can find it? Is this even the thing to use?

This should be a lot eaiser.

You would think this would be a basic issue well-covered by the documentation since VS2005 runs its web sites on its virtual server using the project's file location which is never going to be the same as an actual web server.

So how do I do this, and remember I only need to change the location of one of the databases in the report.

Start Free Trial
 
Loading Advertisement...
 
[+][-]02.11.2008 at 09:06PM PST, ID: 20872618

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.11.2008 at 09:22PM PST, ID: 20872679

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.12.2008 at 06:42AM PST, ID: 20875117

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.12.2008 at 05:36PM PST, ID: 20880988

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.12.2008 at 08:31PM PST, ID: 20881654

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Studio, Programming for ASP.NET, Microsoft Visual Basic.Net
Tags: vs 2005 vb.net asp.net
Sign Up Now!
Solution Provided By: adriankohws
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628