Method Community

 

Report Data Line Break

Last post 12-14-2012 12:52 PM by Method_Adam. 7 replies.
Page 1 of 1 (8 items)
Sort Posts: Previous Next
  • 12-11-2012 7:25 PM

    Report Data Line Break

    I'm generating customized data for a report and am wondering how I can incorporate line breaks in my data that will work on a report. I did a quick search on DevExpress forums but just found posts on script handlers. I would hope I don't have to do that but will if I have to.

    Any suggestions?

    Thx

    Blake C
  • 12-12-2012 3:35 PM In reply to

    Re: Report Data Line Break

    Hi Blake,

    Can you give us an example or sample of the data in the report and how you want the line break to work?  

    - Adam

    Adam Lyons
    Manager of Support
    Method Integration
    a.lyons@method.me
  • 12-12-2012 3:46 PM In reply to

    Re: Report Data Line Break

    I'm trying to databind a label to a field in my reporting table. I'd like the label on the report to look like below. Right now rather than line breaking, I'm comma separating them which is fine for now, but would like to know how I can incorporate line breaks if possible.

    32 - Product One
    44 - Product Two
    13 - Product Three

    Blake C
  • 12-12-2012 4:53 PM In reply to

    Re: Report Data Line Break

    Have you checked the multiline box on the label?

    - Adam

    Adam Lyons
    Manager of Support
    Method Integration
    a.lyons@method.me
  • 12-12-2012 5:11 PM In reply to

    Re: Report Data Line Break

    Yes. I'm able to position labels on all of my reports to this point the way I need them, allowing the data inside them to flow as per my configuration choices on the labels themselves (e.g. multiline, can grow/shrink, wrap, etc).

    In this particular situation, I'm generating custom data for a label (perhaps a label isn't what I need to use here) but would like to line break the information in lieu of comma separating the information.

    Rather than generating comma separated info like this -  (22) Product One, (27) Product Two. I'd like to generated info that breaks on a line like so:

    (22) Product One

    (27) Product Two

    Sorry. It's probably a really stupid question with an obvious answer but for some reason I'm unable to realize a solution.

    Blake C
  • 12-14-2012 10:03 AM In reply to

    Re: Report Data Line Break

    Blake,

    When using the character function in Method, there's an option to "Join with line break".  Might this be the option you need?

    - Adam

    Adam Lyons
    Manager of Support
    Method Integration
    a.lyons@method.me
  • 12-14-2012 10:18 AM In reply to

    Re: Report Data Line Break

    Answer

    Tried that...doesn't result in line breaks, anywhere.

    I've punted on the issue and having thought better of it, my situation actually works better comma separating the data b/c vertical space on a report is more valuable than horizontal. So letting the data flow horizontally actually works better than my original intention of vertically breaking the info.

    Would be interesting to know how to achieve this seemingly simple feature, though.

    Thx

    Blake C
  • 12-14-2012 12:52 PM In reply to

    Re: Report Data Line Break

    Blake,

    I know you wanted to avoid scripting and have punted this, but you might be able to achieve this with a VB scripting function replacing commas with line breaks.

    - Adam

    Adam Lyons
    Manager of Support
    Method Integration
    a.lyons@method.me
Page 1 of 1 (8 items)