Download doc file in PDF format

Posted by Nilkanthn under Regular Expressions on 3/17/2011 | Points: 10 | Views : 1542 | Status : [Member] | Replies : 4
Hi,

I am working on job site site. I am uploading resume in doc/docx format.
I want to provide option for the user to download the resume in doc as well as PDF format.
So please tell me how can i download word file into PDF format?

Thanks,
Nilkanth




Responses

Posted by: Gsolvers on: 3/17/2011 [Member] Starter | Points: 25

Up
0
Down
Hi I found a ncie article to convert docs to PDF. You will have to use something similar logic in your code module.

http://stackoverflow.com/questions/607669/how-do-i-convert-word-files-to-pdf-programmatically

Best Regards,

VG
www.TeacherJi.com

Nilkanthn, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Nilkanthn on: 3/17/2011 [Member] Starter | Points: 25

Up
0
Down
Hi Gsolvers,

I have jus gone throght the code. It is useful.
But when i am saving that converted file it gives me following error :

"System.Runtime.InteropServices.COMException: Command failed"
I have installed MS Ofiice on my machins and also added Office & InteropServices DLL's in my site.

Any help regarding this...



Thaks Nilkanth


Nilkanthn, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Gsolvers on: 3/17/2011 [Member] Starter | Points: 25

Up
0
Down
You might need to register the DLL manually via Regsvr32 command


Best Regards,

VG
www.TeacherJi.com

Nilkanthn, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Nilkanthn on: 3/17/2011 [Member] Starter | Points: 25

Up
0
Down
Hi
How can register via Regsvr32?

Thanks,
Nilkanth


Nilkanthn, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response