Link to home
Start Free TrialLog in
Avatar of Darkcrystal
Darkcrystal

asked on

Printing Labels Margin Problem

Hi,  Pretty new at this so I will try not to sound to moronic...

I have a vb app that I am making that tracks jobs.. One part of the tracking for each job is to print out a label that holds a bar code(job number) a date, and some other items that we need to see on it.  I am using a Smart Label Pro 240 that uses 2.15 x 2.27 in labels.... The print is in landscape mode and my problem is getting it to start printing on the top right hand corner of the label.  Right now it just starts in the middle and it really seems to only use about an inch square of the whole label.  I am just using the basic Printer.Print statments (as that is all I know) and I have searched all over for something that might help but nothing seems to work.  So I guess help...


Thanks,
Charles
ASKER CERTIFIED SOLUTION
Avatar of bagnol
bagnol

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Darkcrystal
Darkcrystal

ASKER

Hrmm

I think because I am printing out in landscape I need to adjust the printer.currentY to move the text closer to the right edge so...

I still have the problem where it only prints in the middle of the label...  If I set Printer.CurrentY to 35(mm) it prints a blank lable then prints the text on the second one about 35mm from the left edge but 14mm away from the right edge.  It also will only go towards the left edge about the same 14mm then it just prints a blank label..

To make the label work I need the top of the first line to be about 3mm away from the right edge...  I don't suppose there is a way to increase the left and right margins is there?
You know I don't think I am explaining this correctly.

This is the lable

<---------- 55mm-------------> ^
|                                         | |
|                                         | |
|                                         | |
|                                         | | 70mm
|                                         | |
|                                         | |
|                                         | |
|                                         | |
|                                         | |
|                                         | |
|                                         | |
<------------------------------->  v

After it is printed I will be able to read it this way

<------------------70mm--------------------->
|   B  ar  c  o  d  e           Some data        | |
|     Job Number              More Datae       | |
|   Bla Bla                                               | |55mm
|   Data                          Data                 | |
|                                                           | |
|   Sentance                                           | |
|                                                           | |
<------------------70mm--------------------->

My Problem is that I only get 35 of the 55 mm in which I can print..  SO take 10mm of the top and bottom or when printing the left and right of the label..

I hope that helps to clarify a bit..If not I am sorry..

Thanks,
Charles
BTW..  bagnol

Your code does work with the above exception.  I am able to move the text around just not very far left or right.
Can I get this deleted so I might ask again in another way since it has fallen off the face of this web planet