Display Excel Object on GUI Form

Posted on 2006-05-31
Last Modified: 2010-04-07
I have an Excel object (Excel.Application, Workbook) that I have filled and print and saved programmatically. Is there an easy way to also plop that on a form?
Question by:GivenRandy
    LVL 76

    Accepted Solution

    You can always put it in an OLE Container control. Also, I have noticed others recommend using a WebBrowser control and putting it in that
    LVL 9

    Author Comment

    But, how would I "copy" or attach the dynamic object to that control? I can put the OLE Container on my form with Excel selected and I can even make it visible (using .Visible = True), but I don't want to show the Excel object itself that way (I want it to be on the form).
    LVL 76

    Expert Comment

    I'm not sure that  understand what you mean by not wanting to see the Excel object. You see (part of) the spreadsheet unless you Edit or Open the Excel application. If you set the Enabled property top false, you can prevent the user from doing that.
    LVL 9

    Author Comment

    When using a dynamically created object, I don't see it unless I set .Visible = True. I don't want to do that. Also cannot use files (i.e., everything has to be in memory).

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
    You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now