Code Comments
Programming Forum and web based access to our favorite programming groups.Hi All, I'm trying to create some document for a POS printer (cash receipt), but some of the names of the products are to long, I would like them to be wrapped over multiple lines. But, I want it to happen dynamicly, so I should fit in a horizontal space and should grow as big as needed in vertical size to fit the string I'm drawing. Is there anyone with some suggestion, pointers, sample to do this? Thanks, Gab
Post Follow-up to this messageyou can do this by specifying a stringformat object and rectangle structure for each call to drawstring. stringformat will allow you to choose wordwrapping, clipping, etc. and the rectangle will define how big of an area you want to constraint the output. "Gabriel van der Kruijk" <gabrielnospamforme@alsonotfor_marti.nl> wrote in message news:<41 1227b2$0$728$58c7af7e@news.kabelfoon.nl>... > Hi All, > > I'm trying to create some document for a POS printer (cash receipt), but > some of the names of the products are to long, I would like them to be > wrapped over multiple lines. But, I want it to happen dynamicly, so I shou ld > fit in a horizontal space and should grow as big as needed in vertical siz e > to fit the string I'm drawing. > > Is there anyone with some suggestion, pointers, sample to do this? > > Thanks, > Gab
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.