microsoft-office-for-developers-forums,word-for-developersRelated issues-Collection of common programming errors
msdn
msdn
visual-studio-development-forums microsoft-office-for-developers-forums visual-studio-tools-for-office-vsto
I have an excel customization with a post deployment action following instructions athttp://msdn.microsoft.com/en-us/library/dd465291.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1 I’m trying to copy the excel file with the customisation to the end user’s computer. The file is set to check for updates each time it opens. It works fine for install and uninstall. The update code runs OK and replaces the existing filewith the updated file but after the code runs I get a fatal com error. I c
msdn
visual-studio-development-forums microsoft-office-for-developers-forums visual-studio-tools-for-office-vsto
I am trying to create a setup for An Excel Addin, following the document on http://msdn2.microsoft.com/en-us/library/bb332051.aspx Deploying Visual Studio 2005 Tools for Office Second Edition Solution using Windows installerOne of the steps is creating an Office ComponentCheck.Exe.For that reason, I installed on my machine: –Microsoft .NET Framework 2.0 SDK – ENU–Microsoft Platform SDK for Windows Server 2003 R2But if I run cl.exe /Oxs /MT /GS ComponentCheck.cpp advapi32.libI get next error:Mi
msdn
visual-studio-development-forums microsoft-office-for-developers-forums visual-studio-tools-for-office-vsto
Hi,Trying to read an Excel worksheet and I get this error message:A fatal error has occured and debugging needs to be terminated. For more details please see the Microsoft Help and Support web site.HRESULT=0x80131c08 Error code = 0x0The error occurs on the last command of this piece of vb.Net code:Dim ws As Microsoft.Office.Interop.Excel.WorksheetDim rngKey As Microsoft.Office.Interop.Excel.RangerngKey = ws.Range(“A2”)Thanks,Ruwel
msdn
microsoft-office-for-developers-forums word-for-developers
Hi All,could you suggest the following point.I try to build “Table Styles” group on “Design” tab and to add there some custom ribbon items. However some ribbon items don’t look like items on original group “Table Styles”.1) Item named “TableStylesGalleryWord” (table styles gallery) doesn’t become as large as original item;2) Items named “ShadingColorPicker” and “TableBordersMenu” (shading gallery) don’t display label; however “labe
msdn
msdn
microsoft-office-for-developers-forums word-for-developers
I have a custom ribbon tab (in a Word 2007 document template) that has 3 basic groups. The first group is always visible. The other two are supposed to be controlled by a string value entered in a userform.I want only one of the two groups to be displayed.I cannot seem to get the change of display to work. When the tab is first displayed, it works, but no changes have any effect.I have tried using various versions of the invalidate and invalidate methods of a IRibbonUI, but with no l
msdn
microsoft-office-for-developers-forums access-for-developers
I have a problem with a db using SQL Server linked tables.Bit of background: It was originally designed in 2007 and is on a corporate network using corporate PC’s. Then when we upgraded to 2010, the db was upgraded also.Anyway, I design on my work desktop PC, and all works well. It also installs on other company desktop PC’s flawlessly with no problems.However, the problems start when trying to install on the company laptops that some people have.The first problem I am encountering is when runni
msdn
visual-studio-development-forums microsoft-office-for-developers-forums visual-studio-tools-for-office-vsto
Hello,[This message was posted on the microsoft.public.vsnet.vstools.office forum and was moved here by request of Ji Zhou from ]Microsoft Online Support Team]I wrote an excel VSTO application that includes two projects (in the same solution). Add-in project and a Template project.In the Add-In I added an event that will be registered by the template as followed:// Delegate for the event. [ComVisible(false)]public delegate void MyEventDelegate(object sender, EventArgs e);//Interface to the expos
msdn
microsoft-office-for-developers-forums excel-for-developers
I am using VB.Net 2005 to view excel graph in excel in a form.Excel control is rendered in a formError occurs on 64 bit WIN 7 with 64 bit Excel installed.System.Runtime.InteropServices.COMException was caughtErrorCode=-2147023170 Message=”The remote procedure call failed. (Exception from HRESULT: 0x800706BE)”Source=”Microsoft.Office.Interop.Excel”StackTrace: at Microsoft.Office.Interop.Excel.ApplicationClass.set_Visible(Boolean RHS) at DevInfo.DI_UserInterface.frmGraphWizard.
msdn
microsoft-office-for-developers-forums word-for-developers
Hi All,could you suggest the following point.I try to build “Table Styles” group on “Design” tab and to add there some custom ribbon items. However some ribbon items don’t look like items on original group “Table Styles”.1) Item named “TableStylesGalleryWord” (table styles gallery) doesn’t become as large as original item;2) Items named “ShadingColorPicker” and “TableBordersMenu” (shading gallery) don’t display label; however “labe
msdn
microsoft-office-for-developers-forums word-for-developers
I have a custom ribbon tab (in a Word 2007 document template) that has 3 basic groups. The first group is always visible. The other two are supposed to be controlled by a string value entered in a userform.I want only one of the two groups to be displayed.I cannot seem to get the change of display to work. When the tab is first displayed, it works, but no changes have any effect.I have tried using various versions of the invalidate and invalidate methods of a IRibbonUI, but with no l
msdn
microsoft-office-for-developers-forums word-for-developers
I have an Outlook addin that needs to access user selected paragraphs in the message body of Outlook 2007 e-mail messages. As a test I have written a routine that processes the range of text that the user has selected before the call to the addin. It then finds the paragraphs in the selection and adds some text to the beginning of each paragraph on the first call and then deletes that text on the second call. A Boolean variable determines whether this call is a Put_Text() or a D
msdn
microsoft-office-for-developers-forums word-for-developers
I am using the following code to open an encrypted word document.Word. DocumentwordDoc = DocumentContext.WordApplication.Documents.Add(DocPath,Type.Missing,Type.Missing,false); Ifthe user clicks the cancel button in the password prompt,I am getting command failed exception.Any idea on how to resolve this?
msdn
microsoft-office-for-developers-forums word-for-developers
Hi,I need to customize Office ribbon by adding a new tab. This tab has a button group which has a single control, which could either be a button or a dropdown list depending on some external event. For this, i need to invalidate this control after everyuser action. I am using IDispatch::Invoke to call IRibbonUI::InvalidateControl method() but this call is failing for Office 2007 (the same code is working fine with Office 2010). When Invoke call is made to call Invalidate or InvalidateContr
msdn
microsoft-office-for-developers-forums word-for-developers
Hello,A few users at our site got Office 2010 installed, and one application started failing on the Word mail merge automation. It fails on the ** line:Dim wordApp as Microsoft.Office.Interop.Word.ApplicationDim myMainDoc as Microsoft.Office.Interop.Word.DocumentwordApp = CreateObject(“Word.Application”)wordApp.Visible=FalsemyMainDoc=wordApp.Documents.Open(filename) ** myMainDoc.Select()**- here filename is a local directory path, where the user has full access to, I get an error Comma
msdn
msdn
microsoft-office-for-developers-forums word-for-developers
UsingMS Office 2007VS 2010 – Pointing frame work to 3.5Windows 7referenced NET Component Word 12.0 dll in C# code ——————————————————-I wrote a console application to create PDF ..when I am running this application from my user (like double click) it is creating PDFsBut when I configured the same console application as Windoows Service (run as User (me), as SYSTEM, As Local same result)..I am getting exception from SaveAs commandCan any body help me? Obvio
msdn
microsoft-office-for-developers-forums word-for-developers
Hi,I have a DLL, which I invoke from an ASP.NET web page, in which there is a line to open an existing Word document:m_wordDoc = m_wordApp.Documents.Open(strFilePath);where “m_wordApp” is an “Application”.When I run the website from Visual Studio, that line of code opens the Word doc fine. But after I deploy it to the web server, the it returns NULL without any error.I have assigned “Everyone” full control on the folder that contains the Word document.I installed Vi
msdn
microsoft-office-for-developers-forums word-for-developers
I am getting below error while saving the document.”The Save failed due to out of memory or disk space.”OS : Windows XPWord :Word 2007 SP2if anybody have the solution please let me know?Thanks in advance Antony
Web site is in building