dbTalk Databases Forums  

grpIdMSO error message in 2010 ribbon with the print preview commands in custom ribbon

comp.databases.ms-access comp.databases.ms-access


Discuss grpIdMSO error message in 2010 ribbon with the print preview commands in custom ribbon in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
PW
 
Posts: n/a

Default grpIdMSO error message in 2010 ribbon with the print preview commands in custom ribbon - 01-04-2012 , 02:28 PM






Hi,

I have the clipboard group working but when trying to add either (or
both) print preview to the XML in the uSysRibbons table I am receiving
error messages:

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.

I am just starting with customizing the Access 2010 ribbon - sorry!

Ideally I would like to add the Print Preview to the Print group but
if it appears next to the clipboard group that would be okay. I'll
remove the print group.

Here is part of the XML. Any ideas what I am doing wrong?

<customUI
xmlns="http://schemas.microsoft.com/office/2009/07/customui">
<ribbon startFromScratch="true">
<tabs>
<tab id="tabHome" label="Home">
<group id="grpClients" label="Clients">
<button id="btnClientEntry" size="large" label="Client
Entry" tag="frmClientEntry" onAction="OnOpen"/>
<button id="btnSubClientEntry" size="normal" label="Sub Client
Entry"/>
</group>
<group id="grpResevations" label="Reservations">
<button id="btnReservationEntry" size="normal"
label="Reservation Entry" tag="frmReservation" onAction="OnOpen"/>
</group>
<group id="grpCalendars" label="Calendars"></group>
<group id="grpPrint" label="Print"></group>
<group idMso="ViewsAdpDiagramPrintPreview"></group>
<group idMso="GroupClipboard"></group>
</tab>
<tab id="tabClients" label="Clients">
<group id="grpTabClients" label="Clients">
<button id="btntabClientsClientEntry" size="normal"
label="Client Entry" tag="frmClientEntry" onAction="OnOpen"/>
<button id="btntabClientsSubClientEntry" size="normal"
label="Sub Client Entry"/>
</group>
</tab>

Reply With Quote
  #2  
Old   
Albert D. Kallal
 
Posts: n/a

Default Re: grpIdMSO error message in 2010 ribbon with the print preview commands in custom ribbon - 01-05-2012 , 04:08 AM






"PW" wrote in message news:j5d9g7lm5vu1q7a51k1b2ctgnji24ctnsb (AT) 4ax (DOT) com...


Quote:
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...


--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
Pleasenospam_kallal (AT) msn (DOT) com

Reply With Quote
  #3  
Old   
PW
 
Posts: n/a

Default Re: grpIdMSO error message in 2010 ribbon with the print preview commands in custom ribbon - 01-05-2012 , 11:56 AM



On Thu, 5 Jan 2012 03:08:18 -0700, "Albert D. Kallal"
<PleaseNOOOsPAMmkallal (AT) msn (DOT) com> wrote:

Quote:
"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?
I don't think I know what an ADP project is Albert! I am following
along with the ribbon exercises in chapter 16 of the "Access 2010
Programmer's reference". The author does not mention what ADP is. At
the end of the chapter he/she says how to use some of the existing
controls that are listed in the backstage options dialog box (just
hover the mouse over the control and the control ID is with the
parentheses.

I now notice the ADP in the ID (I had no idea what that meant).
However, FilePrintPreview does not and also generates a different
error message ('button' instead of 'toggle button').

Quote:
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


Thanks, I will give it a try. Where did you get the "Group...." IDs
from?

Quote:
However, if you using ADP, then of course I don't think above will be of
use...
Um, no :-)

What does http://schemas.microsoft.com/office/2006/01/customui
actually do? If I go to the website, it generates an error. Does the
user need to have an internet connection or does the 'compiler' know
what that means? Noob questions!

That is not explained in the chapter, nor is the definition of what a
schema is (I am using the Web Dev 2010 Exp that the author suggested).

Thanks again,

-paulw

Reply With Quote
  #4  
Old   
PW
 
Posts: n/a

Default Re: grpIdMSO error message in 2010 ribbon with the print preview commands in custom ribbon - 01-05-2012 , 12:14 PM



On Thu, 5 Jan 2012 03:08:18 -0700, "Albert D. Kallal" >
Quote:
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

That is amazing! It just made my wife more excited that I've seen her
in years <G>. We ran a report from our reservation form and it went
to preview. Using the ribbon, I was able to switch from portrait to
landscape, email the report as a PDF. The recipient is blank so I
need to figure out how to use the email address in the email text box
for the current record on the open reservation form

And how to disable the buttons on the ribbon that are open once the
print preview window is closed. The options are all still enabled
with just the form open which I don't want (and generates "garbage"
when the Excel, Word,etc.. buttons are pressed).

So cool!

Thanks,

-paulw

Reply With Quote
  #5  
Old   
PW
 
Posts: n/a

Default Re: grpIdMSO error message in 2010 ribbon with the print preview commands in custom ribbon - 01-05-2012 , 12:46 PM



Quote:
However, if you using ADP, then of course I don't think above will be of
use...
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:

<tabs>
<tab id="tabHome" label="Home">
<group id="grpClients" label="Clients">
<button id="btnClientEntry" size="normal" label="Client
Entry" onAction="OnOpenForm" tag="frmClientEntry"/>
<!-- <button id="btnSubClientEntry" size="normal"
label="Sub Client Entry"/> -->
</group>
<group id="grpResevations" label="Reservations">
<button id="btnRezEntry" size="normal" label="Reservation
Entry" onAction="OnOpenForm" tag="frmReservationEntry"/>
</group>
<group id="grpCalendars" label="Calendars"></group>
<group id="grpPrint" label="Print"></group>
<group idMso="GroupClipboard"></group>
<group idMso="SortUp"/>
<group idMso="SortDown"/>
<group idMso="SortRemoveAllSorts"/>
</tab>

If I add </group> at the end of any of the Sort idMso's, I get
"expected </tab> in the editor. But I don't get that with the
"GroupClipboard" line.

-paulw

Reply With Quote
  #6  
Old   
PW
 
Posts: n/a

Default Re: grpIdMSO error message in 2010 ribbon with the print preview commands in custom ribbon - 01-05-2012 , 03:04 PM



Quote:
Thanks, I will give it a try. Where did you get the "Group...." IDs
from?

I found them:
http://www.microsoft.com/download/en...ang=en&id=6627

-paulw

Reply With Quote
  #7  
Old   
PW
 
Posts: n/a

Default Re: grpIdMSO error message in 2010 ribbon with the print preview commands in custom ribbon - 01-05-2012 , 05:50 PM



On Thu, 05 Jan 2012 11:46:57 -0700, PW
<emailaddyinsig (AT) ifIremember (DOT) com> wrote:

Quote:
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

Reply With Quote
  #8  
Old   
PW
 
Posts: n/a

Default Re: grpIdMSO error message in 2010 ribbon with the print preview commands in custom ribbon - 01-05-2012 , 11:42 PM



My (newbie) bad! I got it working. It's "toggleButton" with a
capital B. I had to step away for a bit before I realized it. And I
had to remove SortRemoveAllSorts because, even though it appears in
the Customize Ribbon section, it is not supported.

-paulw


On Thu, 05 Jan 2012 16:50:56 -0700, PW
<emailaddyinsig (AT) ifIremember (DOT) com> wrote:

Quote:
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



Reply With Quote
  #9  
Old   
Albert D. Kallal
 
Posts: n/a

Default Re: grpIdMSO error message in 2010 ribbon with the print preview commands in custom ribbon - 01-07-2012 , 02:17 PM



"PW" wrote in message news:ndobg7t3iem3qr821eq7165omtumbkrot0 (AT) 4ax (DOT) com...

Quote:
Are you talking about a ADP project, or a standard accDB?

I don't think I know what an ADP project is Albert!
You don't have to worry then! An ADP is a special type of Access application
that works "only" with SQL server. So there is quite a few menus etc. that
ONLY work when you working with SQL server.

So just advoid anything ADP, and you should be fine.

Quote:
Where did you get the "Group...." IDs
from?

I found them:
http://www.microsoft.com/download/en...ang=en&id=6627


Great link, thanks for sharing.

Quote:
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
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
Pleasenospam_kallal (AT) msn (DOT) com

Reply With Quote
  #10  
Old   
PW
 
Posts: n/a

Default Re: grpIdMSO error message in 2010 ribbon with the print preview commands in custom ribbon - 01-07-2012 , 05:20 PM



Quote:
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).

Can I do this for all the reports and forms, or do I have to assign
the report ribbon to each report and form?

Quote:
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.
Thanks for straightening me out! Totally makes sense.
Quote:
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
I've already downloaded and installed your ribbon class, and printed
out the documentation and studied it. Not sure how to get started
with it yet though.

I figure I will do things the hard way first, and then later on switch
to your ribbon class :-)

Thanks Albert.

Did you write the ribbon chapter in the 2010 Programmer's Reference
book? This book is a MUST have for every Access 2010 developer (IMHO,
of course :-)

-paul
-paul

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.