Office - Handling Access events in .net
Asked By Jak
10-Jun-08 04:34 PM
I asked this in the Access forum and got no responce so I decided to ask here:
I am running an access application inside of a .Net wrapper program using an
Access.Application object.
In this context is it posible to handle Access events (such as the "Click"
event of a command button) with code in the host application?
Office
(1)
Excel
(1)
Word
(1)
VB.NET
(1)
VBA
(1)
VB
(1)
SmFrZQ
(1)
Database
(1)
Cindy M. replied...
Hi Jake,
Where would this "command button" be located?
If we're talking about toolbars, then yes; buttons on forms, probably not.
Controls on Forms in Office are strongly linked to VBA modules.
I admit to being somewhat puzzled as to why you'd embed Access when you could
create the interfaces "simply enough" in your .NET form. Excel, Word... Yes. But
a database?
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)
Jak replied...
Cindy,
I could do most of what I am after using toolbars. How would I go about that?
Jacob
Cindy M. replied...
Hi =?Utf-8?B?SmFrZQ==?=,
This KB article describes how to create CommandBars in an Office application
and link them to an event handler using VB.NET:
http://support.microsoft.com/kb/303017/en-us
using C#
http://support.microsoft.com/kb/303018/en-us
I have no idea what the differences would be doing this for an embedded
application object, but as long as you've got the application object and the
correct references I'm guessing it shouldn't be a problem.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)
Jak replied...
THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU!
Cindy,
This is wonderfull. You've no idea how much you have made my life easyer
over the next year or two.
puzzled as to why you'd embed Access when you could create the interfaces
'simply enough' in your .NET form. Excel, Word... Yes. But a database?"
I am working with a large and complex application that was writen before
my arival on the scene. It is currently writen in Access but I want to
transition to using VB without spending 6 months writing the client from
scratch (which my boss would never let me take the time to do anyway). Being
able to trigger VB code from within Access means that I can transition the
application slowly from Access to VB until everything is in VB and I can
eliminate the Access file entierly.
Thank you again.
Jacob

WLM Spellchecker, MS Office Packages, Office Updates. Office System: WinXP Version 2002 Pro SP3. Computer: Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz - 1.87GHz. 0.99GB of RAM. Re: Microsoft Office Professional Edition 2003. Currently installed: 1.Microsoft Tools 2.Microsoft Office Word 2003 and 3.Microsoft Office Excel 2003. I've got a Microsoft Office Suite 2007 CD but never installed it because
VSTA, VSTO. . .what is going on? Confused Excel 2003 programmer Office So. . .can anyone give me some straight answers here? My head is spinning from all the changes I'm reading about. And keep this in mind: I'm an Excel 2003 programmer. I do not yet own Office 2007. What is the difference betweem VSTA and VSTO? Can I still write Excel macros in VBA? Do I have to use VSTA or VSTO? Do I have to buy Visual Studio to program Excel 2007? Can I program Excel with C#? Do I have to buy Visual Studio? Is there a Macro Editor in
PPT 2007 Need to Programmatically Edit Data in Charts Office Up until now I have been generating PPT files by opening a PPT template, pulling records from Access, and using VBA code to populate the tables and graphs on the slides with data from the Access cells. Now with PPT 2007 the graphs are different. The datasheet is more like an Excel worksheet, with a "Chart" tab and a "Sheet1" tab at the bottom. I have tried every syntax I can think of to talk to this new type of datasheet using VBA, but nothing works. Now I read on various forums that the new PPT 2007 Chart object does not expose any methods that can be addressed using VBA. So I started writing an application to manipulate PPT slides using VB.Net. But I cannot find any examples that show how to use VB.Net code to programmatically update the data in the sheet behind the chart. What is
Automate Excel UserForm through VBE from c# Office I am trying to gain information about an excel userform using VBA extensibility from c#. When I cast the designer object as a userform, then try to an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))"} Any idea how I can get around this? Office Developer Automation Discussions Microsoft.VisualBasic.Information.TypeName (1) Excel (1) Form.UserForm (1) VB.NET (1) VBA (1) Form.Controls (1) MyForm.Controls.Count (1) MyForm.Controls (1) Hi Vidster
which One is Better Office Hi, We are creating outlook Add-in using VSTO using Visual Studio 2008. we are code of language. We have got some feedback that it would be better to use Vb.net over c# . Kindly suggest which language is best suited for add-in ( outlook and word)? any Big Advantage of using vb.net over c#? Office COM Add-Ins Discussions Visual Studio 2008 (1) Microsoft Word (1) Outlook 2007 (1) Outlook 2003 (1) Outlook (1) Office (1) Excel (1) VSTO (1