Click here to Skip to main content
15,915,336 members
Home / Discussions / C#
   

C#

 
QuestionConvert Dll c#2 to WOrk on C#4 Pin
md_refay8-Aug-11 8:24
md_refay8-Aug-11 8:24 
AnswerRe: Convert Dll c#2 to WOrk on C#4 Pin
jschell8-Aug-11 8:34
jschell8-Aug-11 8:34 
GeneralRe: Convert Dll c#2 to WOrk on C#4 Pin
md_refay8-Aug-11 8:44
md_refay8-Aug-11 8:44 
GeneralRe: Convert Dll c#2 to WOrk on C#4 Pin
DaveyM698-Aug-11 12:40
professionalDaveyM698-Aug-11 12:40 
AnswerRe: Convert Dll c#2 to WOrk on C#4 Pin
PIEBALDconsult8-Aug-11 15:37
mvePIEBALDconsult8-Aug-11 15:37 
GeneralRe: Convert Dll c#2 to WOrk on C#4 Pin
md_refay8-Aug-11 18:47
md_refay8-Aug-11 18:47 
GeneralRe: Convert Dll c#2 to WOrk on C#4 Pin
Mycroft Holmes8-Aug-11 23:35
professionalMycroft Holmes8-Aug-11 23:35 
QuestionExcel Interop - Excel Not Closing Pin
Kevin Marois8-Aug-11 7:20
professionalKevin Marois8-Aug-11 7:20 
I'm using interop to save Excel files to CSV:

private static void saveAsCSV(string FileName)
{
    FileName = FileName.Replace(".xlsx", "");
    string destination = csvPath + "\\" + Path.GetFileName(FileName) + ".csv";
    if (File.Exists(destination))
    {
        File.Delete(destination);
    }
            
    Application xl = new Application(); 
            
    try 
    {
        Workbook workbook = xl.Workbooks.Open(FileName); 
        Worksheet ws = (Worksheet)workbook.Sheets[1]; 
        ws.SaveAs(destination, XlFileFormat.xlCSV); 
        Marshal.ReleaseComObject(ws); 
    }
    finally 
    { 
        xl.DisplayAlerts = false; 
        xl.Quit(); 
        Marshal.ReleaseComObject(xl); 
    } 
}


After this run the instance of Excel is still open. What's wrong hre?

Thanks
Everything makes sense in someone's mind

AnswerRe: Excel Interop - Excel Not Closing Pin
PIEBALDconsult8-Aug-11 15:39
mvePIEBALDconsult8-Aug-11 15:39 
AnswerRe: Excel Interop - Excel Not Closing Pin
BobJanova8-Aug-11 23:13
BobJanova8-Aug-11 23:13 
AnswerRe: Excel Interop - Excel Not Closing Pin
NarVish10-Aug-11 1:40
NarVish10-Aug-11 1:40 
QuestionObjectDataSource seems to bind, but doesn't, really. Pin
ShearWater5098-Aug-11 6:58
professionalShearWater5098-Aug-11 6:58 
QuestionHow to unit test this method Pin
chuckdawit8-Aug-11 6:28
chuckdawit8-Aug-11 6:28 
QuestionLucene .Net: search results are case sensitive Pin
NarVish8-Aug-11 2:00
NarVish8-Aug-11 2:00 
AnswerRe: Lucene .Net: search results are case sensitive Pin
Pete O'Hanlon8-Aug-11 2:24
mvePete O'Hanlon8-Aug-11 2:24 
GeneralRe: Lucene .Net: search results are case sensitive Pin
NarVish9-Aug-11 19:58
NarVish9-Aug-11 19:58 
QuestionSerialization of a Func property Pin
cjb1108-Aug-11 0:01
cjb1108-Aug-11 0:01 
Questionproject upgrade Pin
wasifmuneer7-Aug-11 20:40
wasifmuneer7-Aug-11 20:40 
QuestionDatagidview custom data Pin
sarang_k7-Aug-11 18:57
sarang_k7-Aug-11 18:57 
AnswerRe: Datagidview custom data Pin
Mycroft Holmes7-Aug-11 19:16
professionalMycroft Holmes7-Aug-11 19:16 
QuestionC# coding Pin
DammyMulero7-Aug-11 18:54
DammyMulero7-Aug-11 18:54 
AnswerRe: C# coding Pin
Richard MacCutchan7-Aug-11 21:52
mveRichard MacCutchan7-Aug-11 21:52 
AnswerRe: C# coding Pin
BobJanova7-Aug-11 23:14
BobJanova7-Aug-11 23:14 
AnswerRe: C# coding Pin
#realJSOP8-Aug-11 1:49
professional#realJSOP8-Aug-11 1:49 
GeneralRe: C# coding Pin
Not Active8-Aug-11 1:53
mentorNot Active8-Aug-11 1:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.