ID Flow Command Line Interface
The ID Flow command line interface included with Enterprise Edition allows for easy control of ID Flow from any traditional Windows application or Web application. Load ID Flow, select card designs, specify data source options, choose target printers and configure print options, all from your software application.
Transparent Operation
When you print cards from your application using the ID Flow command line interface, your users don't even need to know that ID Flow is printing the labels. Transparent integration means cards will print in the background with no required user interaction.
Web-based XML Integration
Interfacing with your web application is easy with the ID Flow command line interface. Options and data can be passed via XML from your web application. The command line interface will parse the XML data and print ID cards using the specified options and data. The command line interface will also accept XML data from traditional Windows applications.
How Integration Works
Download ID Flow Command Line Brochure (52 KB)
- Step 1: Design your ID card using ID Flow
- Step 2: Add code to your application that will call the ID Flow command line interface with the appropriate parameters
Sample Integration Code (Visual Basic .NET)
Public Sub printCard(ByVal user_id As String, ByVal num_copies As String, ByVal printer_name As String)
Dim proc_id As Integer
Dim command As String
Dim program_location As String
Dim filter_statement As String
Dim design_file As String
' Set program location
program_location = """C:\Program Files\Jolly Technologies\ID Flow\CommandLine.exe"""
' Set number of copies
num_copies = """" & num_copies & """"
' Set printer name
printer_name = """" & printer_name & """"
' Select the requested user record from the database that was configured at design-time
filter_statement = """`UserID`=" & user_id & """"
' Set design file
design_file = """C:\card_design.jps"""
' Build the command line
command = program_location & " /copies " & num_copies
command = command & " /printer " & printer_name
command = command & " /filter " & filter_statement
command = command & " " & design_file
' Start the CommandLine application, and store the process id
proc_id = Shell(command, AppWinStyle.MaximizedFocus)
End Sub
- Step 3: Print cards from your application
Feature Highlights
Print pre-designed cards and badges
The Command Line Interface can print any cards that were designed using ID Flow.
Comprehensive options
Many of the options available in ID Flow are can be passed as parameters to the Command Line Interface including:
- » Card design file
- » Target printer
- » Number of copies
- » Data to print on card
|
- » User login credentials
- » File password
- » Many print options
- » Much more
|
Printing variable data is easy
There are three ways to pass variable data using the ID Flow command line interface.
- 1. Name-value pairs
Data may be passed in the form of name-value pairs such as Name="Michael Larkin".
- 2. XML formatted data
Data may be provided in an XML formatted file.
- 3. Database query string
Records may be selected for printing by passing a database query string, similar to the WHERE clause in a SQL SELECT statement.
Full scripting support
The ID Flow command line interface is fully scriptable and you pass batch files to run sequences of commands for printing multiple groups of cards and badges.
Detailed logging
The details of each action can be logged in a detailed log file.
Simplify User Interaction
The ID Flow command line interface can also be an ideal solution for novice users. For example, a shortcut to the command line interface can be created on the desktop, that when clicked, prints a set of cards, making card printing as simple as double-clicking on an icon. |