I try this Itext sharp and work
- iTextSharp.text.Image logo = iTextSharp.text.Image.GetInstance("C:\\Program files\\BSS\\memorandum.jpg");
-
- logo.ScaleAbsolute(550, 110);
- logo.SetAbsolutePosition(25, 715);
- pdfDoc.Add(logo);
I need from db to document
And When try solution down
- string Memorandum = "";
- using (SqlConnection openCon14 = new SqlConnection(Con))
- {
- SqlDataReader reader14;
- SqlCommand cmd14 = new SqlCommand();
- cmd14.CommandText = "select memorandum from podaci_o_korisniku";
- cmd14.Connection = openCon14;
- openCon14.Open();
- reader14 = cmd14.ExecuteReader();
- while (reader14.Read())
- {
- Memorandum = reader14[0].ToString();
- }
- openCon14.Close();
- }
And have error
- + $exception {"Could not find file 'C:\\Users\\Bibic Goran\\source\\repos\\BSS\\BSS\\bin\\Debug\\System.Byte[]'."} System.Net.WebException
System byte missing?