Results 1 to 5 of 5

Thread: VB application not working on machines not having MS-Office

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2005
    Posts
    16

    VB application not working on machines not having MS-Office

    Hi
    I could use a little help from you guys on a problem I am having.
    My problem is that I have created a VB6 Application that generates /
    formats excels. However I am not able to use the application on machines
    that dont have MS-Office or even MS-Excel installed on them.
    Could creating packages work?
    Thanks
    Kalyan

  2. #2
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950

    Re: VB application not working on machines not having MS-Office

    I think you can use the database capabilities of Access w/o Access being installed if the user has the Jet engine installed (not positive), although of course you couldn't use Access forms, macros, etc. I don't know how you'd do that with Excel, though. Do the users have a different spreadsheet program (Lotus, Quattro, etc)? If so, there may be some conversion routine. I don't know how you'd generate/format an Excel sheet if you don't have Excel.
    Tengo mas preguntas que contestas

  3. #3
    Addicted Member
    Join Date
    Jan 2006
    Location
    Montreal, Canada
    Posts
    152

    Re: VB application not working on machines not having MS-Office

    I had the same problem a little while ago.
    I've found this to resolve the problem where Excel isn't on the machine and create an Excel file from scrapt.
    http://www.vbforums.com/showthread.p...ighlight=Excel

    But if you need all Excel fonctionnalties, you're defenitively need to install Excel on that machine.

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: VB application not working on machines not having MS-Office

    You are correct about Access salvelinus.

    For Excel, there are two options:

    1) If you are using automation (Excel.Application etc), then Excel must be installed.

    2) If you are using it as a database (via ADO etc) then Excel is not needed, however you can only work with data, not formatting. The data must also be in a table format.

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

    Re: VB application not working on machines not having MS-Office

    To add to Sis post, #2 note that you will not be able to view the Excel data in Excel since its not installed. No print previews, 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

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