Solved

VS2008 VB.NET Build Process with Crystal Reports in a sub-folder

Posted on 2013-12-16
6
368 Views
Last Modified: 2013-12-18
When building my project to the Release folder, what build action should I be using when the reports are not compile inside the EXE?

The reports are in a sub-directory "Reports".

If I use "Content" then the report and vb file are copied to the sub-directory "Reports".

If I use "Resource" then the vb file only are copied to the sub-directory "Reports".

If I use "Compile" then there are all kinds of errors when I compile.

Thanks,

Mark
0
Comment
Question by:etsellinc
  • 3
  • 2
6 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 39724505
I use Content but then I have to manually copy CR files.
0
 

Author Comment

by:etsellinc
ID: 39724574
Thanks CodeCruiser,

That is what I currently use too. I am having troubles with installers and the files that are packaged, including sub folders with files. So far I have not been able to get any installer to work with sub folders or report files except to manually add.  The "Project Output" function does not include the sub folders and the "Add Folder" function adds everything including the VB files.

There are a lot of report files and soon there will be many more. Tracking which ones are already in the installer is a problem.

I was thinking that I had the wrong Build Action.

Thanks again,

Mark
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 39724746
Do you manually load report files from subfolders in your code?
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:etsellinc
ID: 39725378
Yes, I load the reports using the application location then adding the "Reports" folder and then the report name. When we update reports we just push the report only to all the project locations.

I've considered putting the reports directly into the EXE but that would increase the size. Also at each location a few of the reports are custom edited thus making updates as a whole not possible.

Thanks,
Mark
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 39725523
ALso utting them in the EXE will require a new EXE when you change a report

mlmcc
0
 

Author Closing Comment

by:etsellinc
ID: 39726496
Although cumbersome, the use of "content" and filtering to use only the RPT files seems to be the only solution. Thanks CodeCruiser for the confirmation.

Mark
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question