注册 登录
编程论坛 VFP论坛

VFP如何COM打印?

ljb8864 发布于 2023-09-12 09:28, 476 次点击
VFP如何COM打印?有没有相关API
4 回复
#2
吹水佬2023-09-12 09:55
vfp打印输出通常是使用windwos的打印设备
COM设备厂家有提供接口API时参考开发手册
#3
ljb88642023-09-12 12:32
回复 2楼 吹水佬
只有本站会员才能查看附件,请 登录


有这个DLL  不知能不能知道里面的函数和参数不?



以下函数怎么调用 :



*!*                                                                                                  
*!*    ??0CPrinterComm@@QAE@XZ                                                                             
*!*    ??1CPrinterComm@@UAE@XZ                                                                             
*!*    ??_7CPrinterComm@@6B@                                                                              
*!*    ?ChkMainboardID@CPrinterComm@@QAEXXZ                                                               
*!*    ?ClearPrinterAlarm@CPrinterComm@@QAEXXZ                                                            
*!*    ?ClosePrintComm@CPrinterComm@@QAEXXZ                                                               
*!*    ?EnableJetPrint@CPrinterComm@@QAEXH@Z                                                               
*!*    ?GetCylinderSensorStatus@CPrinterComm@@QAE?AVCString@@V2@@Z                                         
*!*    ?GetErrMsgCodeNPos@CPrinterComm@@QAE?AVCString@@V2@@Z                                               
*!*    ?GetMainBoardID@CPrinterComm@@QAE?AVCString@@V2@@Z                                                  
*!*    ?GetSensorStatus@CPrinterComm@@QAE?AVCString@@V2@@Z                                                
*!*    ?GetSerialStatus@CPrinterComm@@QAEHVCString@@@Z                                                     
*!*    ?InitPrintComm@CPrinterComm@@QAEHIVCString@@@Z                                                      
*!*    ?IsChastenOver@CPrinterComm@@QAEHVCString@@@Z                                                      
*!*    ?IsLabelClampAway@CPrinterComm@@QAEHVCString@@@Z                                                   
*!*    ?IsPrintOver@CPrinterComm@@QAEHVCString@@@Z                                                         
*!*    ?MoveCylinder@CPrinterComm@@QAEXII@Z                                                               
*!*    ?MoveMotor@CPrinterComm@@QAEXHH@Z                                                                  
*!*    ?PrintLabel@CPrinterComm@@QAEXXZ                                                                    
*!*    ?ResetStepMotor@CPrinterComm@@QAEXXZ                                                               
*!*    ?SendChastenCmd@CPrinterComm@@QAEXVCString@@H@Z                                                     
*!*    ?SendCheckCylinderSensor@CPrinterComm@@QAEXXZ                                                      
*!*    ?SendCheckLabelStatus@CPrinterComm@@QAEXXZ                                                         
*!*    ?SendCheckSensor@CPrinterComm@@QAEXXZ                                                               
*!*    ?SendCheckSerial@CPrinterComm@@QAEXXZ                                                               
*!*    ?SendClampAwayLabel@CPrinterComm@@QAEXXZ                                                            
*!*    ?SendEmpPrnCmd@CPrinterComm@@QAEXXZ                                                                 
*!*    ?SendJetCommand@CPrinterComm@@QAEXAAVCByteArray@@@Z                                                
*!*    ?SendJetDelayTime@CPrinterComm@@QAEXI@Z                                                            
*!*    ?SetClampMode@CPrinterComm@@QAEXI@Z                                                                 
*!*    ?SetLabelitem@CPrinterComm@@QAEXIINVCString@@@Z                                                     
*!*    ?SetPrintSpeed@CPrinterComm@@QAEXI@Z                                                               
*!*    ?SetSuckLBNum@CPrinterComm@@QAEXI@Z   

[此贴子已经被作者于2023-9-12 13:41编辑过]

#4
ljb88642023-09-12 13:51
1      ??0CPrinterComm@@QAE@XZ              037313D0      0      
2      ??1CPrinterComm@@UAE@XZ              03731450      0      
3      ??_7CPrinterComm@@6B@                03734240      0      
4      ?ChkMainboardID@CPrinterComm@@QAEXXZ 03732AF0      0      
5      ?ClearPrinterAlarm@CPrinterComm@@QAEXXZ03732240      0      
6      ?ClosePrintComm@CPrinterComm@@QAEXXZ 03731460      0      
19     ?PrintLabel@CPrinterComm@@QAEXXZ     03731C10      0      
20     ?ResetStepMotor@CPrinterComm@@QAEXXZ 037318B0      0      
22     ?SendCheckCylinderSensor@CPrinterComm@@QAEXXZ037331A0      0      
23     ?SendCheckLabelStatus@CPrinterComm@@QAEXXZ03732EC0      0      
24     ?SendCheckSensor@CPrinterComm@@QAEXXZ03731990      0      
25     ?SendCheckSerial@CPrinterComm@@QAEXXZ037317E0      0      
26     ?SendClampAwayLabel@CPrinterComm@@QAEXXZ03732F90      0      
27     ?SendEmpPrnCmd@CPrinterComm@@QAEXXZ  03731E30      0      
7      ?EnableJetPrint@CPrinterComm@@QAEXH@Z037323C0      1      
12     ?GetSerialStatus@CPrinterComm@@QAEHVCString@@@Z03731580      1      
14     ?IsChastenOver@CPrinterComm@@QAEHVCString@@@Z03732850      1      
15     ?IsLabelClampAway@CPrinterComm@@QAEHVCString@@@Z03733060      1      
16     ?IsPrintOver@CPrinterComm@@QAEHVCString@@@Z03731480      1      
28     ?SendJetCommand@CPrinterComm@@QAEXAAVCByteArray@@@Z03732500      1      
29     ?SendJetDelayTime@CPrinterComm@@QAEXI@Z03731F30      1      
30     ?SetClampMode@CPrinterComm@@QAEXI@Z  03732CA0      1      
32     ?SetPrintSpeed@CPrinterComm@@QAEXI@Z 03731A60      1      
33     ?SetSuckLBNum@CPrinterComm@@QAEXI@Z  03732BC0      1      
8      ?GetCylinderSensorStatus@CPrinterComm@@QAE?AVCString@@V2@@Z03733270      2      
9      ?GetErrMsgCodeNPos@CPrinterComm@@QAE?AVCString@@V2@@Z03732030      2      
10     ?GetMainBoardID@CPrinterComm@@QAE?AVCString@@V2@@Z03732960      2      
11     ?GetSensorStatus@CPrinterComm@@QAE?AVCString@@V2@@Z03731690      2      
13     ?InitPrintComm@CPrinterComm@@QAEHIVCString@@@Z03731D40      2      
17     ?MoveCylinder@CPrinterComm@@QAEXII@Z 03732D80      2      
18     ?MoveMotor@CPrinterComm@@QAEXHH@Z    037326E0      2      
21     ?SendChastenCmd@CPrinterComm@@QAEXVCString@@H@Z037325D0      2      
31     ?SetLabelitem@CPrinterComm@@QAEXIINVCString@@@Z03731B40      5      
#5
吹水佬2023-09-12 21:08
回复 3楼 ljb8864
找这个DLL的主人要使用手册
1