.NET generation of Word Documents

S

Shannon Hardin

Several years ago, my company developed a document generation engine in VB6.
It installs on the server, and via late-binding, uses the Word object model
to take templates with merge fields and replace the merge fields with
information passed to the document generation component. It has several
advanced features, but that's the general gist of it.

Even at the time we developed it, we knew Microsoft didn't recommend it, due
to stability/interfacing problems. We pretty much solved all of that for
our situation, and it has been happily generating hundreds of documents a
day for several years now, with no particular problems. Licensing is not an
issue in our case, as all users have their own copies of Office on their
workstations, which appears to be a requirement to automate Word on a server
from client requests.

Recently, I came across another product, by Aspose. It claims to be able to
generate Word documents in a server environment without actually having Word
installed on the server. That intrigued me, and since we are looking into
upgrading our document generation component into .NET, I started researching
how it might be possible to generate Word documents from Word templates in a
server environment without actually having Word installed on the server.

Thus far, I haven't been able to figure out how it can be done. After
playing a little bit with the PIAs available for Office XP and 2003, they
both appear to require that Office is installed on the computer where the
program is running. As far as I can tell, aside from the 2003 XML spec, the
native Word file format is still proprietary.

How in the heck is it possible to do this, or does this Aspose company have
some sort of licensing agreement with Microsoft that gives them access to
the native file format?

Thanks,

Shannon
 
E

Evan Stone

Hello Shannon,
How in the heck is it possible to do this, or does this Aspose company have
some sort of licensing agreement with Microsoft that gives them access to
the native file format?

I think you answered your own question. I believe they have
reverse-engineered the Word file format, though probably independently from
Microsoft. Your best bet would be to just contact them and ask, especially
if you're going to be a potential customer. So if you find out more
information, follow up here and let us know what they're up to.

I too have looked at Aspose, and it may solve my needs for the next rev of
the product I'm working on. I have to do more tests with it, however, and I
just haven't had the time. My main concern is forward/backward compatibility
with versions of Word, and also it's unclear to me right now just how
"compatible" their format is (i.e. is it really 100% compatible?).

If anyone else has any further information on the Aspose Word control I'd
love to hear it as well.

Hope this helps!

evan k. stone | software engineer
 
E

Evan Stone

One more word of clarification...

Aspose Word is a .NET native component that generates Word documents, unlike
VSTO or the PIAs, which facilitate COM Automation of Word.

It's kind of like the difference between being the driver of a car vs. being
the car itself. ;)

HTH.

evan k. stone | software engineer
 
C

Cindy M -WordMVP-

Hi Shannon,

1. It is possible to obtain the "native" binary file format for Office
documents from Microsoft. There's a KB article

http://support.microsoft.com/default.aspx?scid=kb;en-us;840817

2. Keep an eye on the public announcements concerning Office 12 and try to get
on the Beta 2, if you're really interested. As is public information, XML is
going to be the default format for that version, and there's going to be a
converter available for ALL Word versions that will be able to open and save
this file format. As soon as that's available, you can generate files in XML
format to your heart's content :)
Recently, I came across another product, by Aspose. It claims to be able to
generate Word documents in a server environment without actually having Word
installed on the server. That intrigued me, and since we are looking into
upgrading our document generation component into .NET, I started researching
how it might be possible to generate Word documents from Word templates in a
server environment without actually having Word installed on the server.

Thus far, I haven't been able to figure out how it can be done. After
playing a little bit with the PIAs available for Office XP and 2003, they
both appear to require that Office is installed on the computer where the
program is running. As far as I can tell, aside from the 2003 XML spec, the
native Word file format is still proprietary.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 
E

Evan Stone

2. Keep an eye on the public announcements concerning Office 12 and try to
get
on the Beta 2, if you're really interested.

Do we have any idea as to whether the old COM automation methodolgies will
be valid for Office 12? I'd be willing to bet that they aren't, and maybe
you can't say if you're under NDA.

However, such information would be very helpful to have once it becomes
publicly available.

Perhaps I should try to get on the beta 2 program myself... where can we go
to inquire/sign up for it?

evan k. stone | software engineer
 
C

Cindy M -WordMVP-

Hi Evan,
Do we have any idea as to whether the old COM automation methodolgies will
be valid for Office 12?
Yes, we have an idea :) In a nutshell: don't worry.
Perhaps I should try to get on the beta 2 program myself... where can we go
to inquire/sign up for it?
I'll try to find out if there's an email address or website for this... Since
it's Friday, and I'll be offline over the weekend, I probably won't have an
answer for you before next week, sometime.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
S

Shannon Hardin

Excellent, thanks Evan and Cindy for the responses.

Cindy, that sounds just like what we need; since I have a currently
functioning product, I don't think I'll worry too much about .Net-ifying it
for awhile; I'll just wait until the new XML standard is released, and then
use that format. It sounds like a much better long-term solution.

Shannon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top