473,320 Members | 2,054 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Customized tab on word 2010 backstage

1
Let me say guys that I am not too experienced with VS2010 so any push in the right direction would be greatly appreciated


I am trying to customize the backstage for word 2010 with a com addin.

From different sample code and some patience I have managed to get as far as a new tab that has 1 button and 2 combo boxes in a single group and column. The combo boxes contain city names in the 1st and template type in the 2nd. What I need to accomplish is this :). Currently our workgroup templates are stored on a network share in this structure

City 1 Folder
Templates type 1 folder
Type1.dot
Template type 2 folder
type2.dot
City 2 Folder
Template Type 1 folder
type1.dot

I have 5 city types and 7 template types

When open templates is clicked, have the returned templates show in the 2nd group(available Templates) based upon cbo selections in the same manner the templates appear if you add a custom templates section as per(http://technet.microsoft.com/en-us/l.../cc178976.aspx ).

My XML so far

<?xml version="1.0" encoding="utf-8" ?>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
<backstage>
<tab id="customTab" label=" S + A Templates" insertAfterMso="TabInfo" visible="true" >
<firstColumn>
<group id="customGroup" label="S and A Location">
<primaryItem>
<button id="btnButton" label="Open Templates" imageMso="Folder" onAction="OnAction"/>
</primaryItem>
<topItems>
<layoutContainer id="layoutTwo" layoutChildren="horizontal">
<comboBox id="cboComboBox" label="Choose City" >
<item id="item1" label="Toronto"/>
<item id="item2" label="Ottawa"/>
<item id="item3" label="Edmonton"/>
<item id="item4" label="Burnaby"/>
<item id="item5" label="Kelowna"/>
<item id="item6" label="Victoria"/>
</comboBox>
<comboBox id="cboComboBox2" label="Choose Template Type" >
<item id="item7" label="Proposal"/>
<item id="item12" label="Project Admin"/>
<item id="item13" label="CheckLists"/>
<item id="item14" label="Permit Related"/>
<item id="item15" label="Engineering"/>
<item id="item16" label="HR"/>
</comboBox>
</layoutContainer>
</topItems>
</group>
<group id="grpTwo" label="Available Templates" visible="true" >

</group>

</firstColumn>
</tab>
</backstage>
</customUI>
Feb 12 '12 #1
0 1683

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Raj Singh | last post by:
I am facing a problem with Visual C# 2003 and MS Word XP. I am using a customized template for Word and in that template I have defined some bookmarks. I am trying to create a Word document based...
0
by: Marco Mendonça | last post by:
Hi, I have a Template wich customizes Word toolbars and menus. I need to open this template in Internet Explorer and i expect that the Embedded Word will be customized as if the same Template...
2
by: Mikey | last post by:
Sample VB .NET source code to create mailing labels or customized letters using MS Word MailMerge This VB .NET source code will start MS Word and call methods and set properties in MS Word to...
2
by: sqlster | last post by:
In asp.net/SQL Server application based on business rules, I would like to dynamically generate word documents. Content and layout would be fully customized.How do I go about doing it? I could...
4
by: comtrendz | last post by:
Application fails with error: 80040154 when attempting to open a doc in Word 2010. I have a VB.Net app that uses word to open documents. I am running VS 2008 on my PC with Office 2003. When I...
0
by: Lyu KingT | last post by:
hi, i need to control the right of a Office document in my Visual Studio Projects, so how to enable or disable the print, what abou edit, save..... i try to fellow the video How Do I: Hi-jack...
0
by: lenniekuah | last post by:
Hullo Friends, I need your help. Pleas share with me sample coding. Doing C# Window application to output data onto Microsoft WORD Document without using Template. These are how it appear on...
0
by: D Gearinger | last post by:
In Word 2010, I have a macro that finds (Match case) non-capitalized words (such as texas, california, florida, etc.) and replaces them with (Texas, California, Florida, etc.) However, it says for...
1
by: Jim de la Combe | last post by:
We developed boiler plates with VSTO (C#) and MS WORD 2010. When users use these VSTO templates to create documents and these documents are saved, the next time the users open these documents, there...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.