Question change origin on labels

ideprize

Well-known member
Joined
Oct 19, 2011
Messages
97
Programming Experience
10+
Trying to print to Dymo labels using drawstring. Text will not print on top half of labels (landscape mode) with x = 0, y = 0. How can I change the x,y origin to move to the physical o,o margin of the label? I must assume that drawstring is receiving origin/dimension data from the Dymo printer? I have specified the "layout- 30573" (2 1/8 X 4) to the Dymo printer but drawstring thinks it is still a 30252 layout (1 1/8 X 3 1/2) - I think. Thanks in advance.
 
Point(0,0) is topleft corner of printable page, which is at documents DefaultPageSettings.PrintableArea.Location, since OriginAtMargins defaults to False. So that either means you have wrong PaperSize or the printer will physically not print closer to the paper border.
 
Thanks JohnH. As it turned out I went back and scrutinized the Dymo setup and discovered I did not set the "default" page settings - the one I did set was a "temporary" setting. Once I did that the 0,0 specification to drawstring placed the data at the physical 0,0 origin of the label - top left. This is the first time I used this forum. I really do appreciate the quick response. I am a seasoned programmer from real time operating systems using assembly to large scale vertical applications using Foxpro but the OOPs world is still rather new to me - its another way of thinking but it is coming - so it is nice to have resources like this - again thanks.

Gordon Haas
 
Back
Top