TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Goran Bibic
482
2.9k
198.1k
Select image from db to pdf document C#
Nov 5 2019 9:42 AM
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?
Reply
Answers (
1
)
Show opened form ismdicontainer C#
Compare two textbox value