Results 1 to 6 of 6

Thread: vb 2005 reporting question...

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Location
    Neenah, WI USA
    Posts
    95

    vb 2005 reporting question...

    I'm sure this should be simple, but darned if I know how...
    I'm doing a report in VB2005. I have a table linked to 3 columns of a view. Here's a sample of the data:
    ColumnA ColumnB ColumnC
    001 Physician $100.00
    001 Nurse $ 50.00
    001 Aide $ 25.00
    002 Tractor $999.99
    002 Jeep $500.00
    002 Bicycle No Charge

    What I want is 3 columns on the report, suppressing the duplicates in ColumnA, with a box around each major grouping.
    So it would show: (excuse the half-a** boxes)
    ColumnA ColumnB ColumnC
    --------------------------------------|
    |001 Physician $100.00 |
    | Nurse $ 50.00 |
    | Aide $ 25.00 |
    --------------------------------------
    |002 Tractor $999.99 |
    | Jeep $500.00 |
    | Bicycle No Charge|
    ---------------------------------------

    I'm somewhat proficient using vb6, but am trying to move towards the .net version. Help!!!

    Thanks
    Steve

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Location
    Neenah, WI USA
    Posts
    95

    Re: vb 2005 reporting question...

    Nobody has any thoughts on this?
    Steve

  3. #3
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: vb 2005 reporting question...

    Place column A as a group place Columns 2 and 3 as the detail for the group
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

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

    Re: vb 2005 reporting question...

    Moved To Reporting

    Are you using Crystal Reports for this?

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Location
    Neenah, WI USA
    Posts
    95

    Re: vb 2005 reporting question...

    No, I am using vs 2005 and the SQL Server Reporting Services features...

    Here's an extra credit question:
    How can I call a stored procedure once the report has printed to create an audit record of the data printed?

    The user will select several parameters, then the report will print.
    The report will consist of two pages: a header page with between 2 and 10 data fields mixed in with text pulled from a template, and a second page that has a table of data (between 10 and 20 data elements).
    Once the report has pulled the data to print, and the report is actually printed (to a pdf file), I want to write out the actual information used in the report to an audit record, showing who created it, when, the data used, and the name of the pdf file it created. So that 3 months down the road, when there is a question about the report, there is a concrete audit trail of when it was created...
    Any clues - I'm just getting my feet wet (and I'm standing on my head...)???
    Thanks
    Steve

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Location
    Neenah, WI USA
    Posts
    95

    Re: vb 2005 reporting question...

    If I create a stored procedure to select the data to print, I can then use the same stored procedure to select the data to save, as part of a second stored procedure?

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