by mhelal(Legacy member) on Wed May 25, 2005 10:07 pm
Hello,
Thank you for replying, I am using EAN13, and trying the NarrowBarWidth, BarHeight properties change the sizes of the bar code itself, not the image it draws the barcode inside. So the bar code itself looks smaller inside the size of the picture that is: mvrBarCode1.Picture.Width and mvrBarCode1.Picture.height and has fixed read only sizes
I think these 2 properties are what decide the printing size, because when I print the picture of the bar code, it prints only one bar code image in the page, and I can't print again, as the size from the next x, or y position in the page, exceeds the printer width or height. While the actual printing of the bar code consumed less area within the picture size, and it seems so far that there is no overlapping of the printing of the bar code image,
Like if I print 2 images on the same raw: it looks like that:
X = 1
Y = 1
Printer.PaintPicture MyBarCode.Picture, X, Y
Then the second image should be on
X = X + MyBarCode.Picture.Width
Printer.PaintPicture MyBarCode.Picture, X, Y
and so on, till (X > Printer.ScaleWidth - MyBarCode.Picture.Width), I start new page and reset X and Y as follows
X = 1
Y = Y + MyBarCode.Picture.Height
Printer.PaintPicture MyBarCode.Picture, X, Y
And so on, till (Y > Printer.ScaleHeight - MyBarCode.Picture.Height), I start a new page and reset X and Y as follows
Printer.NewPage
X = 1
Y = 1
Printer.PaintPicture MyBarCode.Picture, X, Y
And so on till I finish all the bar codes I have. this code doesn't work, because the size of the bar picture gets more than the width of the printer after the first one, and I can't print the first bar code in any area away from the top left corner of the page, which is strange.
So, my question is: is it possible to print the bar code images several times on the same page, positioning them where I need on a preformatted label sheet, and if the picture sizes are too big, while the bar code itself is too small within the picture, can I overlap printing over the empty picture space, my testing so far proves that I can not?
Can you please advise, I appreciate your help, thank you,
Manal
Edited by mhelal on May 26 2005 at 2:39am