Is it possible to text wrap in a rectangle with the SDK?

// Expert user has replied.
A Adam Majothi 3 years ago
3 2 0

Hi All,
 
I was wondering if there were any methods in the SDK that could text wrap a string in a boundary/rectangle? I am developing in c# and in the past I've used the Graphics object to measure the width of the string but this is has not always give accurate results and thought if anyone had come across a better solution?
 
I've tried the DrawTextRect method but this seems to only display text inside the specified rectangle and any text outside does not wrap and gets cut off.
 
 
Thanks in advanced

Please register or login to post a reply

2 Replies

A Alfred Teixeira

Hello Stephen,

Which SDK(s) are you working with? What versions of the SDKs? What printer model and what version of firmware is installed in the printer? What version of the printer driver is installed if you are using the printer driver? What Operating System are you using?

Would it be possible for you to share your code that is causing the problem?

Best regards,

Al Teixeira
Zebra Global Services and Support

S Stephen Troup

The solution I had was to completely ignore the graphics part of the sdk and use the vanilla .net routines.

A bit of digging with a .net decompiler and I found a way to hook into the sdk's internal graphics object after it's initialisation and bypass all the sdk's graphics routines in favour of my own I can then use the word wrap and formatting built into .net

CONTACT
Can’t find what you’re looking for?