Results 1 to 5 of 5

Thread: how to create report without database

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2005
    Posts
    122

    how to create report without database

    hello,
    is there a way to create a report without a database?
    i want everything to show on the report in runtime.

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: how to create report without database

    What report? Crystal Reports, Access Report, etc. ?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jul 2005
    Posts
    122

    Re: how to create report without database

    the normal reports that comes with vb6

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: how to create report without database

    That is really outdated but its the VB 6 Data Report.
    I havent used it since 1998 just after VB 6 came out as its too limited and cumbersome.

    If you can write some kind of textfile or ini file you may be able to connect to it instead but Im unsure.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

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

    Re: how to create report without database

    you could use something like this,

    Code:
    Dim rsP As New ADODB.Recordset
    
        With rsP
            ' Create Recordset Fields (Columns) here
            .Fields.Append "tender", adVarChar, 10
            .Fields.Append "activity", adVarChar, 8
            .Fields.Append "reading", adVarChar, 10
            .Fields.Append "turn out", adVarChar, 12
            .Fields.Append "date", adVarChar, 10
            .Fields.Append "time", adVarChar, 10
            .Fields.Append "cfs", adVarChar, 6
            .CursorType = adOpenKeyset
            .LockType = adLockOptimistic
            .Open
        End With
    
        ' load the data into the recordset
    
                With report1
                    ' Bind the Recordset to the Report
                    Set .DataSource = rsP
                    .DataMember = rsP.DataMember
                    .Show
                End With
    Assign the text boxes on report1 to use the fields from the recordset.

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