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 th开发者_JAVA百科e 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.
精彩评论