Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exasperated and confused

Status
Not open for further replies.

sheridan101

Programmer
Dec 31, 2003
29
US
I am using:
Crystal Reports.NET
Windows 2000
Visual Studio .NET
C#

I have about 8 reports. They all share a standardized subreport "header" inserted at the top of the report. It is a linked external subreport. The directory on my development machine is shared. I have a separate machine that I do additional testing on (configured differently without MS Office).

Problem is, I just tried to make a change to the header for all reports, and on my development box, it works fine. However, on my other box, I have an older version of the reports that should NOT be using the new header yet... and yet they are!!!

This was confusing until I found that if I made the projects directory on my development box unshared, the report headers on the other box reverted to the one they were suppose to use.

However, with the directory unshared, I can now no longer make changes to the reports. Whenever I make changes, and save the changes, and I try to run the report, it gives me a version of the report from before I unshared the directory. I even deleted the header/subreport from one report, which should have given me a blank page top, and it still gives me a version of the report with the header.

This is completely confusing, baffeling and I am at wits end. My viewer program allows me to browse to a reports subdirectory and choose a report. I know for certain that the report I am choosing is the one I want to run. The date stamp on the .rpt file is what I would expect. The one I am choosing is NOT the one I am getting.

...

I just set the directory back to being shared and I get the version of the report I want. Why does sharing that directory on my development machine make that kind of a difference??? Does Crystal somehow check/sync with Source Safe when it runs (though that should not matter since I haven't checked in the changes yet). What can be done to make Crystal less dependant on shared project directories??

...

I just tried another test. I set the directory to be shared, ran my viewere and ran a report and got what I wanted. Then, without exiting from the program, I set the directory to be not shared and ran the report again and got an old version of it. I then set the directory to be shared and got the desired version of the report. How can I get it to stop doing this??????
 
I just found the source of the problem, but I am no closer to understanding WHY... the problem appears to be with Source Safe. It turns out that when I checked in the changes, then I got the current version of the reports when printing regardless of whether the projects directory was shared or not. It seems that only the Crystal Reports '.rpt' files behave this way. The actual C# source files do not. I always get the latest version of the report program whether the directory is shared or not.

But, setting the directory to be not shared, then the '.rpt' files will always seem to give me the last version checked in when I run the report, even though I know I am choosing the correct file on the hard drive.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top