473,394 Members | 1,693 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,394 software developers and data experts.

Automation of Word from .net 2

Hello,
I'm developing an intranet (win XP, .NET 2, Visual Studio 2005,
Microsoft.Office.Interop.Word.dll in references) and needed to
implement find-replace in word doc before sending letter and it worked
fine on my station.
I've go it fine on my station, and it doesn't work at all on the web
server.
1. What should be the configuration of the server? There is .net SDK
2 and I've installed the oxppia.exe there. And changed the permissions
in DCOMCNFG for Word doc for ASP.NET user.
Should I also install there Offce XP?

2. Do I undestand correctly, that using Office 2003 will require
purchasing VSTO also?

PLEASE answer my questions, I'm completely lost and we planned on
starting to work with the site next week.

Thanks in advance

Jan 29 '07 #1
22 2233
<li*********@gmail.comwrote in message
news:11**********************@h3g2000cwc.googlegro ups.com...
I'm developing an intranet (win XP, .NET 2, Visual Studio 2005,
Microsoft.Office.Interop.Word.dll in references)
Firstly, you really need to understand that server-side automation of Office
is not recommended at all to the extent that Microsoft won't actually
support any application which uses it:
http://support.microsoft.com/default...US;q257757#kb2

If you absolutely *have* to use Microsoft Word for what appears to be a
fairly simple mail function, then you need to consider a 3rd-party solution
like this:
http://www.aspose.com/Products/Aspos...s/Default.aspx

There are several other possible solutions:

1) Create the email as an HTML document. If you save it and give it a .doc
extension, Word will open it just like a native Word document

2) Use this:
http://www.microsoft.com/downloads/d...displaylang=en

3) If your email absolutely has to be in the form of an attachment, consider
using a PDF document instead of a Word document.
Jan 29 '07 #2
Thank you for your quick answer.

My requirements are very strict.
The intranet will be used with existing docs, so PDF is not an option.
The client wants to send word only (not html) because his clients
requests word.
3-rd party is not also an option :(

So I need to use Word.

Do I need Office on the server for the automation? Will Office XP
answer my problems?

I'm asking also about Office 2003 and VSTo (if it is a must or not for
office 2003) , since the system administrator at my client's office
have installed Office 2003 on the web server and it surely didn't help
me, since I'm using xp redistributables. Tried ti switch to Office
2003, but couldn't find any article about web sites without mentioning
VSTO, so I'm just lost and very stressed on this.
Sorry for the simple questions.

On Jan 29, 2:33 am, "Mark Rae" <m...@markNOSPAMrae.comwrote:
<liya.tan...@gmail.comwrote in messagenews:11**********************@h3g2000cwc.go oglegroups.com...
I'm developing an intranet (win XP, .NET 2, Visual Studio 2005,
Microsoft.Office.Interop.Word.dll in references)Firstly, you really need to understand that server-side automation of Office
is not recommended at all to the extent that Microsoft won't actually
support any application which uses it:http://support.microsoft.com/default...US;q257757#kb2

If you absolutely *have* to use Microsoft Word for what appears to be a
fairly simple mail function, then you need to consider a 3rd-party solution
like this:http://www.aspose.com/Products/Aspos...s/Default.aspx

There are several other possible solutions:

1) Create the email as an HTML document. If you save it and give it a .doc
extension, Word will open it just like a native Word document

2) Use this:http://www.microsoft.com/downloads/d...d=fe118952-354...

3) If your email absolutely has to be in the form of an attachment, consider
using a PDF document instead of a Word document.
Jan 29 '07 #3


On Jan 29, 12:57 am, liya.tan...@gmail.com wrote:
Thank you for your quick answer.

My requirements are very strict.
The intranet will be used with existing docs, so PDF is not an option.
The client wants to send word only (not html) because his clients
requests word.
3-rd party is not also an option :(

So I need to use Word.
You will need office on the server but as Mark pointed out you
shouldn't use Office automation on a webserver, I had the same issue
as you (tho I needed excel) from a server. After looking into and
having the problems which office automation has from aspnet it was
cheaper and easier to use the Aspose library. The cost, trouble and
lack of support of server side office automation means you should stay
clear of it (remebering you will require a license to install office
on the server). It is cheaper and far easier to go the 3rd party
route.

why is 3rd party not an option? If it's cost then IMO it would be
cheaper to purchase the aspose library and get something you know will
work and is supported.

Jan 29 '07 #4
<li*********@gmail.comwrote in message
news:11**********************@v33g2000cwv.googlegr oups.com...
The client wants to send word only (not html) because his clients
requests word.
You might find that they'd never know the difference! If they receive an
email with an attachment called e.g. Document.doc, what would they care if
it's actually an HTML document or a Word document...? When they click it, it
will display in Word just like a native Word document...
So I need to use Word.
Best of luck, then...
Do I need Office on the server for the automation?
Probably - how many licenses have you got...?
Will Office XP answer my problems?
I have no idea...
I'm asking also about Office 2003 and VSTo
Hasn't that already been discontinued...?
http://forums.microsoft.com/MSDN/Sho...06730&SiteID=1
since the system administrator at my client's office have installed Office
2003
on the web server
Wow!
so I'm just lost and very stressed on this.
I appreciate that. However, you asked for advice and I gave it - I can't
help it if it's not what you wanted to hear...

You say you're stressed now - if you do go down this route, I can guarantee
you're going to get a lot more stressed as soon as your site goes live...

Office automation is not designed for this scenario. Please read the
Microsoft article again:
http://support.microsoft.com/default...US;q257757#kb2
Jan 29 '07 #5
Thank you for your time.
Unfortunately, I have given documents that I need to send more then
once with different changes ( to different clients),
so I'll continue with the headache :))

THank you again

On Jan 29, 3:32 am, "Mark Rae" <m...@markNOSPAMrae.comwrote:
<liya.tan...@gmail.comwrote in messagenews:11**********************@v33g2000cwv.g ooglegroups.com...
The client wants to send word only (not html) because his clients
requests word.You might find that they'd never know the difference! If they receive an
email with an attachment called e.g. Document.doc, what would they care if
it's actually an HTML document or a Word document...? When they click it, it
will display in Word just like a native Word document...
So I need to use Word.Best of luck, then...
Do I need Office on the server for the automation?Probably - how many licenses have you got...?
Will Office XP answer my problems?I have no idea...
I'm asking also about Office 2003 and VSToHasn't that already been discontinued...?http://forums.microsoft.com/MSDN/Sho...06730&SiteID=1
since the system administrator at my client's office have installed Office
2003
on the web serverWow!
so I'm just lost and very stressed on this.I appreciate that. However, you asked for advice and I gave it - I can't
help it if it's not what you wanted to hear...

You say you're stressed now - if you do go down this route, I can guarantee
you're going to get a lot more stressed as soon as your site goes live...

Office automation is not designed for this scenario. Please read the
Microsoft article again:http://support.microsoft.com/default...US;q257757#kb2
Jan 29 '07 #6
There are many ways to generate Word documents without using COM automation
on the server (which is not recommended.)
Here are more details on generated Word (and Excel) documents:
http://SteveOrr.net/articles/ExportPanel.aspx
http://SteveOrr.net/articles/ExportPanel.aspx

Here are some decent 3rd party options that can help with opening existing
Word docs and modifying the content before sending it out:
http://SteveOrr.net/reviews/AsposeWord.aspx
http://SteveOrr.net/reviews/OfficeWriter.aspx

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
<li*********@gmail.comwrote in message
news:11**********************@h3g2000cwc.googlegro ups.com...
Hello,
I'm developing an intranet (win XP, .NET 2, Visual Studio 2005,
Microsoft.Office.Interop.Word.dll in references) and needed to
implement find-replace in word doc before sending letter and it worked
fine on my station.
I've go it fine on my station, and it doesn't work at all on the web
server.
1. What should be the configuration of the server? There is .net SDK
2 and I've installed the oxppia.exe there. And changed the permissions
in DCOMCNFG for Word doc for ASP.NET user.
Should I also install there Offce XP?

2. Do I undestand correctly, that using Office 2003 will require
purchasing VSTO also?

PLEASE answer my questions, I'm completely lost and we planned on
starting to work with the site next week.

Thanks in advance
Jan 29 '07 #7
<li*********@gmail.comwrote in message
news:11*********************@p10g2000cwp.googlegro ups.com...
Unfortunately, I have given documents that I need to send more then
once with different changes ( to different clients),
You really don't get it, do you...?
so I'll continue with the headache :))
It's going to get much, much worse once your site goes live - you do *know*
that, don't you...?

I wonder how your clients would feel about you if they knew that you are
continuing to pursue a development strategy which in all likelihood will not
work properly...?
Jan 29 '07 #8
"Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <St***@Orr.netwrote in
message news:B2**********************************@microsof t.com...
There are many ways to generate Word documents without using COM
automation on the server (which is not recommended.)
The OP has already been given these recommendations but has chosen to ignore
them in favour of COM automation in the full knowledge that there is more
than a good chance that it will not work...
Jan 29 '07 #9
Mark,

I agree with you that it's not a good idea.
But, it could work if his scalability requirements are VERY low and he has
excellent error recovery in place...

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:OY******************@TK2MSFTNGP05.phx.gbl...
<li*********@gmail.comwrote in message
news:11*********************@p10g2000cwp.googlegro ups.com...
>Unfortunately, I have given documents that I need to send more then
once with different changes ( to different clients),

You really don't get it, do you...?
>so I'll continue with the headache :))

It's going to get much, much worse once your site goes live - you do
*know* that, don't you...?

I wonder how your clients would feel about you if they knew that you are
continuing to pursue a development strategy which in all likelihood will
not work properly...?
Jan 29 '07 #10
Mark,

I agree with you that it's not a good idea.
But, it could work if his scalability requirements are VERY low and he has
excellent error recovery in place...

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:uN*************@TK2MSFTNGP06.phx.gbl...
"Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <St***@Orr.netwrote in
message news:B2**********************************@microsof t.com...
>There are many ways to generate Word documents without using COM
automation on the server (which is not recommended.)

The OP has already been given these recommendations but has chosen to
ignore them in favour of COM automation in the full knowledge that there
is more than a good chance that it will not work...
Jan 29 '07 #11
"Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <St***@Orr.netwrote in
message news:EF**********************************@microsof t.com...
I agree with you that it's not a good idea.
But, it could work if his scalability requirements are VERY low and he has
excellent error recovery in place...
Of course - but surely nobody in their right mind would ever contemplate a
solution which only "could" work...?
Jan 29 '07 #12
I agree. I have done a lot of work with word automation from within asp.net
and its not a good idea at all.

The only safe way is to queue the jobs in asp.net and work out a way of
processing them singularly, within a desktop environment where it belongs.
Create some form of wordserver application that can access the data on the
asp.net server and seperate the activities.

--
--
Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
"Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <St***@Orr.netwrote in
message news:C7**********************************@microsof t.com...
Mark,

I agree with you that it's not a good idea.
But, it could work if his scalability requirements are VERY low and he has
excellent error recovery in place...

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:uN*************@TK2MSFTNGP06.phx.gbl...
>"Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <St***@Orr.netwrote in
message news:B2**********************************@microsof t.com...
>>There are many ways to generate Word documents without using COM
automation on the server (which is not recommended.)

The OP has already been given these recommendations but has chosen to
ignore them in favour of COM automation in the full knowledge that there
is more than a good chance that it will not work...

Jan 29 '07 #13
"John Timney (MVP)" <x_****@timney.eclipse.co.ukwrote in message
news:Su******************************@eclipse.net. uk...
>I agree. I have done a lot of work with word automation from within
asp.net and its not a good idea at all.
I have a feeling none of this will make very much difference to the OP,
though...:-)
The only safe way is to queue the jobs in asp.net and work out a way of
processing them singularly, within a desktop environment where it belongs.
Create some form of wordserver application that can access the data on the
asp.net server and seperate the activities.
Unless the documents are incredibly complex, I've always found the HTML
approach to be the most efficient - give it a .doc extension, and the
recipient of the email will have no idea that it's not a native Word
document...
Jan 29 '07 #14
On Jan 29, 12:02 pm, "Mark Rae" <m...@markNOSPAMrae.comwrote:
"John Timney (MVP)" <x_j...@timney.eclipse.co.ukwrote in messagenews:Su******************************@eclip se.net.uk...
I agree. I have done a lot of work with word automation from within
asp.net and its not a good idea at all.I have a feeling none of this will make very much difference to the OP,
though...:-)
The only safe way is to queue the jobs in asp.net and work out a way of
processing them singularly, within a desktop environment where it belongs.
Create some form of wordserver application that can access the data on the
asp.net server and seperate the activities.Unless the documents are incredibly complex, I've always found the HTML
approach to be the most efficient - give it a .doc extension, and the
recipient of the email will have no idea that it's not a native Word
document...
Couldn't another possibility be to use Word 2007 format, since it's
xml based this should cause no problems and allow the OP to write the
code themselve instead of using 3rd party (still far too much work and
time than needed). Of course this would require either Office 2007
installed on the client or the docx plugin for Office 2003. Tho the
requirement for it to work with existing documents would probably make
this not an option.

I don't get people who ask for advice and never listen to it.

Jan 29 '07 #15
"Luke" <me@lukesmith.netwrote in message
news:11**********************@q2g2000cwa.googlegro ups.com...
Couldn't another possibility be to use Word 2007 format, since it's
xml based this should cause no problems and allow the OP to write the
code themselve instead of using 3rd party (still far too much work and
time than needed).
Yes.
Of course this would require either Office 2007 installed on the client
or the docx plugin for Office 2003. Tho the requirement for it to work
with existing documents would probably make this not an option.
Depends on your perspective, I guess...
I don't get people who ask for advice and never listen to it.
It's incredible...
Jan 29 '07 #16

not very nice I'd say.
learnt a lot from the discussion and 'll try to change as much as I
could.
but one thing: I'll try to stay away from the groups, didn't like your
approach of "go to the corner".
You should be very proud of yourself being an expert. I've just asked
about something that never touched and never heard before.

on the over hand, why am I bothering teaching someone manners?
On Jan 29, 7:41 pm, "Mark Rae" <m...@markNOSPAMrae.comwrote:
"Luke" <m...@lukesmith.netwrote in messagenews:11**********************@q2g2000cwa.go oglegroups.com...
Couldn't another possibility be to use Word 2007 format, since it's
xml based this should cause no problems and allow the OP to write the
code themselve instead of using 3rd party (still far too much work and
time than needed).Yes.
Of course this would require either Office 2007 installed on the client
or the docx plugin for Office 2003. Tho the requirement for it to work
with existing documents would probably make this not an option.Depends on your perspective, I guess...
I don't get people who ask for advice and never listen to it.It's incredible...
Jan 29 '07 #17

I do listen, I just don't have the money for 3rd party and licences
for Office (xp and 2003) already purchased.
We planned to start using the automation and then to choose our
strategy, since there are many limitations of time
Also we are talking about intranet (not more then 30 users).
I'll have a hardtime persuading the client to switch the strategy
right now.

On Jan 29, 7:27 pm, "Luke" <m...@lukesmith.netwrote:
On Jan 29, 12:02 pm, "Mark Rae" <m...@markNOSPAMrae.comwrote:
"John Timney (MVP)" <x_j...@timney.eclipse.co.ukwrote in messagenews:Su******************************@eclip se.net.uk...
>I agree. I have done a lot of work with word automation from within
>asp.net and its not a good idea at all.I have a feeling none of this will make very much difference to the OP,
though...:-)
The only safe way is to queue the jobs in asp.net and work out a way of
processing them singularly, within a desktop environment where it belongs.
Create some form of wordserver application that can access the data on the
asp.net server and seperate the activities.Unless the documents are incredibly complex, I've always found the HTML
approach to be the most efficient - give it a .doc extension, and the
recipient of the email will have no idea that it's not a native Word
document...Couldn't another possibility be to use Word 2007 format, since it's
xml based this should cause no problems and allow the OP to write the
code themselve instead of using 3rd party (still far too much work and
time than needed). Of course this would require either Office 2007
installed on the client or the docx plugin for Office 2003. Tho the
requirement for it to work with existing documents would probably make
this not an option.

I don't get people who ask for advice and never listen to it.
Jan 29 '07 #18

Hi, thank you for your answer.
unfortunately investing more money right now is not an option for my
client,
so it might happen that Office is the only choise right now.
I'm checking your exmples

On Jan 29, 9:48 am, "Steve C. Orr [MCSD, MVP, CSM, ASP Insider]"
<S...@Orr.netwrote:
There are many ways to generate Word documents without using COM automation
on the server (which is not recommended.)
Here are more details on generated Word (and Excel) documents:http://SteveOrr.net/articles/ExportP...portPanel.aspx

Here are some decent 3rd party options that can help with opening existing
Word docs and modifying the content before sending it out:http://SteveOrr.net/reviews/AsposeWo...iceWriter.aspx

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsiderhttp://SteveOrr.net

<liya.tan...@gmail.comwrote in messagenews:11**********************@h3g2000cwc.go oglegroups.com...
Hello,
I'm developing an intranet (win XP, .NET 2, Visual Studio 2005,
Microsoft.Office.Interop.Word.dll in references) and needed to
implement find-replace in word doc before sending letter and it worked
fine on my station.
I've go it fine on my station, and it doesn't work at all on the web
server.
1. What should be the configuration of the server? There is .net SDK
2 and I've installed the oxppia.exe there. And changed the permissions
in DCOMCNFG for Word doc for ASP.NET user.
Should I also install there Offce XP?
2. Do I undestand correctly, that using Office 2003 will require
purchasing VSTO also?
PLEASE answer my questions, I'm completely lost and we planned on
starting to work with the site next week.
Thanks in advance
Jan 29 '07 #19

hi, thank you for your answer.
Could you please point me to some articles explaining your advise?
It would be of great help.
Sorry for the late answer , didn't see your answer before.

On Jan 29, 1:34 pm, "John Timney \(MVP\)"
<x_j...@timney.eclipse.co.ukwrote:
I agree. I have done a lot of work with word automation from within asp.net
and its not a good idea at all.

The only safe way is to queue the jobs in asp.net and work out a way of
processing them singularly, within a desktop environment where it belongs.
Create some form of wordserver application that can access the data on the
asp.net server and seperate the activities.

--
--
Regards

John Timney (MVP)http://www.johntimney.comhttp://www.johntimney.com/blog

"Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <S...@Orr.netwrote in
messagenews:C7**********************************@m icrosoft.com...
Mark,
I agree with you that it's not a good idea.
But, it could work if his scalability requirements are VERY low and he has
excellent error recovery in place...
--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"Mark Rae" <m...@markNOSPAMrae.comwrote in message
news:uN*************@TK2MSFTNGP06.phx.gbl...
"Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <S...@Orr.netwrote in
messagenews:B2**********************************@m icrosoft.com...
>There are many ways to generate Word documents without using COM
automation on the server (which is not recommended.)
The OP has already been given these recommendations but has chosen to
ignore them in favour of COM automation in the full knowledge that there
is more than a good chance that it will not work...
Jan 29 '07 #20
<li*********@gmail.comwrote in message
news:11**********************@p10g2000cwp.googlegr oups.com...
I do listen,
You obviously don't...
I'll have a hardtime persuading the client to switch the strategy
right now.
And what will you say to your client when your application doesn't work...?
You'll have a much harder time then, won't you...!

Your original post asked for help implementing server-side Office
automation.

You were advised my several people, some much more experienced and
well-respected than me, that this strategy will almost certainly not work
because it's simply not designed to work this way.

I provided you with a link to a Microsoft article explaining this in much
greater detail, why they do not recommend this approach, and how they will
not support any application which uses it...

You didn't like this... No doubt it will be very embarrassing at this late
stage for you to go to your client and tell them that your lack of
experience has led you to designing a solution which will almost certainly
never work. If you're lucky, maybe all they will do is terminate your
contract and not pay you - if you're very unlucky, maybe they will sue you
for professional negligence - there's not much anybody here can do about
that...

You're the only person who can fix this...

Several alternative solutions have been offered to you, some of them
COMPLETELY FREE.

You don't have to choose any of them.

There's an expression in English which says: "There's none so blind as those
who will not see."

Best of luck to you - you're really going to need it... :-)
Jan 30 '07 #21
The concept is quite simple really. Your document uploads, data capture
(email) etc etc. are done using asp.net and the role of asp.net pretty much
ends there. Its job is to accept work and stick it in a queue.

Another machine processes the queue sequentially and returns the processed
work to the initiator. On a busy site there is a wait period, so the
replies are normally by email. As the jobs are sequential, your single
instance of office should easily cope. To scale out the solution, add more
job servers.

As people have pointed out, word is not best suited for automation on web
servers - so think outside the box and remove that specific element of the
problem.

--
Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
<li*********@gmail.comwrote in message
news:11*********************@k78g2000cwa.googlegro ups.com...
>
hi, thank you for your answer.
Could you please point me to some articles explaining your advise?
It would be of great help.
Sorry for the late answer , didn't see your answer before.

On Jan 29, 1:34 pm, "John Timney \(MVP\)"
<x_j...@timney.eclipse.co.ukwrote:
>I agree. I have done a lot of work with word automation from within
asp.net
and its not a good idea at all.

The only safe way is to queue the jobs in asp.net and work out a way of
processing them singularly, within a desktop environment where it
belongs.
Create some form of wordserver application that can access the data on
the
asp.net server and seperate the activities.

--
--
Regards

John Timney (MVP)http://www.johntimney.comhttp://www.johntimney.com/blog

"Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <S...@Orr.netwrote in
messagenews:C7**********************************@ microsoft.com...
Mark,
I agree with you that it's not a good idea.
But, it could work if his scalability requirements are VERY low and he
has
excellent error recovery in place...
--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"Mark Rae" <m...@markNOSPAMrae.comwrote in message
news:uN*************@TK2MSFTNGP06.phx.gbl...
"Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <S...@Orr.netwrote in
messagenews:B2**********************************@ microsoft.com...
>>There are many ways to generate Word documents without using COM
automation on the server (which is not recommended.)
>The OP has already been given these recommendations but has chosen to
ignore them in favour of COM automation in the full knowledge that
there
is more than a good chance that it will not work...

Jan 30 '07 #22
This queueing strategy seems like the best advice anyone came up with
for this question. Of course, her client isn't going to like it
because the emails will be delayed a few minutes. I wish her the best
of luck explaining why it has to be that way.

As for the rest of you... have you never had a client insist on using
a product or an implementation strategy that really wasn't the best
way to go? You give them the best advice you can, then you do what
they want to the best of their ability and if it works at all you take
their money. Particularly when integrating legacy software or
documents, you may not get much choice about formats.

On Jan 30, 5:04 am, "John Timney \(MVP\)"
<x_j...@timney.eclipse.co.ukwrote:
The concept is quite simple really. Your document uploads, data capture
(email) etc etc. are done using asp.net and the role of asp.net pretty much
ends there. Its job is to accept work and stick it in a queue.

Another machine processes the queue sequentially and returns the processed
work to the initiator. On a busy site there is a wait period, so the
replies are normally by email. As the jobs are sequential, your single
instance of office should easily cope. To scale out the solution, add more
job servers.

As people have pointed out, word is not best suited for automation on web
servers - so think outside the box and remove that specific element of the
problem.

--
Regards

John Timney (MVP)http://www.johntimney.comhttp://www.johntimney.com/blog

<liya.tan...@gmail.comwrote in messagenews:11*********************@k78g2000cwa.go oglegroups.com...


hi, thank you for your answer.
Could you please point me to some articles explaining your advise?
It would be of great help.
Sorry for the late answer , didn't see your answer before.
On Jan 29, 1:34 pm, "John Timney \(MVP\)"
<x_j...@timney.eclipse.co.ukwrote:
I agree. I have done a lot of work with word automation from within
asp.net
and its not a good idea at all.
The only safe way is to queue the jobs in asp.net and work out a way of
processing them singularly, within a desktop environment where it
belongs.
Create some form of wordserver application that can access the data on
the
asp.net server and seperate the activities.
--
--
Regards
John Timney (MVP)http://www.johntimney.comhttp://www.johntimney.com/blog
"Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <S...@Orr.netwrote in
messagenews:C7**********************************@m icrosoft.com...
Mark,
I agree with you that it's not a good idea.
But, it could work if his scalability requirements are VERY low and he
has
excellent error recovery in place...
--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"Mark Rae" <m...@markNOSPAMrae.comwrote in message
news:uN*************@TK2MSFTNGP06.phx.gbl...
"Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <S...@Orr.netwrote in
messagenews:B2**********************************@m icrosoft.com...
>There are many ways to generate Word documents without using COM
automation on the server (which is not recommended.)
The OP has already been given these recommendations but has chosen to
ignore them in favour of COM automation in the full knowledge that
there
is more than a good chance that it will not work...- Hide quoted text -- Show quoted text -
Jan 30 '07 #23

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

Similar topics

1
by: mickeydisn | last post by:
Sub: C++ Word automation Extract text hello. I want extact text form a word document using a visual c++ programme. I have see a lot of documentation. and my analysis is that I must use a...
25
by: Neil Ginsberg | last post by:
I have a strange situation with my Access 2000 database. I have code in the database which has worked fine for years, and now all of a sudden doesn't work fine on one or two of my client's...
12
by: Cheval | last post by:
Has anyone had any problems with inter-office automation between MS Word and MS Access in Office 2003? I have recently installed office 2003 in a new folder and have left the older office 2000...
3
by: TR | last post by:
Hi, We have some code that uses automation to create/manipulate word documents. This runs in a batch mode, generating dozens of documents in sequence. The code works great, but while the...
21
by: Neil | last post by:
Is there a way to trap an error generated in another app that is controlled via automation? I have an Access 2000 app that opens Word 2000 and proceeds to open a series of documents and, in each...
2
by: kids | last post by:
Does anybody know any reason which could cause Ms. word automation to crash? I try to call word automation to open a document and use find and replace function. For some reason it works but I...
4
by: Daniel | last post by:
Hello, i have a problem with the word automation from c#. First, i want to mention, that i don't have any dependencies from word in my c#-project, i want to use the system.reflection model to...
3
by: perspolis | last post by:
I want to use automation property in my program like Insert Object in Microsoft word. The automation is for Autocad. Does anyone has a sample program or plz instruct me?
2
by: William LaMartin | last post by:
I have created a program that allows for the automation of things in Word documents, like changing the values of DocVariables and the links to Excel Sheets. I did it using interoperoperatability,...
10
by: cj2 | last post by:
I open a word template in VB and add values to the bookmarks then save the document as as pdf. When I then go to close the document it pops up a save as dialog box. It's already saved the...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.