Click here to Skip to main content
15,843,200 members

Comments by JOHNNYDEMICHAEL (Top 18 by date)

JOHNNYDEMICHAEL 19-Feb-14 22:25pm View    
Vedat, does your code run? If so, what reference do you add other than Microsoft.Office.Interop.Word?

using System.Threading.Tasks; results in several errors . . what reference do you add? I cannot get your updated solution to compile without errors.
JOHNNYDEMICHAEL 18-Feb-14 13:00pm View    
Vedat, you mentioned VB . . . I'm writing in C#
JOHNNYDEMICHAEL 18-Feb-14 12:58pm View    
Here are the errors listed . . .


Error 1 'Application' is an ambiguous reference between 'System.Windows.Forms.Application' and 'Microsoft.Office.Interop.Excel.Application' C:\JR PROGRAMMING\JR C# Projects\csv2dgv\Form1.cs 1102 44 csv2dgv
Error 2 The type 'System.Windows.Forms.Application' has no constructors defined C:\JR PROGRAMMING\JR C# Projects\csv2dgv\Form1.cs 1102 40 csv2dgv
Error 3 The name 'WdDocumentType' does not exist in the current context C:\JR PROGRAMMING\JR C# Projects\csv2dgv\Form1.cs 1107 21 csv2dgv
Error 4 No overload for method 'SaveAs' takes '1' arguments C:\JR PROGRAMMING\JR C# Projects\csv2dgv\Form1.cs 1108 17 csv2dgv
Error 5 No overload for method 'Close' takes '1' arguments C:\JR PROGRAMMING\JR C# Projects\csv2dgv\Form1.cs 1109 17 csv2dgv
JOHNNYDEMICHAEL 18-Feb-14 12:52pm View    
using System;
using System.IO;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Word = Microsoft.Office.Interop.Word;
using Excel = Microsoft.Office.Interop.Excel;
using Microsoft.Office.Interop.Excel;
using System.Reflection;

using System.Collections;
using System.Globalization;

using System.Threading;
using Office = Microsoft.Office.Core;
using System.Diagnostics;
using Microsoft.VisualBasic.FileIO;
JOHNNYDEMICHAEL 18-Feb-14 12:50pm View    
Yes.