I am comfortable that we can do what we want with the code from the conference CDs. It sounds like what Tom presented is exactly what you are trying to do.
So here is the code that Tom used to print out ID badges:
var vLogoFont as String = "Anna"
var vFont as String = "Arial Black"
var vFont2 as String = "Lucida Console"
// See www.carolinabarcode.com
var vBarcodeFont as String = "CarolinaBar-B39-25D1"
If @Askuser("Print a membership card for " + First Name + " " + Last Name + "?","","") Then
{
NewPage(850, 1100)
PrintPageMargin(25,25,25,25)
// Print logo
PrintImage(@ImagePath() + "\" + "Flacid Valley Fitness.png", 0, 0, -1, -1)
// Print watermark
PrintImage(@ImagePath() + "\" + "Hackensack.png", 50, 50, 80, 80)
// Print Photo at right
PrintImage(@ImagePath() + "\" + Photo, 225, 50, 138, 103)
PrintString(First Name, 30, 50, 0, vFont, 24, 0)
PrintString(Last Name, 30, 76, 0, vFont, 24, 0)
PrintString("Member No. " + Member ID, 0, 130, 0, vFont2, 14, 0)
// Print barcoded ID number
PrintString("*" + Member ID + "*", 0, 150, 0, vBarcodeFont, 24, 0)
PrintString("Member Since " + @Month(Membership Date) + "/" + @Right(@Year(Membership Date), 2), 180, 165, 0, vFont2, 10, 0)
PrintString("Expires " + @Month(Expiration Date) + "/" + @Dom(Expiration Date) + "/" + @Right(@Year(Expiration Date), 2), 180, 180, 0, vFont2, 10, 0)
AlternateDefaultPrinter("PDF995")
FinishPage()
RestoreDefaultPrinter()
}
As I noted earlier, it is short and simple.
It should be noted that this is just a small part of his application that uses small camera to capture photo, store it, and tie it into database for immediate printing.
Thanks to Tom Marcellus for sharing his work with us. Gotta go to those annual conferences.