VFP指定打印机出错求助
Use g:\出库单20130912.frx
Replace All Tag With '',tag2 With '' For Objtype=1
USE
SET DEVICE TO print
SET PRINTER TO "HP LaserJet Professional M1216nfh MFP" GETPRINTER( )
Report Form g:\出库单20130912.frx Noconsole To Printer Prompt Preview
SET PRINTER TO EPSON GETPRINTER( )
Report Form g:\出库单20130912.frx Noconsole To Printer Prompt Preview
以上为我写的代码, "HP LaserJet Professional M1216nfh MFP"和EPSON为我电脑上的两台打印机,现在用set printer to 打印机名 getprinter()只能调用默认打印机,求助 VFP指定打印机
[解决办法]
1、
Set Printer To "HP LaserJet Professional M1216nfh MFP" Getprinter()
改为
Set Printer To Name "HP LaserJet Professional M1216nfh MFP"
或
Set Printer To Name Getprinter()
2、
Set Printer To EPSON Getprinter( )
改为
Set Printer To Name "EPSON"
或
Set Printer To Name Getprinter()