http://bugs.winehq.org/show_bug.cgi?id=30699
Bug #: 30699 Summary: wine printing: barcode is not printed from VB6 application Product: Wine Version: unspecified Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wineps.drv AssignedTo: wine-bugs@winehq.org ReportedBy: edwin+winebugs@etorok.net Classification: Unclassified
Created attachment 40201 --> http://bugs.winehq.org/attachment.cgi?id=40201 barcode screenshot
There is an application provided by the Romanian finance administration for printing Payment sheets with barcodes. I tried to use it in Wine (it appears to be a VB6 application), and I could enter all the data, and it displayed a generated barcode.
However when I tried printing it didn't print the barcode. This happens both when printing to my printer (Samsung ML-2010P), or using CUPS-PDF.
Attached is the PDF produced when printing through CUPS, and a screenshot taken while printing. Notice that on the screenshot there is a barcode in the right towards the top, and in the produced PDF there is no barcode at all.
Attached is also WINEDEBUG=+relay,+seh,+tid,+psdrv output.
How to reproduce (including download URL): 1. Prepare application
mkdir $HOME/.wine-bug export WINEPREFIX=$HOME/.wine-bug # create winedir winecfg # get program wget http://static.anaf.ro/static/10/anaf/aplicatii/op_fv/opfv2010/instal_opfv_28... unzip instal_OPFV_28032012.zip
wine instal_OPFV_2012.exe
# set locale: if date format is wrong program refuses to work export LANG=ro_RO.UTF-8 LANGUAGE=ro_RO.UTF-8 LC_TIME=ro_RO.UTF-8 cd '$HOME/.wine-bug/drive_c/Program Files/OPFV 2012'
# enter test data cat >ordine.txt <<EOF 1,1,1,TEST,1234567897,,,,BUGETUL DE STAT,1234567897,RO26TREZ57820470101XXXXX,,,BUGETUL DE STAT,16/05/2012,FV EOF
2. Make sure you have a printer. Bug reproduces with CUPS-PDF too, so edit $HOME/.wine-bug/drive_c/windows/win.ini, and use these settings for the printer:
[devices] PDF=wineps.drv,CUPS:PDF [PrinterPorts] PDF=wineps.drv,CUPS:PDF,15,45 [windows] device=PDF,wineps.drv,CUPS:PDF
3. Run app wine OPFV_2012.exe
4. Print from the application - Click on "FV" - Choose 1,1,FV from the 'Nr. de ordine, Nr. OP/FV' dropdown - Click "Incarcare" - Click "Listare"
5. Look at the printed document, or PDF and notice that the barcode on the top right is missing in the printout. See attached PDF vs. attached screenshot. The barcode IS visible during printing, its just never printed.