Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 379
  • Last Modified:

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

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
etsellinc
Asked:
etsellinc
  • 3
  • 2
1 Solution
 
CodeCruiserCommented:
I use Content but then I have to manually copy CR files.
0
 
etsellincAuthor Commented:
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
 
CodeCruiserCommented:
Do you manually load report files from subfolders in your code?
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
etsellincAuthor Commented:
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
 
mlmccCommented:
ALso utting them in the EXE will require a new EXE when you change a report

mlmcc
0
 
etsellincAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now