|
|
(Sound Required)
|
|
|
The COM object (ActiveX) can be used in Local mode, which retrieves address
data from a local
copy of the PAF data. Therefore the calls to the database are quicker,
and work if you do not have connection to the internet. The Price for the PAF data is the same as the Web version, but we charge extra for the initial CD-ROM, and any updates shipped by CD-ROM. Updates can be easily downloaded from internet. [Download Data and extra files] In the case of PostZon and Thoroughfare (Street level) data, the data only needs updating every 12 months. Full address should be updated every month. See the VB6 examples for a demonstration of all of this working. Or run SimplyPostCodeLookupCOMExample.exe from the "Example Code >> COM Object" directory
|
|
|
Firstly it is the same COM object, as our Web based system, but we set an extra parameter first to point to the local data files.
LMSetDataPath "X:\PAFDATA" SetDataKey "I"
The Licenses should then be applied to the system, using MANAGER.EXE program, or using your own interface (See below). Alternatively you can add this functionality to your own software, see below. The following procedures will then use the local database:
The data key should be set to "I" (for internal use) or "W" (for Public Web Site use) If the address data is used on a Web server, by employees of your company then call LMSetOverideComputerName(ComputerName) to set the user name of each user, in accordance with our and the Royal Mails terms and Conditions. If the COM toolkit is used with an application (client running on each PC) then is is done automatically.
Advanced searching (Full PAF) is NOT available when in local mode, but all other functions will work, but those that require Web connection will still use internet.
|
|
|
The License is usually managed through the use of the MANAGER.EXE program. But the programmer can incorporate the License functionality in their own application, using the calls: LMGetSiteCode() as string LMGetLicenseID() as Long This returns a code. This code should be displayed, and the user quotes this number to obtain an "UnlockCode". This code is used to identify the "Site", so the code cannot be used on another network or machine. LMTryUnlockCode(UnlockCode as string) as string Returns "OK : Summary of License" or Error description for display, if unlock is invalid. So test for "OK" at start of string, meaning the license has been accepted. LMGetLicienseInfo() as string This function returns the status of data and license and should be displayed within the host application in a large text box. Typical Output: System: Firstly all searches will result in "No License for data" error
So display a window which: 1) Displays the License information in a large text box, using LMGetLicienseInfo() 2) Display site code, which the user should quote when requesting a license 3) Allow user to enter unlock code, then call LMTryUnlockCode(UnlockCode) 4) Display string returned 5) If "OK" at start to string returned then close window, else allow another attempt at entering code
Always include MANAGER.EXE in the installation, since it may be needed
For till solutions which want to offer both Full Address and Street/Thoroughfare Address, we suggest that your software sense the presents of the data files, and switch ON/OFF the functionality based on the presents of:
|
|
|
The Data can be updated either: 1) With internet access:
2) Without Internet Access
where YourProductName is the name of your program, and is included in any window title shown Your program can access the last date updated using: LMGetLastUpdateDate(DataType as string) as string where DataType = F (full), T (thoroughfare) or Z (PostZon) This returns the data the data was last updated in YYYYMMDD format. Your program could check this and ask to update, if older than 6 months for thoroughfare and PostZon, or 2 months for FULL PAF address data
|
|
|
The Program MANAGER.EXE gives access to the licenses and status of the system:
Note: "Data Status" will only show data status if you have the data files loaded This file must be located in the same directory as the data.
Add new License window:
|
|
|
WARNING: Restoring from a backup, when using the Credits License for Web use, will lock out your system. You will require a new unlock code to re-enable the system.
A license CANNOT be switched back from Local Data to Query our server once issued.
|
|
Postcode Lookup Software © ComTek Accounts 2005 Internet Postcode Address Lookup Software
PAF Postcode Address Lookup Software for Web Sites PAF Postcode Address Lookup Software using .NET and SOAP Services COM Object for PAF Postcode Address Lookup Software PAF Postcode Address Lookup Software Desktop Application Manual PAF Postcode Address Lookup using HTTP to request XML data PAF Postcode Address Lookup Software Troubleshooting |


