Click here to Skip to main content
15,671,597 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can we convert doc file to image ?
I need to store resume in database and show it on web page as a image.
Thanks in advance.

You might be able to use the Microsoft Office Document Image protocol example here[^].
Share this answer
You can store it as a PDF, and then show the PDF.
Share this answer
Sergey Alexandrovich Kryukov 17-Mar-11 16:19pm    
It makes sense, a 5. HTML is always a better option though.
Sergey Alexandrovich Kryukov 17-Mar-11 16:24pm    
Actually, I decided to add my Answer to try to explain why not image.
I never saw resume/staffing sites doing that (even though most of those sites are usually pretty bad technically). This would be very ugly and unreadable. PDF is reasonable (see the Answer by Griff), HTML is better. I tell you, if you do images, your customers will avoid using it — very inconvenient.

By the way, don't tell me this is to keep source resume in secret. It won't work.

Share this answer
prthghosh999 13-Jul-13 4:48am    
if it requires for a certain condition then what would be answer????
Sergey Alexandrovich Kryukov 14-Jul-13 0:12am    
Not clear. You need to elaborate on that if you want the advice. What condition, etc...
prthghosh999 14-Jul-13 16:51pm    
I need to convert a doc or docx file into a image file.and my code is

Microsoft.Office.Interop.Word.Application wordApp = new Microsoft.Office.Interop.Word.Application();
Microsoft.Office.Interop.Word.Document wordDoc = new Microsoft.Office.Interop.Word.Document();

object falseVal = false;

string fileName = @"D:\document.doc";
FLimage.PostedFile.SaveAs(Server.MapPath("~/temp") + "/test.docx");

System.IO.MemoryStream ms = new System.IO.MemoryStream(System.IO.File.ReadAllBytes(Server.MapPath("~/temp") + "/test.docx"));
System.Drawing.Image img = System.Drawing.Image.FromStream(ms);
img.Save(fileName, System.Drawing.Imaging.ImageFormat.Jpeg);

but got an error "parameter is not valid" on
please help me sir.
Sergey Alexandrovich Kryukov 14-Jul-13 23:20pm    
I question if you really need it, but you are not trying to explain that you do and why.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900