Drawstring word-wrap - DOTNET

This is a discussion on Drawstring word-wrap - DOTNET ; I am creating a program to print report where I have to draw grid. (I am not using Crystal Report as it's not free of cost). I am new to system.drawing class. I want to draw a text string in ...

+ Reply to Thread
Results 1 to 6 of 6

Drawstring word-wrap

  1. Default Drawstring word-wrap

    I am creating a program to print report where I have to draw grid. (I am not
    using
    Crystal Report as it's not free of cost). I am new to system.drawing class.
    I want to draw a text string in a definite width but variable height
    ractangle. I mean full text should come in ractangle with specified width. I
    have seen this
    http://msdn.microsoft.com/library/de...ntwinforms.asp
    article but it's not giving solution for that. Please somebody help.
    Please ask me for clarification or details if you want.
    Thank you,
    -yogee

  2. Default Re: Drawstring word-wrap

    i'm not sure what exacly do you need, but probably you may want to look
    at Graphics.MeasureString(...) method.

    yogee wrote:
    > I am creating a program to print report where I have to draw grid. (I am not
    > using
    > Crystal Report as it's not free of cost). I am new to system.drawing class.
    > I want to draw a text string in a definite width but variable height
    > ractangle. I mean full text should come in ractangle with specified width. I
    > have seen this
    > http://msdn.microsoft.com/library/de...ntwinforms.asp
    > article but it's not giving solution for that. Please somebody help.
    > Please ask me for clarification or details if you want.
    > Thank you,
    > -yogee


  3. Default Re: Drawstring word-wrap

    I would look at the various Graphics.DrawString()
    You could set a bounding rect and it will wrap if it don't have enough
    space.


    However forget about doing RichText drawing in GDI+

    --
    There are 10 kinds of people in this world. Those who understand binary and
    those who don't.
    "yogee" <yogee@discussions.microsoft.com> wrote in message
    news:37FF5BF8-1C9D-4AEB-985D-1ADCBF5894E1@microsoft.com...
    >I am creating a program to print report where I have to draw grid. (I am
    >not
    > using
    > Crystal Report as it's not free of cost). I am new to system.drawing
    > class.
    > I want to draw a text string in a definite width but variable height
    > ractangle. I mean full text should come in ractangle with specified width.
    > I
    > have seen this
    > http://msdn.microsoft.com/library/de...ntwinforms.asp
    > article but it's not giving solution for that. Please somebody help.
    > Please ask me for clarification or details if you want.
    > Thank you,
    > -yogee




  4. Default Re: Drawstring word-wrap


    It's best if we have anything like that...

    "Lloyd Dupont" wrote:

    > I would look at the various Graphics.DrawString()
    > You could set a bounding rect and it will wrap if it don't have enough
    > space.



  5. Default Re: Drawstring word-wrap

    > It's best if we have anything like that...
    >

    uh?
    what I mean is the method already exist in
    System.Drawing.Graphics.DrawString()
    what were you trying to say?

    >
    > "Lloyd Dupont" wrote:
    >
    >> I would look at the various Graphics.DrawString()
    >> You could set a bounding rect and it will wrap if it don't have enough
    >> space.

    >




  6. Default Re: Drawstring word-wrap

    Oops !! Sorry Lloyd, I was referring "However forget about doing RichText
    drawing in GDI+ "...
    But no prob. this time. As I don't need it this time. But it's good if we
    have something like that.
    Thanks for your help
    -yogee

    "Lloyd Dupont" wrote:

    > > It's best if we have anything like that...
    > >

    > uh?
    > what I mean is the method already exist in
    > System.Drawing.Graphics.DrawString()
    > what were you trying to say?
    >
    > >
    > > "Lloyd Dupont" wrote:
    > >
    > >> I would look at the various Graphics.DrawString()
    > >> You could set a bounding rect and it will wrap if it don't have enough
    > >> space.

    > >

    >
    >
    >


+ Reply to Thread

Similar Threads

  1. VBA Word Wrap?
    By Application Development in forum ADO DAO RDO RDS
    Replies: 2
    Last Post: 11-13-2007, 11:47 AM
  2. Word wrap
    By Application Development in forum C
    Replies: 4
    Last Post: 07-09-2006, 02:23 PM
  3. word wrap
    By Application Development in forum Inetserver
    Replies: 7
    Last Post: 05-17-2004, 02:29 PM
  4. word wrap
    By Application Development in forum Pegasus
    Replies: 14
    Last Post: 11-16-2003, 03:44 PM
  5. word wrap
    By Application Development in forum Pegasus
    Replies: 4
    Last Post: 11-11-2003, 04:10 AM