Consider setting the 'Embed Interop Types' property to false. MessageBox.Show( " Data Exported Successfully into Excel File") Įrror Message is ErrorĘ6Ĝannot embed interop type '.AppEvents_Event' found in both assembly 'c:\WINDOWS\assembly\GAC\\11.0.0.0_71e9bce111e9429c\.dll' and 'c:\Program Files\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Office12\.dll'. (objRS) for ( int i = 1 i < + 1 i++)įor ( int j = 1 j < + 1 j++)ĮxcelApp.Cells = dcCollection.ToString() ĮxcelApp.Cells = () Į( " C:\\Documents and Settings\\All Users\\Desktop\\test.xls") ApplicationClass ExcelApp = new .ApplicationClass() // this is where the problem isĮ(Type.Missing) VB.NET 2 About the Tutorial VB.Net is a simple, modern, object-oriented computer programming language developed by Microsoft to combine the power of. dtMainSQLData = new () ĭataColumnCollection dcCollection = dtMainSQLData.Columns SqlDataAdapter da = new SqlDataAdapter( " select RollNo,Color_Name,Cand_Name,BatchNo from Batch_View where BatchNo='" + BatchNo + " '", sqlCon) SqlConnection sqlCon = new SqlConnection(conString) NET 4.0 project without using the Add ArcGIS Reference plug-in, the PIAs Embed Interop Types property is set to true. Initial Catalog = XXXX User Id = XXXX Password = XXXX " By default, when you add a PIA to a Visual Studio 2010. Copy Code // string conString = Data Source =.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |