In order to use windows printer to print barcodes from SAP ERP system, a new device type same as "SWIN" (Rel.4.x/SAPlpd 4.09 + ONLY!) is needed, if you want to use SWINCF to print barcodes, please check out the SAP Note 1079665.
Follow the instructions listed below to create a new device type:
(1) Start transaction SPAD.
(2) Select "Utilities" > "For device types" > "Copy device type", then select the device type "SWIN (Rel.4.x/SAPlpd 4.09 + ONLY!)" or "SWIN (Windows printing via SAPlpd)" for "Copy device type", please don't choose "SAPWIN". Enter a name that begins with Y or Z. (e.g. YSWIN) for "to device type" and choose the default settings for "User references" and "Adapt INCLUDEs to source" fields.
(3) Click "Execute" icon to bring up the next window and click "Yes" button.
(4) If you want to create a local object, click "Local Object" button, otherwise you need to specify a package.
(5) Hit a few times until you can see the main menu window.