The following XML adds a new button on Backstage. The button will be added at the end as we didn't specify a location.
Friday, August 27, 2010
Video Tutorial - Add a new button on Office backstage using C#
How to add a new button to Office (Excel) Backstage from Addin using VSTO (C#)
The following XML adds a new button on Backstage. The button will be added at the end as we didn't specify a location.
The following XML adds a new button on Backstage. The button will be added at the end as we didn't specify a location.
Thursday, August 26, 2010
What is a Backstage view and How to customize it?
Backstage view in Office 2010 - An Introduction
Backstage was introducted in Office 2010 to hold commands and menus which are do some work 'on the document', for example, Printing, Publishing to SharePoint etc.
Backstage view is part of Office Fluent UI and very much customizable. The following video shows the elements of Backstage view.
Office 2010 BackStage View - An Introduction to customizable elements
Tuesday, August 24, 2010
How to Get Width and Height of Desktop Screen using C#/VB.NET
How to resize Windows form to fit Windows screen using C#/VB.NET
The following code resizes the Form Window to fit the entire screen .
The following code resizes the Form Window to fit the entire screen .
int iWindowWidth = Screen.PrimaryScreen.Bounds.Width; int iWindowHeight = Screen.PrimaryScreen.Bounds.Height; this.Size = new Size(iWindowWidth, iWindowHeight ) ;
Saturday, August 7, 2010
How to Enable a Disabled VSTO Addin
VSTO Addin is not getting Executed / VSTO Addin Stopped working
If your VSTO addin stopped working suddenly, it might because the Application would have taken precautionary measure by disabling your Addin.
The disabled addins can be checked from Excel/Word options from Backstage View as shown below:
Select the Addin you want to enable and select Enable:
If your VSTO addin stopped working suddenly, it might because the Application would have taken precautionary measure by disabling your Addin.
The disabled addins can be checked from Excel/Word options from Backstage View as shown below:
Select the Addin you want to enable and select Enable:
Tuesday, August 3, 2010
How to Add Images to Project Resources in C#/.NET
How to add/deploy Images in C#/.NET (Visual Studio)
You can add images as resources to the project. The images will be stored as part of your solution and get deployed when you deploy your solution. To add an image to the project, select Resources Tab from Project Properties and click on Add Resources; Select an appropriate file
Resources Tab in Visual Studio
Once the image is added it will be displayed as shown below:
The resource file is part of your project as shown below:
To access the image from code use the following
public System.Drawing.Bitmap GetButtonImage(Office.IRibbonControl control) { switch(control.Id) { case "btnmoscow": return Properties.Resources.moscow; . . , default: return null; } }
Subscribe to:
Posts (Atom)