Avatar of mathieu_cupryk
mathieu_cupryk
Flag for Canada asked on

Application is bombing when trying to access a file.

I am not sure how to setup the file name.

 string DirectoryName = Directory.GetCurrentDirectory();
            string AppPath = Application.StartupPath.ToString();
            Bitmap CWBLogo = (Bitmap)System.Drawing.Image.FromFile(AppPath + "\\..\\..\\Images\\CWB.bmp", false);

            Excel.Range rangeimg = excelWorkSheet.get_Range("B" + count.ToString(), "B" + count.ToString());
            Clipboard.SetDataObject(CWBLogo);
            rangeimg.Select();
            excelWorkSheet.Paste(rangeimg, false);

Can someone help me fix this.

7-21-2008-1-14-16-PM.png
.NET ProgrammingVisual C++.NET

Avatar of undefined
Last Comment
photowhiz

8/22/2022 - Mon
mathieu_cupryk

ASKER
This is not a good area.
ASKER CERTIFIED SOLUTION
photowhiz

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck