PTRobot API
Page 21 of 41
© 2005, Primera Technology, Inc. Primera is a registered trademark and Bravo is a trademark of Primera Technology, Inc. All other trademarks are the property of
their respective companies.
DWORD WINAPI
PTRobot_PrintFile
(HANDLE hRobot, TCHAR
*
tszFile, DWORD dwPrintIndex);
2.3.8
PTRobot_PrintFileWithMerge
///////////////////////////
//
// PTRobot_PrintFileWithMerge
//
// Description:
//
Function to print a Surething .STD file that has Merge Text/Photos.
//
The Merge Text and/or Photos can be specified in a variable number of
//
arguments passed into this function. The Surething file should be designed
//
with the same number of merge strings passed in here.
//
// Params:
//
hRobot
Handle to the robot (from EnumRobots)
//
tszFile
Surething (.STD) File to print.
//
dwNumMergeStrings
Number of merge strings to follow
//
...
Variable number of pointers to TCHAR strings
//
These are the merge strings or photo names (including
//
path)
to
be
printed.
//
NOTE: For the strings that follow dwMergeStrings to
//
be used, the user must have “Set Merge File” within
//
the
.STD
file
//
** Limit each string to 256 characters or less **
//
// Return:
//
PTROBOT_OK if Successful
//
PTROBOT_SEQUENCE if this command is called out of sequence
//
PTROBOT_INTERNAL if an internal error occurred
//
PTROBOT_INVALID_ROBOT if the robot handle is invalid
//
PTROBOT_NO_PRINTER if the robot doesn't have a printer
//
PTROBOT_PRINTFILE_NOT_FOUND if the file doesn't exist
//
PTROBOT_PRINTAPP_NOT_INSTALLED if the required print application is not
//
installed.
//
PTROBOT_PRINTFILE_INVALID if the filename is not .STD
//
///////////////////////////
DWORD WINAPI
PTRobot_PrintFileWithMerge
(HANDLE
hRobot,
TCHAR
*
tszFile,
DWORD
dwNumMergeStrings,
...);
2.3.9
PTRobot_SetPrinterSettings
///////////////////////////
//
// PTRobot_SetPrinterSettings
//
// Description:
//
Function to set some printer driver settings
// Params:
//
hRobot
Handle to the robot (from EnumRobots)
//
pPrinterSettings
points
to
a
PTPrinterSettings
structure.