I am a brand-new user, so forgive absurd questions. I appreciate all the documentation available. But it would really help me to get some feedback on best approaches for my specific tasks. My workflow is pretty clear:
(1) On the web server, in .NET 4, I need to load a Word document template (.dot, .dotx) stored in the file system and paste in RTF loaded from the database. The template can certainly become a document (.doc, .docx) if that is preferable.
(2) I need to turn that into Word or PDF, and send it back to the web client to be automatically opened in Word.
(3) On the web server, I need to take that Word or PDF, and send it as an attachment in email.
Any suggested best approaches and/or pointers to code samples for those specific tasks would be very much appreciated.
Alexey, thank you very much for the tips.
For inserting one document into another, can you suggest a simple method to mark the insertion point, and find that insertion point?
In some cases the template has a partial sidebar (it’s a letterhead), so the text needs to begin before the end of the existing text, but indented, running alongside the left margin letterhead text. I never actually considered how Word does that, but no doubt you have. Can this be accomplished?
I will look further into the samples meantime.
Hi Velma,
Thanks for your inquiry.
It’s great you found what you are looking for. Regarding your template, if you are unable to get things to work, please feel free to attach it here and we will assist you.
Thanks,