Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7428163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:42:03+00:00 2026-05-29T08:42:03+00:00

i am using windows application OutlookAddIn1 (office-2007) in VS2010, now my inbox have some

  • 0

i am using windows application OutlookAddIn1(office-2007) in VS2010, now my inbox have some mails and each mail have phone numbers , now my task is select the phone number and click the mouse right click , i have save text or save number option will appear how it is possible and select that option store that text into sql server2008 database table pls help my any one have idea about that topics , pls give any idea it is very urgent task

Thank u
hemanth

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T08:42:04+00:00Added an answer on May 29, 2026 at 8:42 am
     private void savenumbers()
            {
                try
                {
                    Outlook.Application oApp;
                    Outlook.Explorer oExp;
                    Outlook.Selection oSel;
                    object oItem;
                    long i;
                    // TODO: On Error GoTo Warning!!!: The statement is not translatable
                    oApp = new Outlook.Application();
                    oExp = oApp.ActiveExplorer();
                    oSel = oExp.Selection;
                    if ((oSel.Count == 0))
                    {
                        System.Windows.Forms.MessageBox.Show("Nothing selected");
                        return;
                    }
                    for (i = 1; i <= oSel.Count; i++)
                    {
                        oItem = oSel[i];
    
                        DisplayMessage(oItem);
                    }
                }
    
    
                catch (System.Exception ex)
                {
                    System.Windows.Forms.MessageBox.Show("Error " + ex.Message.ToString());
                }
            }
            public int outlooksavenumber(string testcopy)
            {
    
                int ReturnValue = 0;
                ReturnValue = SqlHelper.ExecuteNonQuery(LITRMSConnection, "usp_Outlooksavenumbers",
                                                                            new SqlParameter("@testcopy", testcopy));
    
                return ReturnValue;
            }
    
            void DisplayMessage(object oItem)
            {
                //Outlook.MailItem oMailItem;
                Outlook.MailItem oMail = (Outlook.MailItem)oItem;
                //System.Windows.Forms.MessageBox.Show(oMail.Subject);
                //System.Windows.Forms.MessageBox.Show(oMail.Body);
                string body = oMail.Body;
                Outlook.Inspector inspector = oMail.GetInspector;
    
                // Obtain the Word.Document object from the Inspector object
                Microsoft.Office.Interop.Word.Document document = (Microsoft.Office.Interop.Word.Document)inspector.WordEditor;
    
                // Copy the selected objects
                string testcopy = "";
                testcopy = document.Application.Selection.Text;
    
                outlooksavenumber(testcopy);
            }        
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Windows application for my project. Now I want to make some
I am using windows application and I have four combo boxes(comboeventname,combosendtype,comboType,comboschedule) in that form....
Im using c# .net windows application form. I have created many databases with many
Now my team working in a network project using windows application c# . I
I am using windows forms application using C#. I have created a dialog box
I made application in windows phone (Using Windows Phone SDK 7.1 /C#). But am
Using Json.Net in this Windows Phone application, I seem to be getting an exception
I am using Windows Application. I have two data tables called dt1 and dt2.
I am using Windows Forms Application in C# I have a label having Date
I am using C# windows Application I am checking which key, user have pressed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.