I have created Excel addin project using Visual Studio to insert a data into database.
The problem is I'm unable to open a File upload box in this.
I am getting an error.
My code:
[ObsoleteAttribute()]
[STAThread]
private void Save(ProgressBarForm pBar)
{
OpenFileDialog openFileDialog1 = new OpenFileDialog();
DialogResult result = openFileDialog1.ShowDialog();
if (result == DialogResult.OK)
{
//execute code
I tried to give attribute to Save method also then also it is giving me the error below: