office interop - How to speed up generation of Word files from C#? -


I am working on an application that generates a large amount of word output. At present, we are using Word Interop services to produce documents, but it is quite slow, especially in older versions (pre-2007), we want to speed up generation.

I have not done so many profiles yet, but I have full faith that the problem is that we are making lots of com calls. I hope the setting will subscribe to slow-motion calls compared to others, but my stomach tells me that this is probably the question of com overhead (or word interop overhead), and not just a few slow calls. >

Apart from this, HTML can generate output, and this process (A) is very fast, and (b) uses a different sub-category as well as very codepath for a piece of HTML-specific functionality So I'm pretty sure our algorithm is not fundamentally slow.

So ... I'm looking for suggestions for alternate ways to speed up generation of Word files.

We can not just convert the generated HTML files into .doc, and we can not generate an RTF instead - in both cases, significant formatting information is lost, and in the RTF case, the inline graphics are strong Do not work from

One of the ways we are evaluating is a program that is a macro that knows how to use a flat file and to create the desired output from a template called Word File (Interop). Opening and Opening) We are interested in feedback about that approach, as well as any other suggestions to speed things up. If you can afford it, then I would recommend it. The word product is very fast and there is no need to install the word.

In addition, it is easy to use Office Interop as well.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -