ScoobyNet.com - Subaru Enthusiast Forum

ScoobyNet.com - Subaru Enthusiast Forum (https://www.scoobynet.com/)
-   Computer & Technology Related (https://www.scoobynet.com/computer-and-technology-related-34/)
-   -   HKCU\Software\Microsoft\Office\8.0\Access\Settings \CommandBars (https://www.scoobynet.com/computer-and-technology-related-34/179003-hkcu-software-microsoft-office-8-0-access-settings-commandbars.html)

David_Wallis 18 February 2003 04:55 PM

anybody know what each of these values do.. say for example I want to enable the print options in access runtime..

David

David_Wallis 18 February 2003 05:41 PM

top

IWatkins 18 February 2003 10:18 PM

Have you searched MSDN David ?

David_Wallis 19 February 2003 10:10 AM

yes and technet and google :(

Fosters 19 February 2003 10:27 AM

would it be useful using DoCmd.RunCommand?

http://www.tkwickenden.clara.net/coding.htm

GaryK 19 February 2003 10:50 AM

David,

Are you using VB? Im not sure but I dont think you can import type libraries in VB can you? would make life alot easier if you could early bind the code completion would help you, anyway the commandbars and buttons are indexed lists which you can access by name or number. So in Delphi to acheive what you want with say Word using late binding I would just do:


var
bar, button, msw: olevariant;
begin

msw := CreateOleObject('Word.Application');
msw.Documents.Open(<<document name>>);
msw.Visible := True;

bar := msw.CommandBars['Standard'];
bar.visible := True;

button := bar.controls['Print'];
button.enabled := False;

end;

This should give you an idea.

Cheers

Gary

David_Wallis 19 February 2003 11:11 AM

what it is...

there are loads of databases about the business, licences for access are expensive, so we are using access runtime... however someone has added the registry key above.. and it removes the menus from all databases... including the print option which they want..

David


All times are GMT +1. The time now is 01:46 PM.


© 2024 MH Sub I, LLC dba Internet Brands