Re: Word Wrap while Printing

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Jeff B. (jsb_at_community.nospam)
Date: 02/17/05


Date: Wed, 16 Feb 2005 20:22:47 -0600

Thanks Kevin and Picho for the info. You both understood exactly what I was
after and the "rectangle" method you mention almost does exactly what I
need. The only part I'm missing is being able to increment the line count
by how many lines the text was wrapped so the subsequent lines display
correctly and the pages break correctly.

I think I'm going to take a slightly different approach and break the lines
out programmatically as I print them. I'll post back any successes - or
failures :-)

  --- Jeff

-- 
  Jeff Bramwell
  Digerati Technologies, LLC
  www.digeratitech.com
  Manage Multiple Network Configurations with Select-a-Net
  www.select-a-net.com
"Jeff B." <jsb@community.nospam> wrote in message 
news:OWA0Te9EFHA.560@TK2MSFTNGP15.phx.gbl...
> Has anyone come across a decent algorithm for implementing word wrap 
> features in .net printing?  I have a small component that uses basic 
> printing techniques (i.e. e.Graphics.DrawString in a PrintPage event of a 
> PrintDocument object) to send some formatted text to the printer. 
> However, if the lines are too long they run off the page rather than 
> wrapping around. I'm sure I can spend the time and come up with a word 
> wrapping algorithm but figured why go through the trouble if someone 
> already knows of one :-)
>
>  --- Thanks, Jeff
>
> -- 
>
>  Jeff Bramwell
>  Digerati Technologies, LLC
>  www.digeratitech.com
>
>  Manage Multiple Network Configurations with Select-a-Net
>  www.select-a-net.com
>
>