Click here to Skip to main content
15,901,122 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: How To Detect The person who click the print option in any document????? Pin
Dave Kreskowiak28-May-09 2:08
mveDave Kreskowiak28-May-09 2:08 
GeneralRe: How To Detect The person who click the print option in any document????? Pin
manjari kar30-May-09 1:15
manjari kar30-May-09 1:15 
GeneralRe: How To Detect The person who click the print option in any document????? Pin
Dave Kreskowiak30-May-09 13:12
mveDave Kreskowiak30-May-09 13:12 
GeneralRe: How To Detect The person who click the print option in any document????? Pin
manjari kar31-May-09 20:10
manjari kar31-May-09 20:10 
GeneralRe: How To Detect The person who click the print option in any document????? Pin
Dave Kreskowiak1-Jun-09 1:46
mveDave Kreskowiak1-Jun-09 1:46 
GeneralRe: How To Detect The person who click the print option in any document????? Pin
manjari kar4-Jun-09 20:47
manjari kar4-Jun-09 20:47 
GeneralRe: How To Detect The person who click the print option in any document????? Pin
manjari kar4-Jun-09 21:09
manjari kar4-Jun-09 21:09 
QuestionOffice Ribbon functionality Pin
windhopper22-May-09 2:23
windhopper22-May-09 2:23 
Hi everyone

Pleasae can someone help me. I have created a custom ribbon and am trying to implement it in an ExcaleAddIn and have created all the neccessary xml for it along with it's events as follows:
<pre><?xml version="1.0" encoding="UTF-8"?>
<customUI onLoad="Ribbon_Load" xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon>
<tabs>
<tab idMso="TabAddIns" label="ValueExplorer">
<group id="grpModel" label="Model Manager">
<button id="btnOpenModel" onAction="btnOpenModel_Click" label="Open Model" showImage="false" />
<button id="btnNewModel" onAction="btnNewModel_Click" label="New Model" showImage="false" />
<button id="btnPublish" onAction="btnPublish_Click" label="Publish VXP Model" showImage="false" />
</group>
<group id="grpVersion" label="Version Manager">
<button id="btnNewVersion" onAction="btnNewVersion_Click" label="New Version" showImage="false" />
<button id="btnOpenVersion" onAction="btnOpenVersion_Click" label="Open Version" showImage="false" />
</group>
<group id="grpObject" label="Object Manager">
<button id="btnNewObject" onAction="btnNewObject_Click" label="New Object" showImage="false" />
<button id="btnOpenObject" onAction="btnOpenObject_Click" label="Open Object" showImage="false" />
</group>
<group id="grpUser" label="User Manager">
<button id="btnNewUser" onAction="btnNewUser_Click" label="New User" showImage="false" />
<button id="btnEditUser" onAction="btnEditUser_Click" label="Edit User" showImage="false" />
</group>
<group id="grpScenario" label="Scenario Manager">
<button id="btnNewScenario" onAction="btnNewScenario_Click" label="New Scenario" showImage="false" />
<button id="btnActivate" onAction="btnActivate_Click" label="Activate" showImage="false" />
<button id="btnVarience" onAction="btnVarience_Click" label="Varience Report" showImage="false" />
<separator id="separator1" />
<button id="btnOpenScenario" onAction="btnOpenScenario_Click" label="Open Scenario" showImage="false" />
<button id="btnGroup" onAction="btnGroup_Click" label="Group Scenarios" showImage="false" />
<button id="btnSaveScenario" onAction="btnSaveScenario_Click" label="Save Scenario" showImage="false" />
</group>
<group id="grpSensitivity" label="Sensitivity Manager">
<button id="btnNewSensitivity" onAction="btnNewSensitivity_Click" label="New Sensitivity" showImage="false" />
<button id="btnOpenSensitivity" onAction="btnOpenSensitivity_Click" label="Open Sensitivity" showImage="false" />
<button id="btnSaveSensitivity" onAction="btnSaveSensitivity_Click" label="Save Sensitivity" showImage="false" />
</group>
<group id="grpTracer" label="Tracer">
<button id="btnView" onAction="btnView_Click" label="View" showImage="false" />
</group>
<group id="grpCalc" label="Calculation">
<checkBox id="chkAutoRecalc" onAction="chkAutoRecalc_Click" label="Auto" />
<button id="btnRecalcNow" onAction="btnRecalcNow_Click" label="Recalc Now" showImage="false" />
</group>
<group id="grpConfig" label="Config Manager">
<button id="btnETLConfig" onAction="btnETLConfig_Click" label="ETL Config" showImage="false" />
<button id="btnSysConfig" onAction="btnSysConfig_Click" label="System Config" showImage="false" />
</group>
</tab>
</tabs>
</ribbon>
</customUI>

I have also created the callbacks for the OnAction event as such:
<pre>public void OnActionCallback(Office.IRibbonControl control, bool isPressed)
{

if (control.Id == "btnNewVersion_Click")
{
//MessageBox.Show("You clicked " + control.Id);
Form frmNewModel = new Form();
frmNewModel.Show();
}
else
{
MessageBox.Show("You clicked a different control.");
}
}

But i still can't get any functionailty out of it. I have successfully added the ribbon to the workbook as a tab but also have some default menu items displaying even after setting the StratFromScratch property to true.

Please help where you can.

Thanks

"Sex is not the answer, it's the question and the answer is yes"

QuestionAliens stole my toolStrip, please help :'( Pin
Baeltazor21-May-09 14:52
Baeltazor21-May-09 14:52 
AnswerRe: Aliens stole my toolStrip, please help :'( [modified] Pin
Alan N21-May-09 22:38
Alan N21-May-09 22:38 
GeneralRe: Aliens stole my toolStrip, please help :'( Pin
Baeltazor22-May-09 15:50
Baeltazor22-May-09 15:50 
AnswerRe: Aliens stole my toolStrip, please help :'( Pin
dybs23-May-09 17:21
dybs23-May-09 17:21 
AnswerRe: Aliens stole my toolStrip, please help :'( Pin
molesworth24-May-09 0:34
molesworth24-May-09 0:34 
NewsVideos offer devs first look at Windows 7 Pin
brucedkyle21-May-09 8:45
brucedkyle21-May-09 8:45 
QuestionDrag and Drop Into Word Pin
Chadwick Posey20-May-09 8:04
Chadwick Posey20-May-09 8:04 
AnswerRe: Drag and Drop Into Word Pin
Chadwick Posey22-May-09 7:44
Chadwick Posey22-May-09 7:44 
QuestionMultiple Context Menu visibility issue Pin
TyrionTheImp20-May-09 7:21
TyrionTheImp20-May-09 7:21 
QuestionHow to use windows application with in the LAN Pin
Rakhe19-May-09 22:03
Rakhe19-May-09 22:03 
AnswerRe: How to use windows application with in the LAN Pin
EliottA20-May-09 2:44
EliottA20-May-09 2:44 
Questionhow to use an windows application in lan? Pin
Rakhe19-May-09 21:35
Rakhe19-May-09 21:35 
AnswerRe: how to use an windows application in lan? Pin
Mycroft Holmes23-May-09 17:49
professionalMycroft Holmes23-May-09 17:49 
QuestionC# console application for web file download gets 401 Pin
Mike Devenney19-May-09 9:26
Mike Devenney19-May-09 9:26 
AnswerRe: C# console application for web file download gets 401 Pin
bc_sridhar14-Jan-10 4:16
bc_sridhar14-Jan-10 4:16 
QuestionTooltip in Datagrid 1.1 Pin
mistryshailesh18-May-09 18:43
mistryshailesh18-May-09 18:43 
Question"Assembly Resource File" in Visual Studio 2008 Pin
bigcivilmelon18-May-09 12:51
bigcivilmelon18-May-09 12:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.