Results 1 to 4 of 4

Thread: Visual Basic OLE Portability Issue

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2008
    Posts
    1

    Visual Basic OLE Portability Issue

    I am writing a GUI application that I want to display data in table format. The first thing I think of is to use Excel through OLE. But this is the first time I use OLE and I am particular concern about the portability of my program, as the program will be running on machines that could have different version of Excel than the one I use here, or even worse, they might not even have MS Office installed. With that uncertainty, can I still use OLE? If not, does anyone have solved similar problem with a different method? Thank you very much.

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

    Re: Visual Basic OLE Portability Issue

    If office is not installed (at least Excel) then the user can not call the program via OLE since it is not on the machine.
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

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

    Re: Visual Basic OLE Portability Issue

    Welcome to VBForums

    If all you want to do is display data in table format, there is no need to use Excel or the OLE object - you can use the controls provided with VB such as the FlexGrid or ListView.

    To add one of those to your toolbox, go to "Project" -> "Components", and in the list select the relevant item ("Microsoft FlexGrid Control 6.0 (SPx)" or "Microsoft Windows Common Controls 6.0 (SPx)").

  4. #4
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: Visual Basic OLE Portability Issue

    Depending on what you want the user to do with this information (besides read it) you might also consider the WebBrowser or DHTMLEdit controls.
    Attached Images Attached Images  

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