|
Tnx for your reply!
In my "application" tab -> "assembly information" stands 1.0.0.44, and when I run my application, application shows 1.0.0.25
Why there is a difference?
|
|
|
|
|
Member 9141033 wrote: Why there is a difference?
The assembly is part of the application; every assembly has it's own version-number, and then there's the version-number of the app.
|
|
|
|
|
Is there any way to reduce a number of digits so that my Revision has 2 digits?
tnx
|
|
|
|
|
Did your previous post not show an example where you had two digits?
|
|
|
|
|
ooops! sorry, my bad...
application(.exe) shows 1.0.0.25969 and in project properties stands 1.0.0.44.
i want to reduce number of digits...
tnx
|
|
|
|
|
Come on! It's simple string manipulation! Convert the Revision number to a string and grab the left 2 characters.
Why is this being treated as rocket science??
|
|
|
|
|
Rocket science or not, if you want to help then help, and don't prance here...
|
|
|
|
|
You asked how to get this: "28475" down to this "28". If you can't do
string shortenedRevision = revisionString.SubString(0, 2)
you've got much bigger problems than getting the correct revision number.
|
|
|
|
|
Member 9141033 wrote: application(.exe) shows 1.0.0.25969 and in project properties stands 1.0.0.44.
After building, the version should be 1.0.0.44 for the assembly, regardless whether it's an executable or a library.
Back to the solution-explorer, check the folder called "properties"; it'll contain an "AssemblyInfo.cs" file. At the end of the file, you should see something similar to below;
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
It is the on at the bottom that's used to display a version number in the Windows Explorer. Should even work if you enter "-1" as the "revision"
|
|
|
|
|
Hi all I would like to create a button in the context menu (right click) for the selected contact. This button has the same functions as the call button. Is there a way to create this add-in for Outlook 2007 and 2010 in Visual C # and NOT in VB.NET. I repeat NOT in VB.Net.
|
|
|
|
|
I'm certain you can write VSTO addins in C#
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
This is not valid answer.
|
|
|
|
|
|
Well, if you're going to be like that, pack your bags and leave.
You asked if it was possible and the answer was "Yes!"
The quality of the answer you get is directly dictated by the quality of the question you ask.
|
|
|
|
|
You're doing really well, kid. Out of 11 messages five have a score of 1.0
|
|
|
|
|
I was joking...
|
|
|
|
|
Behaviour like this is unacceptable. I have marked your account as abusive. If you keep this up, your account will be removed as there is no need for this.
|
|
|
|
|
Ok. I will delete my account from here. Sorry......
|
|
|
|
|
There is no need to delete your account. Just refrain from abusive behaviour and it will soon be forgotten.
|
|
|
|
|
Beh i want delete my account because my behaviour is not well.... Thanks! Goodbye forever!!!
|
|
|
|
|
"Yes", is enough to provide a "valid" answer. Further, answering is something that's done out of generosity; we're volunteers, and you get what you pay for.
|
|
|
|
|
Hello i've tried to build it!
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using Outlook = Microsoft.Office.Interop.Outlook;
using Office = Microsoft.Office.Core;
using Microsoft.Office.Core;
namespace PluginTapiProva1
{
public partial class ThisAddIn
{
private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
this.Application.ItemContextMenuDisplay += new Microsoft.Office.Interop.Outlook.ApplicationEvents_11_ItemContextMenuDisplayEventHandler(PacktMenuItem_ItemContextMenuDisplay);
}
public void PacktMenuItem_ItemContextMenuDisplay(Microsoft.Office.Core.CommandBar PacktCommandBar, Microsoft.Office.Interop.Outlook.Selection Selection)
{
Office.CommandBarPopup callBarPopUp = (Office.CommandBarPopup)PacktCommandBar.Controls.Add(Office.MsoControlType.msoControlPopup, Type.Missing, "Custom Menu Item 1", PacktCommandBar.Controls.Count + 1, Type.Missing);
callBarPopUp.Tag = "PacktCustomMenuItem1";
callBarPopUp.Caption = "TAPI Call 1";
callBarPopUp.Visible = true;
Office.CommandBarButton callButton2 = (Office.CommandBarButton)callBarPopUp.Controls.Add(1, missing, missing, missing, true);
callButton2.Caption = "Call xxxx!";
callButton2.Click += new Office._CommandBarButtonEvents_ClickEventHandler(Callxx);
}
public void Callxx(CommandBarButton Ctrl, ref bool CancelDefault)
{
}
private void ThisAddIn_Shutdown(object sender, System.EventArgs e)
{
}
#region VSTO generated code
private void InternalStartup()
{
this.Startup += new System.EventHandler(ThisAddIn_Startup);
this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown);
}
#endregion
}
}
And i'll get it:
http://i46.tinypic.com/29yox3n.jpg[^]
Ho can i put these numbers instead Call xxxx! To call function and pass number i've selected?
How can i load all numbers of selected contact to popup? And when i click it call a function passing the selected number?? Thanks! Thanks for any help!! :D And sorry for yesterday i was almost nervous....
|
|
|
|
|
csharpcomeintome wrote: Hello i've tried to build it!
Nice
csharpcomeintome wrote: Ho can i put these numbers instead Call xxxx!
Where are the numbers stored? You'll need to get them from somewhere "before" displaying the xxx-value.
csharpcomeintome wrote: And sorry for yesterday
Accepted, no problems here
|
|
|
|
|
Eddy Vluggen wrote: Where are the numbers stored? You'll need to get them from somewhere "before" displaying the xxx-value.
Ehm contacts are stored into my personal folder. Such as "Contatti itech". I'm italian .
Thanks for any help.
|
|
|
|
|
Not the contacts, but the replacement-phone numbers. If they're coming from an outlook-style address book, you'd have to look if the addin-framework supplies it's contents. Something like done in this article[^].
|
|
|
|