pia

Extracting Source Code from an MS Access DB

巧了我就是萌 提交于 2019-12-03 08:55:08
I have an Access DB that I would like to extract the source code from so I can put it into Source control. I have tried to extract the data using the Primary Interop Assemblies(PIA), but I am getting issues as it is not picking up all of the modules and forms. There are 140 Forms and Modules in the code(Don't ask, it's a legacy system I have inherited) but the PIA code is only picking up 91 of them. Here is the code I am using. using System; using Microsoft.Office.Interop.Access; namespace GetAccesSourceFiles { class Program { static void Main(string[] args) { ApplicationClass appClass = new

Microsoft.Office.Core Reference Missing

匿名 (未验证) 提交于 2019-12-03 01:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Using the example provided in codeproject I am struggling to work out where I can find the reference to the library Microsoft.Office.Core. I am getting the error "The referenced component 'Microsoft.Office.Core' could not be found." I only have office 2007 enterprise edition and outlook 2003 installed on this system. Could this be the cause of this? Otherwise which specific dll am I supposed to be referencing? 回答1: You can add reference of Microsoft.Office.Core from COM components tab in the add reference window by adding reference

Excel process doesn't get closed

邮差的信 提交于 2019-12-01 22:27:43
问题 I am not able to get my EXCEL (32) process closed once I am done using it. As you can see in the code below, once ProcessRFAFData function finishes its execution, the EXCEL process doesn't get closed (I can still see EXCEL.EXE*32 in the task manager). For this reason, when SaveErrors starts its execution, I get the following exception: System.Runtime.InteropServices.COMException (0x800A03EC): Microsoft Office Excel cannot open or save any more documents because there is not enough available

Excel process doesn't get closed

一世执手 提交于 2019-12-01 19:30:33
I am not able to get my EXCEL (32) process closed once I am done using it. As you can see in the code below, once ProcessRFAFData function finishes its execution, the EXCEL process doesn't get closed (I can still see EXCEL.EXE*32 in the task manager). For this reason, when SaveErrors starts its execution, I get the following exception: System.Runtime.InteropServices.COMException (0x800A03EC): Microsoft Office Excel cannot open or save any more documents because there is not enough available memory or disk space. • To make more memory available, close workbooks or programs you no longer need. •

what is the advantage of .net4's new no pia feature [deploying PIA's]

独自空忆成欢 提交于 2019-11-30 22:59:59
Its possibly im just missing something here but, when I write some code for Excel interop, here is how it goes. I add a reference to the Excel Com libraries. VS creates a PIA - Microsoft.Office.Interop.Excel....(via tlbimp right?). I copy the exe and the interop(PIA) dll to any machine (with .net) and it works? Is there a scenario where I would have to deploy/register the PIA? Or have I got something wrong here, because it seems to me embedding the PIA into the main assembly doesn't seem like a great big feature? Please excuse my ignorance, if any. Update: So I did some tests, I wrote an app

what is the advantage of .net4's new no pia feature [deploying PIA's]

混江龙づ霸主 提交于 2019-11-30 17:50:01
问题 Its possibly im just missing something here but, when I write some code for Excel interop, here is how it goes. I add a reference to the Excel Com libraries. VS creates a PIA - Microsoft.Office.Interop.Excel....(via tlbimp right?). I copy the exe and the interop(PIA) dll to any machine (with .net) and it works? Is there a scenario where I would have to deploy/register the PIA? Or have I got something wrong here, because it seems to me embedding the PIA into the main assembly doesn't seem like

Is Office 2007 PIA deployment possible without Office 2007?

烂漫一生 提交于 2019-11-28 10:26:41
Does Office 2007 PIA also require Office 2007 to be installed? Can I deploy Office 2007 PIA with VSTO 3.0 (without having Office 2007 installed)? EDIT: I have a windows application that generates MS Word files. I have added the Office 2007 PIA as custom pre-requisite in the setup, but Office 2007 PIA needs MS Office 2007 to be installed. I just wanted to know that if VSTO does not require Office Installation, then maybe i can convert my application to VSTO. In order to use VSTO you must have Office Installed. The VSTO PIA's only provide a shim between .NET and the COM interfaces that Office

Is Office 2007 PIA deployment possible without Office 2007?

∥☆過路亽.° 提交于 2019-11-27 03:35:37
问题 Does Office 2007 PIA also require Office 2007 to be installed? Can I deploy Office 2007 PIA with VSTO 3.0 (without having Office 2007 installed)? EDIT: I have a windows application that generates MS Word files. I have added the Office 2007 PIA as custom pre-requisite in the setup, but Office 2007 PIA needs MS Office 2007 to be installed. I just wanted to know that if VSTO does not require Office Installation, then maybe i can convert my application to VSTO. 回答1: In order to use VSTO you must