I have recently created a new crystal report. Things were fine, report looked good, I was previewing it fine, I could run my project and things looked great. I then made a minor formatting change (made the details section slightly larger and added a line across the top)
I then previewed the report and noticed that it created a second copy of the associated .vb file. So I had
- MyReport.rpt
- MyReport.vb
- MyReport1.vb
I then ran a rebuild and got this error:
class 'MyReport' and class 'MyReport',
declared in 'c:\...\reports\ MyReport.vb',
conflict in namespace 'MyNamespace'. c:\...\reports\MyReport1.vb
These .vb files MyReport.vb and MyReport1.vb are exactly the same (check with winmerge). EDIT Sometimes of the files have differences.
I have deleted the file MyReport1.vb and rebuilt, it then built fine. But I then made another change to the report (enlarged details section again) the second file appeared again.