We help IT Professionals succeed at work.

Application is bombing when trying to access a file.

229 Views
Last Modified: 2013-12-17
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
Comment
Watch Question

Author

Commented:
This is not a good area.
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.