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
Abhilash J A
530
2.4k
600.1k
Problem in adding image in word doc in Html MVC C#
Mar 23 2016 6:29 AM
Hello,
This is the c# code to generate word doc
public ActionResult SummaryExportToWord()
{
Response.Buffer = true;
//Response.AddHeader("content-disposition", "attachment; filename=ContactDetail.xls");
//Response.ContentType = "application/ms-excel";
Response.AddHeader("content-disposition", "attachment; filename=Exposure_Summary.doc");
Response.ContentType = "application/ms-word";
Response.Charset = "";
return View();
}
Image can't add to the word file. This is the image html:-
<td>
<img src="~/Pic/EMG%20Logo.png" width="200" height="50"/></td>
</tr>
The error is "
The linked image cannot be displayed. The file may have been moved
". How to show image in doc file from Html5?
Reply
Answers (
1
)
why does not work RawPrinterHelperClass in persian (farsi)?
extracting file content