Click here to Skip to main content
15,881,173 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello There,

A Question In My Mind Is It Possible to Convert Postscript(PS) File Into Word(doc) file using Asp.Net?If Yes then how can we resolve it via C# Code.

Thanx In Advance
Posted
Updated 8-Mar-12 19:24pm
v2

1 solution

There is nothing in ASP.NET to work with PS. The Open Source product called PDFSharp and primarily used for PDF in .NET has a namespace PostScript, it should help you to parse a PS file and get the data you need:
http://pdfsharp.com/PDFsharp/[^].

To create a Word document, use Office interop assembly. Basically, in your project's "References" tab of the Code Explorer, click "Add Reference", use the tab "COM" of the "Add Reference" window, add the reference to Microsoft Word Object Library of required version. Please see:
http://msdn.microsoft.com/en-us/library/microsoft.office.interop.word%28v=office.11%29.aspx[^],
http://msdn.microsoft.com/en-us/library/microsoft.office.interop.word%28v=office.14%29.aspx[^].

(Or similar piece of documentation for required version.)

See also:
http://msdn.microsoft.com/en-us/library/aa192495%28v=office.11%29.aspx[^],
http://msdn.microsoft.com/en-us/office/hh128772.aspx[^].

—SA
 
Share this answer
 
Comments
andy(-RKO) 9-Mar-12 2:10am    
Thanx For Quick Reply SAKryukov..
Actually as i know the PDFSharpe is basically use to creating PDF and after it performing any operation on that but i need existing PDF to word. that's why i going the way in which first i convert it (PDF) To PS file and now i need to convert this PS file into doc file..
Sergey Alexandrovich Kryukov 9-Mar-12 2:15am    
Is the fact that you know it the reason of your vote of 1? Wow! And I actually answered how to work with Word. What's not clear?
--SA

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