views:

75

answers:

2

Hello,

I'm creating a RDLC report in C#. Is it possible to insert the content of a Word 2003 document (with formatting) in it (either in design time or programmatically) before exporting to PDF. The final result will be a PDF file containing the initial report (fields from database) and the Word document content following it.

Why this? I need to give the user the possibility to fill a form, attach a word document and export the all to PDF as I described earlier (ASP.NET). I don't have Word installed on the server so I can't Interact with its COM objects.

Thank you.

A: 

Which format does the word document use? If it's .docx, you can try going with the Open XML SDK from Microsoft.

Not sure about how to import the formatting.

yan.kun
unfortunately it's not a docx, a doc file (2003)
najmeddine
A: 

I recommend use RTF (not DOC!), than prepare report and export to html/pdf, send by e-mail, etc. Very useful, does not need any additional tools (word or distiller) on server. Some time ago I have seen import/export filter to word via OLE, but it impossible to use on server side of course.

Merl