City Linux

Linux support for private, public & voluntary sector.

Printing laminated licences from APP.

Overview

The CardFive applications software used for creating laminated identity cards for Personal Licence holders under the 2004 Liquor Licencing Act are integrated into APP using a wrapper script created by C W Fulford to launch the application.

EXT configuration

Screen dump of EXT configuration

Note that CardFive can be run directly with the the target file name as the only parameter.

To create the card we need to find the template and the scanned photograph, and so run a wrapper script to load CardFive.

Wrapper script

#!/cygdrive/s/flare/utils/bash.exe
# File          : cardfive
# Path          : l:/flare/etc
# Author        : Clifford W Fulford
# Last update   : 9 September 2005
# Copyright (c) 2005 Clifford W Fulford. All rights reserved.
########################################################################
PATH=/cygdrive/s/flare/utils:$PATH
#set -x
OutputName=`gawk -F= '$1 ~ /^OutputName/{printf $2}' $TEMP/fssexp.ini`
echo -e  "Setting up data files for CardFive...\nPlease wait!"
mkdir $TEMP\\$OutputName
cd $TEMP\\$OutputName
#gawk '$1 !~ /Export/{print $1}' $TEMP/fssexp.ini >env
#. ./env
mv C:/Flare/FSS/exports/$OutputName.csv $TEMP/fsslicence.csv 
cp.exe  L:/templates/badge.car  $OutputName.car
c:/Program\ Files/CardFive/CardFive.exe  $OutputName.car;
clear
echo -e "\nWaiting for CardFive to write back to disc... Please wait!\n"
sleep 4;
echo -e "\Tidying up.\n"
mv $OutputName.car L:/licences/$OutputName.car
rm  $TEMP/fsslicence.csv
   

The script uses fssexp.ini exported by Flare/Authority to find the export file with the licence holders details. A copy of the template created in CardFive is created with the same file name but using the CardFive extension "car". CardFive is then run with new file name as its only parameter.

The script then waits in background until CardFive is closed when the completed licence is moved to the Liquor Licencing file store and the temporary files are removed.

For detailed information please contact the systems administrator:

		Clifford W Fulford
		0709 229 5385
		fulford@fulford.net
   

 

Webmaster |
Valid XHTML 1.0! | Valid CSS! | Level Double-A conformance icon, W3C-WAI Web Content Accessibility Guidelines 1.0 |

The layout and associated style sheets for this page are taken from the World Wide Web Consortium and used here under the W3C software licence.