Page 1 of 1

Barcode Print Problem

PostPosted: Wed Mar 28, 2007 1:43 am
by breeze(Legacy Member)
Hi

I use morovia barcode activex demo version on vb. i have 2 pictureboxes on a form(their width and height is same and i sent picture2 back) and other controls(like labels) and 8 barcodes on picture1

before printing picture1 and barcodes i make form.visible=true and i see everything is ok. when i print form.picture and barcodes, i can print form+barcode1 but i cant print other barcodes. what is wrong?

code is like this:

Form8.Visible = True
DoEvents
Form8.Picture1.SetFocus
Form8.Picture2.AutoRedraw = True
rv = SendMessage(Form8.Picture1.hwnd, WM_PAINT, Form8.Picture2.hDC, 0)
rv = SendMessage(Form8.Picture1.hwnd, WM_PRINT, Form8.Picture2.hDC, _
PRF_CHILDREN + PRF_CLIENT + PRF_OWNED)
Form8.Picture2.Picture = Form8.Picture2.Image
Form8.Picture2.AutoRedraw = False
Printer.PaintPicture Form8.Picture2.Picture, 0, 0
Printer.PaintPicture Form8.MrvBarcode1.Picture, 0, 0
Printer.PaintPicture Form8.MrvBarcode2.Picture, 3960, 1020
Printer.PaintPicture Form8.MrvBarcode3.Picture, 0, 3960
Printer.PaintPicture Form8.MrvBarcode4.Picture, 3960, 4920
Printer.PaintPicture Form8.MrvBarcode5.Picture, 0, 8040
Printer.PaintPicture Form8.MrvBarcode6.Picture, 3960, 9000
Printer.PaintPicture Form8.MrvBarcode7.Picture, 0, 12240
Printer.PaintPicture Form8.MrvBarcode8.Picture, 3960, 13440
Printer.EndDoc
Unload Form8
Set Form8 = Nothing

Re: Barcode Print Problem

PostPosted: Wed Mar 28, 2007 9:04 am
by glitch(Legacy Member)
I tested your code (the second half), and I have no problem printing all barcodes. I suggest that you build a standalone project (1 form with multiple barcodes) and test from there.

Re: Barcode Print Problem

PostPosted: Sat Apr 05, 2008 4:08 am
by atifmushtaq(legacy member)
Sir,

There is a problem in my demo barcode dll activex that is when i sel the value False of Human ReadAble that is not work the message hide in half not a full.

Please reply me as soon as possible.

Thanks

Re: Barcode Print Problem

PostPosted: Sun Apr 06, 2008 12:00 pm
by glitch (legacy member)
I need a screenshot to understand the issue.

Re: Barcode Print Problem

PostPosted: Sun Apr 06, 2008 9:48 pm
by atifmushtaq(legacy member)
i send you screen shot at you e-mail becoz i am trying here but i was unable to upload file here soo please check this and reply me

thanks