Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Using DrawString with limit horizontal space (print)
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



Report this thread to moderator Post Follow-up to this message
Old Post
Gabriel van der Kruijk
08-05-04 02:06 PM


Re: Using DrawString with limit horizontal space (print)
you 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

Report this thread to moderator Post Follow-up to this message
Old Post
chris m
08-10-04 01:57 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

C# archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:35 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.