I tried this answer
and I think it's correct because if I enter here a non existing file like this Properties.Resources.ddd
it gives me the error of Project.Properties.Resource does not contain a definition for ddd
and when I put the correct filename which is logo
. It gives me errors like this. I will also publish
this so I really need that image to be included.
The best overloaded method match for 'System.IO.FileStream.FileStream(string, System.IO.FileMode, System.IO.FileAccess, System.IO.FileShare)' has some invalid arguments Argument 1: cannot convert from 'System.Drawing.Bitmap' to 'string'
What seems to be the error that it won't accept my resource? It's a png
file
EDIT:
I'm using an iTextSharp. This is my first lines of the program
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using iTextSharp.text;
using iTextSharp.text.pdf;
My initial code is this
Stream inputImg = new FileStream(@"C:\Users\Company\Downloads\logo.png", FileMode.Open, FileAccess.Read, FileShare.Read);
But I'm also installing this to other computer as well.