Barcode Print Problem
5 posts • Page 1 of 1
Barcode Print Problem
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
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
- breeze(Legacy Member)
Re: Barcode Print Problem
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.
- glitch(Legacy Member)
Re: Barcode Print Problem
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
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
- atifmushtaq(legacy member)
Re: Barcode Print Problem
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
thanks
- atifmushtaq(legacy member)
5 posts • Page 1 of 1
Return to Barcode ActiveX Control
Who is online
Users browsing this forum: No registered users and 2 guests