简体   繁体   中英

Inserting a Word document content (with formatting) in a RDLC report using C#

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.

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.

This question was asked a long time ago, so I doubt this answer will be of much use to the OP, but if someone else stumbles across this as I did...

...I would think it should be fairly easy using a 3rd party component to convert the doc to an image and then use that in the RDLC without much hassle at all.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM