Using project folders to manage files needed on the label or form
Article ID: 108 - Updated: May 15, 2020 - Products: All products - Version: Any - Category: Compatibility and Migration
I create a project with labels and solution for my customer, but when I copy the files to customer's computer, not all files that I used in the project (databases, images...) are found.
When you place an image to the label or create a connection to the database, NiceLabel remembers the original location of linked files. On the customer's computer you might have copied the files to some other folder than exists on your computer and this might be the reason for a failure.
NiceLabel software does look for files just in the remembered folder, but has check algorithms to search other locations as well using relative paths.
The following lists explain how NiceLabel seaches for files. There are four levels of search activities. If the file is not found in the current level, NiceLabel tries the next level until the file is either found or not found.
Level 1: NiceLabel checks the folders as used during configuration
Designed files with links to:
Level 2: NiceLabel checks the folders as set in program options
These folders can be modified in File>Options>Folders.
C:\Documents and Settings\user\NiceLabel\Labels\label.nlbl
C:\Documents and Settings\user\NiceLabel\Solutions\solution.nsln
C:\Documents and Settings\user\NiceLabel\Database\products.accdb
C:\Documents and Settings\user\NiceLabel\Graphics\logo.png
Level 3: NiceLabel checks the current folder
The current folder is the one containing the open label or solution file requesting a link to a file.
Level 4: NiceLabel checks the "labels, solutions, database, graphics" project structure
To make sure that your solution for the customer will work independently of the folder to which you have copied the files always use the folder structure as suggested in Level 4. This will ensure the relative paths between files in any of the four subfolders are always the same, no matter the absolute path, and NiceLabel will always find them.
Follow these steps to create the proper folder structure, when you start working on the project that will be running on somebody else's computer.
- Create a folder for your project, for example 'Project'.
- Make four sub-folders in this folder. Name them Labels, Solutions, Database and Graphics. It is important to use these exact folder names in English.
- Create or copy the files in the appropriate folders: labels go into Labels folder, solutions go into Solutions folder, database files go into Database folder and images go into Graphics folder.