[en] The information in this topic relates to changes in the Web Printing site configuration file web.config
. If you haven't yet changed the installer path, the default location for the file is set to c:\Program Files\NiceLabel\NiceLabel Web Printing\Web\
.
[en] When the default (Forms) authentication is used, it is possible to customize the login page contents. The following attributes can be configured:
-
[en] Login page title. Default title is ‘Web Printing’. To change the title, add the following application setting into the file
web.config
:[en]
<appSettings>
[en]
<add key="LoginTitle" value="Custom login page title"/>
[en]
</appSettings>
-
[en] Width of the login page. Default width of the login page is 300 pixels. You can use the following application setting in the file
web.config
to change a default:[en]
<appSettings>
[en]
<add key="LoginWidth" value="500"/>
[en]
</appSettings>
-
[en] Instruction text. You can add a text block with instructions for the printing user. You can configure the text itself and the height for the text by the following application settings in the file
web.config
:[en]
<appSettings>
[en]
<add key="LoginInstruction" value="Instructions for the user. This will be displayed below the title and above the login controls."/>
[en]
<add key="LoginInstructionHeight" value="40"/>
[en]
</appSettings>
[en] Customize the Web Printing page by setting a key in the file web.config
, which sets the title of the page that is shown in the internet browser. The default title is ‘Web Printing’. You can change it by adding the following setting in the file web.config
:
[en] <appSettings>
[en] <add key="WebPrintingPageTitle" value="Custom web printing page title"/>
[en] </appSettings>
[en] In certain cases, you want to access local databases from your shared web applications instead of retrieving the data from databases stored in your Document Management System or SQL database servers. This is a common scenario if you are testing your shared web applications, or if you plan to migrate your database servers.
[en] Web Printing allows you to replace the database connections without opening and editing the database connections in your shared labels or solutions.
[en] The database connection string replacement logic is defined in the DatabaseConnections.Config
file. This configuration file is not installed along with Web Printing. To enable the use of the configuration file:
-
[en] Create an XML file using the following structure.
<?xml version="1.0" encoding="UTF-8"?> <DatabaseConnectionReplacements> <Replacement> <From>Data Source=mySQLServer</From> <To>Data Source=NEW_mySQLServer</To> </Replacement> </DatabaseConnectionReplacements>
[en] The configuration file defines the from-to pairs using its XML structure. The
<Replacement>
element contains one<From>
and one<To>
element. While running the web application, the "from" string is replaced with the "to" string. You can define as many<Replacement>
elements as necessary. -
[en] Save your
DatabaseConnections.Config
configuration file in the folder where the customer's Web Client is installed. By default, the location is:C:\Users\username\AppData\Local\NiceLabel\NiceLabelWebClient
.-
[en] After saving the configuration file, the Web Client always connects to the alternative database.
注意
[en] If you installed Web Client for all users with the command-line option ALLUSERSINSTALL, save your configuration file in the following folder:
c:\Program Files\NiceLabel\NiceLabel Web Printing\Web\bin
. Details are available in section Installing Web Client for all users. -