HKCU\Software\Microsoft\Office\8.0\Access\Settings \CommandBars
#1
Scooby Regular
Thread Starter
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like
on
1 Post
anybody know what each of these values do.. say for example I want to enable the print options in access runtime..
David
David
#5
Scooby Regular
Join Date: Jul 2000
Location: Islington
Posts: 2,145
Likes: 0
Received 0 Likes
on
0 Posts
#6
Scooby Regular
Join Date: Sep 1999
Location: Bedfordshire
Posts: 4,037
Likes: 0
Received 0 Likes
on
0 Posts
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
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
#7
Scooby Regular
Thread Starter
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like
on
1 Post
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
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
Thread
Thread Starter
Forum
Replies
Last Post
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
28 December 2015 11:07 PM
hardcoreimpreza
Computer & Technology Related
21
11 October 2015 03:40 PM