不知道...
But I sustain you!
Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP ......
Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP Up Up Up Up Up Up Up UP
你这样试一下
Public Declare Function CallbackProc Lib "XX.dll" (ByVal hPrinter As Long, ByRef pPrintingInfo As TA_PRINTINGINFO, ByVal dwErrorInfo As Long) As Long
其中的xx.dll为你要调用的动态连接库
然后
dwRet = TTA_SendImageAndPrint(phPrinter, hdcDest, AddressOf CallbackProc)
你这样试一下
Public Declare Function CallbackProc Lib "XX.dll" (ByVal hPrinter As Long, ByRef pPrintingInfo As TA_PRINTINGINFO, ByVal dwErrorInfo As Long) As Long
其中的xx.dll为你要调用的动态连接库
然后
dwRet = TTA_SendImageAndPrint(phPrinter, hdcDest, AddressOf CallbackProc)
--------------------------------------------------------------------------------
[Format] void CallbackProc(
HANDLE hPrinter,
PTA_PRINTINGINFO pPrintingInfo,
DWORD dwErrorInfo )
[Overview] This callback function is registered by the application when TA_SendImageAndPrint() function and TA_SendImage() function is called.
And this callback function is called from the thread for image data sending and print process monitoring which the SDK has started.
[Parameters] hPrinter (IN) Printer handle
pPrintingInfo (IN) Information about print progress
dwErrorInfo (IN) Information about error
TA_OK : Printing with no problem
Other : Information about error which is occured
(Same format as return value of the SDK function.)
[Return value] None
[Explanation] The application can manage print status by getting printer status and print progress.
When an error has occurred, error information is set to dwErrorInfo.
Callback function is called in situations described below.
Value of pPrintingInfo is also described.
(bDetailStatus, wPrintedNumber, wPrintRequestNumber is the member of TA_PRINTINGINFO structure)
While SDK function is sending image data : After each unit (128K byte) of the image data is sent to the printer bDetailStatus : Now sending the image data(TA_PRINTERSTATUS_SENDING)
wPrintedNumber : Image data sending rate (displayed in percentage. When image data sending has been completed : TA_SENDIMAGE_COMPLETE)
wPrintRequestNumber : 0
dwErrorInfo : TA_OK
From a printing start to an end bDetailStatus : Now printing (TA_PRINTERSTATUS_PRINTING)
wPrintedNumber : Number of copies already printed
wPrintRequestNumber : Number of requested copies
dwErrorInfo : TA_OK
When an error has occurred bDetailStatus : Status at that time : "Now sending the image data" or "Now printing"
wPrintedNumber : Image data sending rate (displayed in percentage) or number of copies already printed
wPrintRequestNumber : 0 or number of requested copies
dwErrorInfo : Information about error
Value of pPrintingInfo is effective only within this callback function.
Therefore, if the application need to refer to these values, it is necessary to copy these values to the variables in the application.
The type definition as a pointer of this function is PTA_CALLBACK.