Results 1 to 8 of 8

Thread: Create a Report in VB6?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2005
    Location
    Bulawayo, Zimbabwe
    Posts
    576

    Question Create a Report in VB6?

    I write all my applications in VB6 and Use an access database all of the time.
    My question is : what is the best method of creating reports where data may be extracted from the access database possibly tabulated and presented to the user in VB6 ?
    The report should be available on screen, or may be printed (possibly even exported ???)

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

    Re: Create a Report in VB6?

    You could use either Data Reports or Access Reports depending on which you are more familiar with.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2005
    Location
    Bulawayo, Zimbabwe
    Posts
    576

    Re: Create a Report in VB6?

    Thanks Hack
    Excuse my ignorance but I once created a report in VB specifying a data environment etc. etc. but I couldnt figure out how to get this to work if the database was on a server with multi users, it was also a while ago and I can't remember how I did it.
    I was hoping for a method that could be used to create reports even after the app has been distributed to the user, or reports that may even be created by the user himself.
    Is this possible ?

  4. #4
    Hyperactive Member
    Join Date
    Mar 2005
    Location
    Manila, Philippines
    Posts
    486

    Re: Create a Report in VB6?

    you can use system dsn to connect to your system.

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

    Re: Create a Report in VB6?

    If you have Crystal Reports available to you it would be the best chioce in my opinion. You can use the CR Viewer control to open and view a report. also, it has an Export button that practically automatically exports the report in many formats like Excel, PDF, 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

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

    Re: Create a Report in VB6?

    Quote Originally Posted by KenBZim
    I was hoping for a method that could be used to create reports even after the app has been distributed to the user, or reports that may even be created by the user himself.
    Is this possible ?
    Creating a report usually involves some form of database query to return a result set, that, in turn, gets nicely formatted for printing.

    If your users have access and rights to your database, then they could do this themselves, but it would be completely external to the application you have written.
    Last edited by Hack; Aug 17th, 2005 at 12:58 PM.

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2005
    Location
    Bulawayo, Zimbabwe
    Posts
    576

    Re: Create a Report in VB6?

    Thanks Guys

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

    Re: Create a Report in VB6?

    So, what is the final verdict? What did you decide to go with?

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