![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
The specified controltype 'group' is incompatible with the ctual control type 'button' for ViewsADPDiagramPrintPreview and 'toggle button' for FilePrintPreview. I want to add the 2010 print preview group to my ribbon. |
#3
| |||
| |||
|
|
"PW" wrote in message news:j5d9g7lm5vu1q7a51k1b2ctgnji24ctnsb (AT) 4ax (DOT) com... The specified controltype 'group' is incompatible with the ctual control type 'button' for ViewsADPDiagramPrintPreview and 'toggle button' for FilePrintPreview. I want to add the 2010 print preview group to my ribbon. Are you talking about a ADP project, or a standard accDB? |
|
The above ribbon idMso looks like it is for an ADP project. I can lookup the required ones for non local if you want. In fact a custom ribbon I used for runtime ribbon looks like this: customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" ribbon startFromScratch="true" tabs tab id="MyReport" label="Report Print and View Options" group idMso="GroupPrintPreviewPrintAccess" / group idMso="GroupPageLayoutAccess" / group idMso="GroupZoom" / group idMso="GroupPrintPreviewData"/ group idMso="GroupPrintPreviewClosePreview" / /tab /tabs /ribbon /customUI |
|
However, if you using ADP, then of course I don't think above will be of use... |
#4
| |||
| |||
|
|
In fact a custom ribbon I used for runtime ribbon looks like this: customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" ribbon startFromScratch="true" tabs tab id="MyReport" label="Report Print and View Options" group idMso="GroupPrintPreviewPrintAccess" / group idMso="GroupPageLayoutAccess" / group idMso="GroupZoom" / group idMso="GroupPrintPreviewData"/ group idMso="GroupPrintPreviewClosePreview" / /tab /tabs /ribbon /customUI |
#5
| |||
| |||
|
|
However, if you using ADP, then of course I don't think above will be of use... |
#6
| |||
| |||
|
|
Thanks, I will give it a try. Where did you get the "Group...." IDs from? |
#7
| |||
| |||
|
|
It's got to be my newbie code. I am also getting the error "The secified control type 'group' is incompatible with the actual control type 'togglebutton' ID: SortUp" with the following: |
#8
| |||
| |||
|
|
On Thu, 05 Jan 2012 11:46:57 -0700, PW emailaddyinsig (AT) ifIremember (DOT) com> wrote: It's got to be my newbie code. I am also getting the error "The secified control type 'group' is incompatible with the actual control type 'togglebutton' ID: SortUp" with the following: I'm learning. The error says exactly what the error is. How about that? ;-) The control id SortUp is a togglebutton not a group. I think that what it means. But why I am getting an error with: tab id="tabSort" label="Sort Order" group id="grpSort" label="Sort Order" togglebutton idMso="SortUp"/ togglebutton idMso="SortDown"/ togglebutton idMso="SortRemoveAllSorts"/ /group /tab is beyond me! The error is 'The element 'group' in namespace..... has invalid child element 'togglebutton' namespace .....List of possible elements expected: 'control, labelControl, button, toggleButton, checkBox, ...." when I hover the mouse over the first togglebutton (which is underlined as an error). togglebutton is one of the expected elements listed in the error message. Is it not in http://schemas.microsoft.com/office/2009/07/customui ?? That is what the book I mentioned is using. How is my code different than: tab id="rxtabcustom" label="my tools" insertbeforemso="tabhome" groupid="rxgrpformats" label="formatting" togglebutton idmso="bold"/ togglebutton idmso="italic"/ /group tab ?? I took that from a book ("Ribbon X: Customizing the Office 2007 Ribbon"). Any ideas? -paulw |
#9
| |||
| |||
|
|
Are you talking about a ADP project, or a standard accDB? I don't think I know what an ADP project is Albert! |
|
Where did you get the "Group...." IDs from? I found them: http://www.microsoft.com/download/en...ang=en&id=6627 |
|
And how to disable the buttons on the ribbon that are open once the print preview window is closed. |
#10
| |||
| |||
|
|
And how to disable the buttons on the ribbon that are open once the print preview window is closed. I suggest that you build a ribbon ONLY for reports. Then specify the ribbon in the "other" tab of the reports property sheet. That way when report launches, report ribbon will automatic show. When you close it, the ribbon is also closed and you back to the previous ribbon. This approach is ALSO recommended for forms. Specify the ribbon you need/want. Then Access will take care when you switch between forms or reports (the ribbon will switch for you without code). |
|
So don't create one big ribbon with a bunch of tabs, but create a given ribbon for the given task or form or in this case report. |
|
I take a look at you toggle button later, but I have to run.... As to how to enable, or disable individual controls from code? I have a example here that may be of help: http://www.kallal.ca/Ribbon/ribbon.htm |
![]() |
| Thread Tools | |
| Display Modes | |
| |