1x1px_transparentNiceLabel
1x1px_transparent Become a Reseller
Partner’s Pages
Contact Us
About Us
Site Map
1x1px_transparent
 
1x1px_transparent
Support
Technical Support
FAQ
• General
• Installation
• Databases
• Printing
Tutorials


SEARCH
1x1px_transparent

Download Free NiceLabel Demo
 Newsletter
1x1px_transparent
1x1px_transparent
Get news and trends about NiceLabel products and from AIDC industry in our free bi-monthly newsletter.

Your E-mail:
US
Rest of the World
unsubscribe
1x1px_transparent
1x1px_transparent
FAQ - database support



When working with NiceLabel you may come across some unexpected troubles or error messages. Please check the FAQ sections below to see if your problem has already been solved.



Other FAQ sections:

General | Installation | Databases | Printing



Databases


How to use Oracle (MS SQL Server, DB2, Informix...) databases?
Locking Paradox databases in multi-user network environment.
Using local language characters with dBase databases.
Values from Excel worksheet do not appear in NiceLabel. The database-variables are empty.
I cannot use data from Microsoft SQL Server 2000.
When I use Excel database in NiceForm the "Database login" dialog box is shown at form start-up and data from Excel do not show.
I cannot use data from FoxPro database tables.




How to use Oracle (MS SQL Server, DB2, Informix...) databases?

Oracle databases can be used in two different ways in NiceLabel. The first one is a connection via ODBC drivers for your Oracle server, the second one is a direct connection using BDE (Borland Database Engine). The latter one is faster and more reliable, but it requires the SQL Links component of BDE to be installed. SQL Links component is not installed by default, but is available as add-on on NiceLabel CD-ROM. You will find the full version of BDE in folder \Updates\BDE.

Solution: Please install the full version of BDE and then follow these steps:

  1. Start SETUP.EXE from \Updates\BDE\Setup\Disk1 folder on NiceLabel CD-ROM and follow on-screen instructions. This will install the full version of BDE including SQL Links (drivers for enterprise databases). Then run BDE511EN.EXE from \Updates\BDE folder to update the installed BDE to version 5.11.


  2. Go to Start.Programs.NiceLabel and start BDE Administrator.


  3. Select Databases tab and select Merge configuration from Object menu.


  4. Enter *.CNF in File name field and click Open.


  5. Select SQL_ORA8.CNF from the list and click Open.


  6. Select New from Object menu, select ORACLE for Database Driver Name, click OK.


  7. Enter the name of your new alias.


  8. In definition of Oracle alias (right side of program window) fill the following fields:

      SERVER NAME (enter the name of your Oracle server/database),   NET PROTOCOL (probably TNS),   LANGDRIVER (set the appropriate language driver),
      USER NAME (enter the username you usually use to connect to server)

    Also verify the settings DLL32 and VENDOR INIT. They should match your version of Oracle server. Every version of Oracle should be used with its own version of .DLL file.


  9. Close the BDE Administrator and save the changes.


  10. Now let's verify that alias can connect to the server. Re-open BDE Administrator and select the Oracle alias, you have created in previous steps, right-click it and select Open. Enter the password. If everything is OK, the alias settings should appear in bold font.


  11. Close the BDE Administrator and use created alias in NiceLabel. Use command Database access from Data menu, then select New.

The same procedure can be applied to other kinds of enterprise databases as well. Just make sure to select the .CNF file that describes your type of the database and then define the alias accordingly.

Applies to: all versions, all editions
Last revision: December 2001


Locking Paradox databases in multi-user network environment.

Locking of database files in network environment is important for their consistency. If two or more users would be able to simultaneously write to the same database table, they could not be aware of updates to the table some other user has made. Only the changes from the last user who saved the label are preserved and all previous are ignored.

As a solution to these problems Paradox introduces special locking mechanism that has its use in network environments. It is network control file, PDOXUSRS.NET. The net file contains the users currently using the BDE (Borland Database Engine) and which table they're accessing. This is how NiceLabel knows which tables are in use by other users and will not allow you to alter them simultaneously. It also serves as the reference point for all lock files created by Paradox. Each lock file references the network control file and contains information regarding the locks on the table and by which user. It is vital that each user maps to the same network control file.

How to map to the network control file?

  1. Go to Start.Programs.NiceLabel and start BDE Administrator.

  2. Select Configuration tab.

  3. Select Drivers, then Native and lastly Paradox.

  4. Select NET DIR and browse the directory, where PDOXUSRS.NET resides for your network.


Please note! Every user in your network should set NET DIR to the same directory.

If a network file server stores databases, this set-up will be enough. But if databases are stored on some workstation computer, that shares them to other computers but accesses them as well, one further modification in BDE Administrator will have to be made.

  1. Start BDE Administrator one more time.

  2. Select Configuration tab.

  3. Select System, then INIT.

  4. Select LOCAL SHARE parameter and change it to TRUE.
Applies to: all versions, all editions
Last revision: December 2001


Using local language characters with dBase databases.

When printing labels with data from dBase databases it can happen that some of your local language characters are not printed correctly. The cause for this behaviour is misconfiguration in language settings of the BDE (Borland Database Engine).

Solution:

  1. Start the program BDE Administrator, it can be found on you Start menu (Start.Programs.NiceLabel.BDE Administrator).


  2. Open Database tab and open setting for dBase Files. Select appropriate language driver for LANGDRIVER (i.e. "dBASE SLO cp852" for local slovenian characters).


  3. Open Configuration tab and open dBase settings in Local.Native. Select appropriate language driver for LANGDRIVER (i.e. "dBASE SLO cp852" for local slovenian characters).


  4. Close BDE Administrator and save changes.
Applies to: all versions, all editions
Last revision: December 2001


Values from Excel worksheet do not appear in NiceLabel. The database-variables are empty.

When you have connected an Excel worksheet to the label, sometimes the data from worksheet is not transferred to the variables on the label and they remain empty. This can happen when column in worksheet contains mixed data: some fields are alphanumerical and other numerical.

Microsoft ODBC driver tries to auto-detect the type of data entered in the cells, but sometimes this auto-detection routine fails and data type is wrongly recognized.

Workaround: Make sure that all values in the same column are of the same type. If that is not possible and you need to use mixed data, format this column as Text and not Generic (on the Format menu, click Cells, and select the Text option on the Numbers tab). The column formatting has to be performed prior the actual data entry. If the data is already entered, you will have to re-format the values using function TEXT (refer to MS Excel help for proper syntax of this function).

More information about this issue can be found in the Microsoft Knowledge Base, article No. Q141284

Applies to: all versions, all editions
Last revision: December 2002


I cannot use data from Microsoft SQL Server 2000.

Database functionality in NiceLabel software relies on the Borland Database Engine (BDE) that does actual connections to the database. Microsoft SQL Server 2000 introduced some new datatypes that were not available before, as Unicode character type NVARCHAR and NTEXT. BDE does not know how to handle this new datatypes and unpredictable program behaviour can occur because of this. Since MS SQL Server 2000 emerged, Microsoft stopped supporting DBLib library (responsible for connection to MS SQL Servers) in favor of ADO data connection. Because of this DBLib cannot be used for connection to new datatypes.

If you are experiencing strange program crashes and access violation error messages, it is most probably due the use of the new datatypes.

Workaround: Avoid the usage of new datatypes. Convert the field types in question to the data format from SQL Server 7 or earlier.

Solution: Upgrade to version 3.5.0 or greater.

Applies to: all versions before 3.5, all editions
Last revision: May 21, 2003


When I use Excel database in NiceForm the "Database login" dialog box is shown at form start-up and data from Excel do not show.

The problem originates in the fact is that two different applications cannot access Excel spreadsheet at the same given time. MS Excel itself can handle multiple connection to the same .XLS and if you open the .XLS file in one instance of MS Excel, it will be opened in read/write mode. If then some other user opens the same file in his instance of MS Excel, he will be prompted that only read-only mode is available to access the file.

But if you connect to MS Excel spreadsheet from some other application, the first user will be allowed to connect to it and will lock the file. So the second user is not allows the connection to the spreadsheet and will see the "Database login" dialog box.

There are two workarounds you can try:

Workaround 1: Disable Data view in NiceLabel Pro software and enable Normal view. This can be performed in View menu. Data view is used to preview the data values for the current record on the label. In order to to that NiceLabel Pro has to connect to MS Excel spreadsheet and thus locks the file. If NiceLabel Pro does not preview the data on the label, NiceForm will be able to connect to the same Excel spreadsheet.

Workaround 2: Do not make connection to the database on the label at all. Instead create prompted variables on the label. Connect to the database only in NiceForm. Then make sure to map the database fields and label variables together in order for databsae values to be transferred to the variables.
In this case NiceForm is the only application connecting to the Excel spreadsheet and "Database login" dialog box will not be shown.

Applies to: all versions, all editions
Last revision: December 2002


I cannot use data from FoxPro database tables.

Databases created in FoxPro (with file extension .DBF) are not natively supported in NiceLabel software. There is no database driver provided for connection to such data in NiceLabel installation. If you need to link to FoxPro databases there are two solutions available for you. Use one of the following solutions.

Solution 1 (recommended): To connect to FoxPro databases and obtain the data out of them the appropriate ODBC driver must be installed on the system. You must create the Data Source Name (DSN) in ODBC Data Source Administrator. This utility is located inside Administrative Tools in Control Panel. Then use this DNS as the ODBC source in NiceLabel software.

Solution 2: If you do not have the ODBC driver for FoxPro installed on the system, you can use a different approach. You can convert the FoxPro database to some other database format for which the driver is available. It can be done like this.

  1. Start Microsoft Excel application. Open the FoxPro database. Just use the Open command in the File menu. The data from FoxPro table will be displayed in the spreadsheet.
  2. Select the command Save As from the File menu and save the database in the .dbf (dBase) file format.
  3. Start NiceLabel software and use the database wizard to link to the converted database. The driver for dBase table access are installed with NiceLabel software.

Applies to: all versions, al editions
Last revision: August 30, 2004


If you have any additional questions, suggestions, bug report or need more information please contact the technical support at support@nicelabel.com.au



1x1px_transparent 1x1px_transparent 1x1px_transparent
1x1px_transparent
HomeContact UsSite MapAuthors