Results 1 to 21 of 21

Thread: data report!

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Posts
    398

    data report!

    is this possible in data report...

    -----layout 1

    Female student...
    [display list of all females]

    Male Student
    [display list of all males]

    ----layout 2

    Female Students: Male Students:
    [list of females] [list of males]
    ________
    Star Craft Replays
    Last edited by rothj0hn; Feb 15th, 2011 at 01:20 PM.

  2. #2

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

    Re: data report!

    I believe that is possible, the DataReport has groupings that you could try using.
    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

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Posts
    398

    Re: data report!

    is there any toturial on how to use this?
    ________
    Roasting Food
    Last edited by rothj0hn; Feb 15th, 2011 at 01:20 PM.

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

    Re: data report!

    None that I am aware of. You could try searching here, perhaps there has been discussions on it.
    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

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Posts
    398

    Re: data report!

    hmm... how does this grouping works? will it handle to different queries?
    such as select studentname from student where gender = 'Female' for one group then select studentname from student where gender = 'Male' for the other one? this is my idea on how to generate that report. please corrent me if im wrong.. @dee-u are u a filipino?

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

    Re: data report!

    I believe you have to use the GROUP BY clause. Yes, I am a countrymate of Pacquiao. =)
    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

  8. #8

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Posts
    398

    Re: data report!

    just using the group by clause? ok ill try it and post the result.. thanks for the help.. kababayan! ^^
    ________
    Second-Generation Camaro
    Last edited by rothj0hn; Feb 15th, 2011 at 01:22 PM.

  9. #9
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,512

    Re: data report!

    How are you setting the report datasource? If your using a DataEnvironment then there is a grouping tab in the command properties window. If your creating an ADO recordset then you have to use a DataShape.

  10. #10

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Posts
    398

    Re: data report!

    whew! its quite complicated than i thought.. do u have some examples? using dataenvironment and ado.. ive used this two but in simple reporting and querying only..
    ________
    Bmw V
    Last edited by rothj0hn; Feb 15th, 2011 at 01:23 PM.

  11. #11
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,512

    Re: data report!

    If your using a Dataenvironment then use the properties to set your grouping.

    This is a DataShape example
    Code:
    Dim rsData As New ADODB.Recordset, cFinalCond$
    Dim conReport As New ADODB.Connection
    
    cFinalCond = "SHAPE {SELECT tags.*,us.*,iif(trim(tags.status)='I','Invoiced','Not Invoiced') as invstatus from tags inner join users us on us.userid=tags.userid" } AS Tag " & _
                        "APPEND ((SHAPE {SELECT * From tagsdetail order by line} As Command1) " & _
                        "RELATE tagnumber To tagnumber)"
                         
            'Open a DATA Shape Connection For Reports
            With conReport
                .Mode = adModeShareDenyNone
                .Provider = "MSDataShape" 'Microsoft Provider for Data Shaping
                .ConnectionString = "Data Provider = Microsoft.Jet.OLEDB.4.0;" & _
                                    "Data Source = c:\somefolder\yourdatabase"
                .Open
            End With
            
            If (conReport.State And adStateOpen) > 0 Then
                With rsData
                    .ActiveConnection = conReport
                    .LockType = adLockReadOnly
                    .CursorType = adOpenStatic
                    .Open cFinalCond
                End With
            End If
            'Set the new Data source of Report
            Set rptDataReport.DataSource = rsData

  12. #12

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Posts
    398

    Re: data report!

    im not familliar with the shape in sql.. how to create a query using shape that will group female and male?

    Report Sample
    Female: Male:
    Female1 Male1
    Female2 Male2
    Female3 Male3
    Femalen Malen
    ________
    Alaska Medical Marijuana Dispensary
    Last edited by rothj0hn; Feb 15th, 2011 at 01:26 PM.

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

    Re: data report!

    Here's a quick and (very) dirty sample. Hope this could serve as a guide. Just put the database in your c:\ drive.
    Attached Files Attached Files
    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

  14. #14

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Posts
    398

    Re: data report!

    thanks
    ________
    Pc800
    Last edited by rothj0hn; Feb 15th, 2011 at 01:26 PM.

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

    Re: data report!

    Have you got it?
    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

  16. #16

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Posts
    398

    Re: data report!

    yup... i have another question bout it.. how i can put label.. such as list of female student..
    ________
    Buy Vapor Genie
    Last edited by rothj0hn; Feb 15th, 2011 at 01:27 PM.

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

    Re: data report!

    You could just try experimenting with it.
    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

  18. #18

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Posts
    398

    Re: data report!

    ok thanks
    ________
    MFLB
    Last edited by rothj0hn; Feb 15th, 2011 at 01:28 PM.

  19. #19
    Lively Member
    Join Date
    Dec 2008
    Posts
    108

    Re: data report!

    Yun...it's good to know that I'll be asking this to a kababayan. Is it possible that I can create a transaction receipt just by using data report? From the example that I've seen it seems that the report displays a list. I just need one row from the database (I'm using MS Access and SQL) containing the Payment No, Payment and payment type to create the receipt. Is it also possible that one report can use two different sets of table.

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

    Re: data report!

    Hey Encoder, it would be better if you start another thread for your concern so they are not mixed in this thread. Maligayang pasko!
    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

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

    Re: data report!

    Just want to share this MSDN Article on DataReport.
    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

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