Results 1 to 8 of 8

Thread: [RESOLVED] Data Report formatting

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2008
    Posts
    4

    Resolved [RESOLVED] Data Report formatting

    Hello,

    Is there any way to make a report to display blanks when number fields are having ZERO value ?

    thanks

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Data Report formatting

    One option that I could fine is to actually format your table fields before setting them to the report...
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Data Report formatting

    Moved To Reporting

  4. #4
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: Data Report formatting

    Use the DataFormat property of the rptTextBox control.
    Select Custom from the list.
    Set the FormatString to #;; ; or #;;"";

    The FormatString is basically the same thing as the Format$ function, so use the different "formatting sections" to format accordingly. Section 3 is the formatting section for 0 values.

  5. #5
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: Data Report formatting

    Moderator :
    Please delete this !
    Last edited by jggtz; Nov 9th, 2008 at 01:01 AM.

  6. #6

    Thread Starter
    New Member
    Join Date
    Nov 2008
    Posts
    4

    Re: Data Report formatting

    That's great, thank you all, I'm starting to have hopes, because VB6 DataReport seemed very limited to me.

    Another question: I have a group, and I want to print a group field only once, but on the same row with the first detail row. Is that possible ?

    thanks again
    Carmen

  7. #7
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: Data Report formatting

    because VB6 DataReport seemed very limited to me.
    Compared to other report writers, DataReport is very limited. It has almost no "page" formatting functions.

    It is not possible to suppress printing of a field based on a criteria. Other report writers have a "suppress if duplicated" function or suppress based on a formula.

    The only work around I know is to add another column in your recordset. For every record this field is blank except for the first record of each Group.

  8. #8

    Thread Starter
    New Member
    Join Date
    Nov 2008
    Posts
    4

    Re: Data Report formatting

    I understand....
    That trick with the column should be fine.
    I'm using a stored procedure to get the records, do you think it's possible to get that column in stored procedure ?
    No need for details, I can do it if it's possible, I only need to know if it worth trying, or if I'd better use VB for it.
    The report is very simple, a list o invoices values, grouped by customer, who's details I want to show only once

    thank you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width