-
- Calling function from AddIn
by swje
- 5 Replies
- Last post
by TaylorMichaelL
- Hi ,
I use the following code to call my function in AddIn, the AddIn.Count is 0, but when word visible, I can see AddIn is already over there,what's the problem.
Word.Application app = new Word.ApplicationClass();
if (app == null) return;
app.Visible = true;
object index = 1; try { int k = app.AddIns.Count; //
-
- How to get the range string of a worksheet.range object
by Michael Zh.
- 2 Replies
- Last post
by Asim Patnaik
- We all know that we can get a range object by using: get_range("A1:B1"), but if I have a range object, how can I get its address string --> "A1:B1" I wants to create a chart and give its source value as "A1:B1,D1:F1,G1:H1", so I need to get the string of range address. Thanks
-
- How to add event handler on Custom Form
by abhimanu
- 13 Replies
- Last post
by X4U
- I have created a custom form that hold a button that will help me to retrieve the contact details of the person.( My implementation of Address Book)
I have customed New Message form under IPM.Note and added a new button .
How to add a event handler for the button using c# .
I have saved the form with .oft extension.
Thanks in advance
-
- How to duplicate a RichTextContentControl
by mathmax
- 10 Replies
- Last post
by dhysong
- Hello,
I try to duplicate a RichTextContentControl from a word 2007 document. I would like to insert the duplicated RichTextContentControl just under the original one. How can I do that
Thank you in advance for your help,
mathmax
-
- Export docx to doc compatible via VSTO
by Rames Gantanant
- 5 Replies
- Last post
by Cindy Meister
- If I generate docx programmatically via VSTO, is there any method call from VSTO library to export this docx into doc-compatibility for Office 2003 or XP
-
- Embedding a file in the Word file using C#
by Anil566156
- 2 Replies
- Last post
by Anil
- Hi All,
I have a requirement like I need to Attach few files into MS-Word file. Is it possible using C#.
Please help me.
Thanks & Regards,
Anil
-
- How can i automate Ribbon UI
by Abhi_N
- 3 Replies
- Last post
by Cindy Meister
- Hi,
I am trying to automate some test cases on ribbon control, which is on Windows Form.
Please help in this regard i am blocked.
Thanks,
Abhi
-
- Caching custom data
by karpanta
- 2 Replies
- Last post
by Andrew Cherry [MSFT]
- Hi! I am using VSTO SE with Office 2003 and have a problem while trying to cache a type I have created. I can't find any example of how the prerrequisites of a type to be cached are applied so I would really thank if any of you can show me how to do it. I tried like in the WordDynamicControls example but it really doesnt save the information. Thanks!
-
- How can I find out if Word is loaded in Outlook?
by vitich
- 4 Replies
- Last post
by Sue Mosher - Outlook MVP
- I'm creating Word Addin with VSTO 2005 SE. I need to disable some functionality in case Word loaded in Outlook (when I compose email for example). How can I find out if Word is loaded in Outlook
Thanks,
Victor
-
- Inactive buttons on toolbar (continuation)
by ClaudiaHelpOnVSTO
- 3 Replies
- Last post
by ClaudiaHelpOnVSTO
- Hi, I know that buttons on toolbars have to be defined on class level and have to be assigned a unique TAG property. What about the scenario when I don't know in advance how many buttons I will need to show.... how do you manage a varying number of buttons and their event handlers So fare I have come up with the following solution: // on top class level private ArrayList translationBtn_list; priv
-
- Unlocking a project...
by IT_roofer
- 8 Replies
- Last post
by IT_roofer
- I appologize if this is not the place to ask this, however, I could not find an Excel Programming specific MSDN forum.
**PLEASE DO NOT REFER ME TO THE OFFICE DISCUSSION GROUPS**
=> I have been there and done that and I'm looking here now for help <=
There seems to be some debate on whether or not a person can lock/unlock a VBAProject in Excel. I've been told you can't. I
-
- Strange behavior: RichTextBox
by ClaudiaHelpOnVSTO
- 14 Replies
- Last post
by ClaudiaHelpOnVSTO
- Hi, I am creating a .doc with VSTO2005. My document contains several Controls such as Buttons, RichTextBoxes, ComboBoxes, etc. which are generated at runtime. In some cases, I encounter the problem that a RichTextBox doesn't display the content (text) it should, but only displays a big red cross like this: \ / \ / \
When I
click into the RichTextBox field (wi
-
- Outlook addin stops responding
by Siddhu
- 6 Replies
- Last post
by Misha Shneerson - MSFT
- Hi, We have built a VSTO-SE add in for Outlook 2003. Our add-in functionality can be be initiated in 2 ways, manually or can be set to initiate after given period of time, something like "auto send/receive mail" functionality. But sometimes when our add-in initiates a process (e.g. auto initiate process) outlook stops responding and crashes. We have to forcefully kill the Outlook proces
-
- controls on my form don't work.
by mathmax
- 1 Replies
- Last post
by Ji Zhou ¨C MSFT
- Hello, I've a strenge bug that occurs at runtime (i.e when I execute the .docx directly) I've a worddocument project (word 2007) in which I've added a button. When the user click on the button a form is shown : private void button1_Click(object sender, EventArgs e) { Form1 f = new Form1(); f.Show(); f.BringToFront(); } In this form, I've just added a combobox. When the form loads, some items are
-
- Excel 2007 Macro
by strictlydata
- 4 Replies
- Last post
by strictlydata
- I have created two simple Excel Macro's My problem is I want to compile this into vb to make it a bit more secure. and stop it guys changing the macro. I have a button on the workbook to excute the macro.
Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset
Sub macro()
cn.Open "Driver={SQL Server};" & "Server=sqlserver;" & "Database=database1;&q
-
- Intercept WM_COPY message in Excel VSTO
by themoosman
- 7 Replies
- Last post
by Geoff Darst - MSFT
- I am trying to intercept a user paste in a VSTO
application. I know I could use the
OnAction parm, but we are trying to use a VBA free application and we have to
stay on VSTO 2005 first edition. Using
the spy++ application I noticed that the WM_COPY (or WM_PASTE) message is not
posted to the Excel workbook, or application when a copy occurs in the
application. I have been searching for
h
-
- How to script Microsoft Office Document Imaging OCR to RTF
by KanMani
- 1 Replies
- Last post
by Cindy Meister
- Hi,
I have written a module to use Microsoft Office Document Imaging to OCR given image and save text. Now I would like to get RTF from the OCR. If it is to be done manually I use the MODI application to send the text to MS Word and then save as RTF.
Can some one guide me on how to do it through API
Below is my existing text exporting code.
Private modiDoc As MODI.D
-
- Microsoft CRM Like Addin
by Pierre Savard
- 4 Replies
- Last post
by Pierre Savard
- Hi, I work on a CRM like the one made by Microsoft. Microsoft CRM 3.0 have a function that keep in sych the contact folder in outlook and a SQL datatble. The complicated part of my work is to reproduce the same function but our customer whant to keep link in outlook but he will stop using the Microsoft CRM database to use our CRM. I need to found how Microsoft save the link between outlook and th
-
- Problem with Adding MS Office 11.0 Object Library to Project
by Nima Amin
- 5 Replies
- Last post
by Dennis Wallentin
- Hi, I add Microsoft Office 11.0 Object Library to my project's references. But I cannot use these codes do define my office object: (VS2005 does not recognize them and says, "'Excel.Application' is not defined.") Dim xlApp As Excel.Application Dim xlBook As Excel.Workbook Dim xlSheet As Excel.Worksheet What should I do Thanks
-
- ado.NET and Excel error!
by KingKarter
- 2 Replies
- Last post
by KingKarter
- Hi all after looking at the articel in the KB
http://support.microsoft.com/kb/306023/EN-US/
I tried exporting the DataSet to Excel.
I have created a excel file in the run time and added the table to it.
private string CreateFile()
{
string fileName= "C:/Report/ProductionReport.xls" ;
//THIS CODE IS SPECIFICALLY FOR CREATING THE EXCEL FILES.
Excel.
-
- Linking accounts and business contacts in BCM
by Steve A0123456
- 0 Replies
- Last post
by Steve A0123456
- I am trying to link a business contact to an account in BCM 2007 in a customised screen using VSTO SE in an Outlook Add-in. I have put information into the user defined fields "Parent Entity EntryID" which seems to be retained, but in the standard Business Contact Manager screen no link information is retained
-
- AppointmentItem's Organizer / AD User
by Albert Raiani
- 2 Replies
- Last post
by Albert Raiani
- I'm putting this out there again because I can't believe that I'm trying to do something that is impossible. There must be a solution to this.
Here's the scenario:
Platform: VSTO 2005 / Outlook 2003
The current outlook user (the assistant) opens another user's (the organizer) calendar by going to File / Open / Other User's Folder... and creates an appointment on his
-
- Is there any way to open Excel from stream and save as an Excel document into a stream?
by Bill.Net
- 4 Replies
- Last post
by Bill.Net
- Hi,
Right now I am using Office automation to generate Excel and save it into a physical file, is there any way to open Excel from a stream and save as an Excel document into a stream
Thanks,
-
- OL2007 - Highlighting in Mails
by MichaelS.
- 1 Replies
- Last post
by Sue Mosher - Outlook MVP
- Hi! I wanna highlight specific text parts in the active email in Outlook. The highlighting should be work in both Outlook inbox view and Inspector window. Maybe there is method to search emails and highlight matchings Thank you for advice Michael
-
- how to open Word 2003 with customization in IE
by Vlladico
- 3 Replies
- Last post
by Vlladico
- Hi :)
I have solution with word 2003 and VSTO SE. Users can download customized documents from site.
If they use FireFox, everything works fine. But, if IE7 is used, then user first must to save document, and then open it. If he try to open document in IE7, customization is disabled. I know that this is becouse IE have his own security. Is it possible change this, so user can open document i