473,387 Members | 1,664 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

MS Word Modification in ASP

Dear all,

am trying to modify a word document, following is what i intend to do.

1. Open the Word document on the server.
2. Goto the First line
3. From there go to the first Table
4. start inserting data in the Table Cell one after another
5. Save and close the file
6. give the user a link of file on the server.

Following is the code

Set wrdobj = Server.CreateObject("Word.application")
wrdobj.Documents.Open ("dup_letter.doc")
WRD.Selection.GoTo what:=wdLine, which:=wdGoToAbsolute, Count:=1
WRD.Selection.GoTo what:=wdGoToTable, which:=wdGoToAbsolute, Count:=1

Following is the error encountered

ASP 1077

Server.CreateObject Failed

Invalid ProgID. For additional information specific to this message
please visit the Microsoft Online Support site located at:
http://www.microsoft.com/contentredirect.asp.

Please HELP..... :(

Thanks & Regards,
Niraj

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #1
10 3060
"Niraj Khandwala" <kn****@vsnl.net> wrote in message
news:uq**************@TK2MSFTNGP12.phx.gbl...
Dear all,

am trying to modify a word document, following is what i intend to do.

1. Open the Word document on the server.
2. Goto the First line
3. From there go to the first Table
4. start inserting data in the Table Cell one after another
5. Save and close the file
6. give the user a link of file on the server.

Following is the code

Set wrdobj = Server.CreateObject("Word.application")
wrdobj.Documents.Open ("dup_letter.doc")
WRD.Selection.GoTo what:=wdLine, which:=wdGoToAbsolute, Count:=1
WRD.Selection.GoTo what:=wdGoToTable, which:=wdGoToAbsolute, Count:=1

Following is the error encountered

ASP 1077

Server.CreateObject Failed

Invalid ProgID.


Probably means you don't have Word installed on the server. See also:
http://support.microsoft.com/?kbid=257757

--
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserv...y/centers/iis/
http://mvp.support.microsoft.com/
http://www.iisfaq.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://www.tryiis.com
Jul 19 '05 #2
Thanks Tom ,
but Ms Office 2000 is installed on the server. now i guess there's a
problem with the IUSR_macname or IWAM_macname user . but what kind of
rights needs to be given in order to enable them to create object.

went thur the suggested article and found that this is not the best
method for office automation.

but my objective is that you create templates and keep so for any minor
changes we donot have to touch the code. changing the template will take
care of most of the things. what do you suggest.

many thanks for your help

Thanks & Regards,
Niraj

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #3
"Niraj Khandwala" <kn****@vsnl.net> wrote in message
news:eh**************@TK2MSFTNGP12.phx.gbl...
Thanks Tom ,
but Ms Office 2000 is installed on the server. now i guess there's a
problem with the IUSR_macname or IWAM_macname user . but what kind of
rights needs to be given in order to enable them to create object.

went thur the suggested article and found that this is not the best
method for office automation.

but my objective is that you create templates and keep so for any minor
changes we donot have to touch the code. changing the template will take
care of most of the things. what do you suggest.


Since it's not supported and a nightmare to implement, I suggest finding an
alternate architecture ...

--
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserv...y/centers/iis/
http://mvp.support.microsoft.com/
http://www.iisfaq.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://www.tryiis.com
Jul 19 '05 #4
hi Tom, i got the whole of Ms Office 2000 reinstalled and it worked but
now another error

ASP 1077 8001010A
The message filter indicated that the application is busy.

this is probably because of the anti-virus software installed, the
Microsoft say its only with Norton but we have MacAfee installed.

am now looking at the RTF solution but seems to be very difficult of
convert my existing templates to RTF and specially if there is any
modification in the templates.

Pls advise

Thanks & Regards,
Niraj

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #5
"Niraj Khandwala" <kn****@vsnl.net> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
hi Tom, i got the whole of Ms Office 2000 reinstalled and it worked but
now another error

ASP 1077 8001010A
The message filter indicated that the application is busy.

this is probably because of the anti-virus software installed, the
Microsoft say its only with Norton but we have MacAfee installed.

am now looking at the RTF solution but seems to be very difficult of
convert my existing templates to RTF and specially if there is any
modification in the templates.

Pls advise


I don't know what else I can advise you. I'm not intimately familiar with
all of the details from your project, nor is this the right forum for
getting it.

The last thing I can suggest is maybe use HTML format for your document -
but I can't write the app for you.

--
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserv...y/centers/iis/
http://mvp.support.microsoft.com/
http://www.iisfaq.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://www.tryiis.com
Jul 19 '05 #6
> am now looking at the RTF solution but seems to be very difficult of
convert my existing templates to RTF and specially if there is any
modification in the templates.


You can have a look at myLittleWriter, a windows script component
which allows to generate RTF on-the-fly from any ASP pages
http://www.myLittleTools.net/mlw
Hope this helps
Elian Chrebor
Jul 19 '05 #7
Elian, thanks a lot.. but using third party will require a lot of
approvals and stuf in the organization. will still try.

Tom,
- which is the alternative.
- no i did not want any one to prepare any application for me, am jus
trying to understand a quick and reliable option for creating /
generating letters from ASP.
- thought for all ASP related problems, this was the forum, can you pls
let me know which other forum to try.

thanks for all that.

Thanks & Regards,
Niraj

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #8
In article <e$**************@tk2msftngp13.phx.gbl>, Niraj Khandwala
<kn****@vsnl.net> writes
am jus trying to understand a quick and reliable option for creating /
generating letters from ASP


Then don't use Word on a server. Office applications were designed as
desktop apps, they use loads of resources and are simply not suitable
for running on a server.

What happens if you get a few requests at the same time ? You can bring
the server to its knees pretty easily that way. Word just isn't the
right tool for the job.

HTH

--
Alan Silver
(anything added below this line is nothing to do with me)
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 19 '05 #9
Sounds like you're using it to maybe run reports? If this is the case,
there's a nice web app out there called Reports.NET. As the name suggests,
it is a .NET assembly (which may or may not work for your situation.) It
generates PDF files.

Description: http://report.sourceforge.net

Download: http://sourceforge.net/projects/report
My opinion is the same as the others that have posted to your
question......it will probably take some considerable coding to use
Word...especially with how cumbersome the COM interface to Office is.


"Alan Silver" <al*********@nospam.thanx> wrote in message
news:fd**************@nospamthankyou.spam...
In article <e$**************@tk2msftngp13.phx.gbl>, Niraj Khandwala
<kn****@vsnl.net> writes
am jus trying to understand a quick and reliable option for creating /
generating letters from ASP


Then don't use Word on a server. Office applications were designed as
desktop apps, they use loads of resources and are simply not suitable
for running on a server.

What happens if you get a few requests at the same time ? You can bring
the server to its knees pretty easily that way. Word just isn't the
right tool for the job.

HTH

--
Alan Silver
(anything added below this line is nothing to do with me)
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----

Jul 19 '05 #10
"Niraj Khandwala" <kn****@vsnl.net> wrote in message
news:e$**************@tk2msftngp13.phx.gbl...
Tom,
- which is the alternative.


As I said before - HTML instead of Word.

Jul 19 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: leegold2 | last post by:
I have been looking for a php word wrap function. I know there's an official PHP function but I've tried that and many of the functions contributed on that php.net page and none do what I...
3
by: Andy | last post by:
I am trying to do the following from an ASP.NET Web Application (C#). User fills out a form. The program takes those answers and merges them with a WORD document. I have tried the few examples...
4
by: larry | last post by:
Hi, I would like to use window search to search a word in C# CS file which create by visual studio. But I can never get that word in the cs file. for example, I used a name space:...
56
by: Richard Grene | last post by:
using Word automation from vb.net how can I get to the bottom of the document? Thanks, Richard
0
by: senthilavs | last post by:
Hi, Im having word document in the Server Machine. While im trying to open the file in Client Machine file is opening in Server only. I need to open in the client only. This is an ASP.NET project...
0
by: jleiva | last post by:
Hi Everyone, I created a word template, now I want to add a macro or vb programming that will do the following. After a user create a new document from a template (not Normal.dot), the user...
2
by: PhilOwens | last post by:
Hi all, I was hoping that someone could point me in the right direction or if nothing more, tell me that I am attempting the impossible (which I think I very well might be). Quick overview - I...
2
by: Unpopular | last post by:
void directory::modification()//??????????? { clrscr(); cout<< "\n\t @@@@@@ @@@@@ @@@@@ @@@@@@ @@@@@ @ @ @@@@@@ "; cout<< "\n\t=====@ @ @ @ @ @ @@...
6
by: Flyzone | last post by:
Hello, i'm trying to paste copied text from word into an input box. This text is saved into a oracle db and then used as text in another javascript. The problem is that using the saved text...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.