Support‎ > ‎

HRPro.config Settings

Starting at 14.02, HRPro Web Client have it own config file (HRPro.config) that stored the site specific information (SQL Server connection info and smtp server settings or may be others). Web Client now read the settings in HRPro.config first before looking into Web.Config. So HRPro.config will be a static file storing customer information that stay on customer site and the settings in Web.config will be ignored.

It is preferable to define settings in HRPro.config rather than Web.config.
 
Sample HRPro.config settings

HRPro.config

<appSettings>
  <add key="data source" value="NUTECH-OFFICE\HRPRO2008"/>
  <add key="initial catalog" value="dbHRPro"/>
  <add key="user id" value="sa"/>
  <add key="password" value="Password"/>
  <add key="smtp from" value="hr@hrpro.hk"/>
  <add key="smtp from name" value="HR Department"/>
  <add key="smtp network host" value="smtp.gmail.com"/>
  <add key="smtp network port" value="587"/>
  <add key="smtp userName" value="hr@hrpro.hk"/>
  <add key="smtp password" value="Password"/>
  <add key="smtp enableSsl" value="true"/>
  <add key="smtp CCToSender" value="0"/>
  <add key="smtp BCCToSender" value="0"/>
  <add key="MaxUploadFileSize" value="41943040"/>
  <add key="LongDateFormat" value="d MMMM, yyyy"/>
  <add key="dbCommandTimeout" value="600"/>
  <add key="EventLogMaximumRecords" value="10000"/>
  <add key="dbCommandTimeout" value="600"/>
  <add key="GeneralExcelSingleDateTimeIOMode" value="99"/>
  <add key="GeneralExcelCustomDateFormat" value="yyyy-MM-dd dddd"/>
  <add key="CompanyLogoLocation" value="https://s.yimg.com/rz/d/yahoo_zh-Hant-HK_f_p_bestfit_2x.png"/>
  <add key="dbHRPro CompanyLogoLocation" value="https://www.google.com.hk/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png"/>
  <add key="IsGridDisplayDeleteConfirmation" value="false"/>
  <add key="IsSingleCompanyLogin" value="false"/>
  <add key="output to ppt" value="false"/>
  <add key="PLRPS Order By" value="[Batch No.vr_PLRPE.BATCH_NO], [Name.vr_PLRPE.EE_NAME]"/>
  <add key="PasswordPolicy" value="8LUDS" />
  <add key="PLFEE_PHOTO_Width" value="1292000"/>
  <add key="PLFEE_PHOTO_Height" value="1723000"/>
  <add key="PDFReportUseFontFile" value="false"/>
</appSettings>

You can only put the keys you required into HRPro.config. If the key is missing in HRPro.config, system will use it default setting.

If IsSingleCompanyLogin is set to true, the company selection combo box during login will be disabled.

If PDFReportUseFontFile is set to true, it supported to export PDF with Chinese Characters normally without requiring install Arial Unicode MS to the Server. See Why all Chinese Characters on the PDF report displayed as rectangular box in HRPro Web Client/EPortal?

For database specific settings, you can put the database name in front of the Key and separated with a space, e.g 
<add key="dbHRPro CompanyLogoLocation" ...>

See also