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
197.8k
Read PDF doc to axAcroPDF c#
Jul 18 2018 2:35 PM
I need to read from ms sql file to adobe PDF reader
Error is line 8
Error CS0029 Cannot implicitly convert type 'System.IO.MemoryStream' to 'string'
Some help?
try
{
if
(documentsDataGridView.SelectedRows[0].Cells[
"pdf_file"
].Value != null)
{
byte[] ap = (byte[])documentsDataGridView.SelectedRows[0].Cells[
"pdf_file"
].Value;
MemoryStream ms =
new
MemoryStream(ap);
axAcroPDF1.src = ms;
}
else
{
axAcroPDF1.src = null;
}
}
catch
{
axAcroPDF1.src = null;
}
Reply
Answers (
4
)
Video stuffs with WPF
Checkbox list click Event