S
stainless
Currently, we are opening Excel files using the Response option:
Response.ContentType="application/x-msexcel";
Response.AddHeader("Content-Disposition", "attachment; filename=" + localFileName);
Response.WriteFile(fileName);
Response.Flush();
Response.Close();
filename is the actual Excel file (contains a macro) and localFileName is asuggested name for saving the data file produced.
I am looking at allowing the called Excel to take in command line parameters using a GetCommandLine function in the Excel VBA (have tested Excel code tp do this and can read the full command line) but have not found a way of changing the C# code above to pass this through. Unfortunately, we are stuck with Framework 1.1 for the time being so need a solution that is compatible. Any ideas?
Cheers
Mark
Response.ContentType="application/x-msexcel";
Response.AddHeader("Content-Disposition", "attachment; filename=" + localFileName);
Response.WriteFile(fileName);
Response.Flush();
Response.Close();
filename is the actual Excel file (contains a macro) and localFileName is asuggested name for saving the data file produced.
I am looking at allowing the called Excel to take in command line parameters using a GetCommandLine function in the Excel VBA (have tested Excel code tp do this and can read the full command line) but have not found a way of changing the C# code above to pass this through. Unfortunately, we are stuck with Framework 1.1 for the time being so need a solution that is compatible. Any ideas?
Cheers
Mark