none
TextBox Line Count RRS feed

  • Question

  •  

    I have a textbox in my report with its can shrink, can grow property set to true and can grow across pages.

    The data is of type text from my sqlserver 2000. Problem arises when my text length is between 42 and 56, the data is pushed to the next page (keep together ?) How do I overcome this ?

     

    I also want to know the no. of lines in my text.

    Both len(ctrl_name) in rdlc and datalength(field_name)  in sql server do not take line breaks in count.

    Note I'm directly rendering the rdlc as pdf. (avoiding the reportviewer)

    Friday, September 21, 2007 12:51 PM

All replies

  • You might want to read this thread http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2143572&SiteID=1

     

    ...  the code I wrote there probably will answer both your questions (how to get a line count and how to avoid the "push")...

     

    >>

    Note I'm directly rendering the rdlc as pdf. (avoiding the reportviewer)

    <<

     

    This has nothing to do with it; if you're using the localreport stuff you're using the rendering engine that would have been used by the reportviewer anyway.

     

    >L<

    Tuesday, September 25, 2007 4:31 PM