IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Don't do it man! Don't do it!
This is an [link|http://support.microsoft.com/kb/q257757/|old article], but I think it still applies and gives a hint of a likely cause of your error message:

User Identity: Office Applications assume a user identity when they are run, even when they are started by Automation. They attempt to initialize toolbars, menus, options, printers, and some add-ins based on settings in the user registry hive for the user who launches the application. Many services run under accounts that have no user profiles (such as the SYSTEM or IWAM_[servername] accounts), and therefore Office may fail to initialize properly on startup, returning an error on CreateObject or CoCreateInstance. Even if the Office application can be started, without a user profile other functions may fail to work properly. If you plan to Automate Office from a service, you need to configure either your code or Office so that it will run with a loaded user profile.


I'd try to find a 3rd party library that can write into Word or RTF files, or if you can limit your support to Word 2003, look into WordML.

--
Chris Altmann
New So should I try the Crystal Reports option?
I've never used CR within a program. Do I create a screen that brings up a copy of the report, let the user fill it in, and then email/print it?

What's your recommendation?
lincoln

"Chicago to my mind was the only place to be. ... I above all liked the city because it was filled with people all a-bustle, and the clatter of hooves and carriages, and with delivery wagons and drays and peddlers and the boom and clank of freight trains. And when those black clouds came sailing in from the west, pouring thunderstorms upon us so that you couldn't hear the cries or curses of humankind, I liked that best of all. Chicago could stand up to the worst God had to offer. I understood why it was built--a place for trade, of course, with railroads and ships and so on, but mostly to give all of us a magnitude of defiance that is not provided by one house on the plains. And the plains is where those storms come from." -- E.L. Doctorow


Never apply a Star Trek solution to a Babylon 5 problem.


I am not merely a "consumer" or a "taxpayer". I am a Citizen of the United States.


[link|mailto:bconnors@ev1.net|contact me]
New Sure
You should be able to generate it server side. Here's an example that generates a PDF and returns it to the web user.
[link|http://msdn.microsoft.com/library/default.asp?url=/library/en-us/crystlmn/html/crtskexportingwebbasedreports.asp|http://msdn.microsof...bbasedreports.asp]

You would of course generate a Word doc and send it via email.

PS: Note that I haven't actually done this, but I might someday, so I looked into it.
--
Chris Altmann
     Requesting advice on how to do this - (lincoln) - (8)
         make word template, save as html doc - (boxley)
         Re: Requesting advice on how to do this - (SpiceWare) - (5)
             Tried it & got a security error - (lincoln) - (4)
                 Don't do it man! Don't do it! - (altmann) - (2)
                     So should I try the Crystal Reports option? - (lincoln) - (1)
                         Sure - (altmann)
                 This may help you - (broomberg)
         My solution - (lincoln)

Powered by a Commodore 64!
65 ms