473,406 Members | 2,769 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,406 software developers and data experts.

Server Side Word Application

I'm trying to create a server side application (through a web front end)

that allows me to print specific documents from the server

im using:

Dim wordapp = New Word.Application

and have added the word reference (and installed word on the server)

the problem i have is that when i run the above code i get an:

Access is denied.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more information
about the error and where it originated in the code.

any help with this would be greatly appreciated as ive hit a brick wall with
things to try

thanks in advance

Mike Fellows
Nov 18 '05 #1
9 1478
If you know the doc name and the location of the doc why open word, just
send the doc to the printer?
I'm doing the exact same thing but with PDF docs using BizTalk
"Mike Fellows" <mi***************@equityhouse.co.uk> wrote in message
news:np*************@newsfe3-win.server.ntli.net...
I'm trying to create a server side application (through a web front end)

that allows me to print specific documents from the server

im using:

Dim wordapp = New Word.Application

and have added the word reference (and installed word on the server)

the problem i have is that when i run the above code i get an:

Access is denied.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

any help with this would be greatly appreciated as ive hit a brick wall with things to try

thanks in advance

Mike Fellows

Nov 18 '05 #2
I cant do that as i need to edit some bookmarks within the word document
otherwise it would be great

Mike Fellows
"Mike" <an*******@discussions.microsoft.com> wrote in message
news:uQ**************@TK2MSFTNGP10.phx.gbl...
If you know the doc name and the location of the doc why open word, just
send the doc to the printer?
I'm doing the exact same thing but with PDF docs using BizTalk
"Mike Fellows" <mi***************@equityhouse.co.uk> wrote in message
news:np*************@newsfe3-win.server.ntli.net...
I'm trying to create a server side application (through a web front end)

that allows me to print specific documents from the server

im using:

Dim wordapp = New Word.Application

and have added the word reference (and installed word on the server)

the problem i have is that when i run the above code i get an:

Access is denied.
Description: An unhandled exception occurred during the
execution of
the current web request. Please review the stack trace for more

information
about the error and where it originated in the code.

any help with this would be greatly appreciated as ive hit a brick wall

with
things to try

thanks in advance

Mike Fellows


Nov 18 '05 #3
You can create ActiveX word object on client side and manipulate the bookmarks.
Nov 18 '05 #4
I just had the same with Excel.
I think that the solution is just to add a web.config file in the same
folder as your aspx with the code:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<identity impersonate="true"/>
</system.web>
</configuration>

"Mike Fellows" <mi***************@equityhouse.co.uk> a écrit dans le message
de news:np*************@newsfe3-win.server.ntli.net...
I'm trying to create a server side application (through a web front end)

that allows me to print specific documents from the server

im using:

Dim wordapp = New Word.Application

and have added the word reference (and installed word on the server)

the problem i have is that when i run the above code i get an:

Access is denied.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

any help with this would be greatly appreciated as ive hit a brick wall with things to try

thanks in advance

Mike Fellows

Nov 18 '05 #5
Thanks
i will give that a goo

Mike Fellows

"Franky" <fn*****@lcf-com.removethis.com> wrote in message
news:uH**************@TK2MSFTNGP11.phx.gbl...
I just had the same with Excel.
I think that the solution is just to add a web.config file in the same
folder as your aspx with the code:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<identity impersonate="true"/>
</system.web>
</configuration>

"Mike Fellows" <mi***************@equityhouse.co.uk> a écrit dans le message de news:np*************@newsfe3-win.server.ntli.net...
I'm trying to create a server side application (through a web front end)

that allows me to print specific documents from the server

im using:

Dim wordapp = New Word.Application

and have added the word reference (and installed word on the server)

the problem i have is that when i run the above code i get an:

Access is denied.
Description: An unhandled exception occurred during the
execution of
the current web request. Please review the stack trace for more

information
about the error and where it originated in the code.

any help with this would be greatly appreciated as ive hit a brick wall

with
things to try

thanks in advance

Mike Fellows


Nov 18 '05 #6
Bin,

could you point me to a document explaining how to do this client side?

Thanks

Mike
"Bin Song, MCP" <an*******@discussions.microsoft.com> wrote in message
news:00**********************************@microsof t.com...
You can create ActiveX word object on client side and manipulate the

bookmarks.
Nov 18 '05 #7
Franky,

this then opens word on the server, but it seems impossible to manipulate
i cant even set the word object to visible

Thanks

Mike
"Franky" <fn*****@lcf-com.removethis.com> wrote in message
news:uH**************@TK2MSFTNGP11.phx.gbl...
I just had the same with Excel.
I think that the solution is just to add a web.config file in the same
folder as your aspx with the code:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<identity impersonate="true"/>
</system.web>
</configuration>

"Mike Fellows" <mi***************@equityhouse.co.uk> a écrit dans le message de news:np*************@newsfe3-win.server.ntli.net...
I'm trying to create a server side application (through a web front end)

that allows me to print specific documents from the server

im using:

Dim wordapp = New Word.Application

and have added the word reference (and installed word on the server)

the problem i have is that when i run the above code i get an:

Access is denied.
Description: An unhandled exception occurred during the
execution of
the current web request. Please review the stack trace for more

information
about the error and where it originated in the code.

any help with this would be greatly appreciated as ive hit a brick wall

with
things to try

thanks in advance

Mike Fellows


Nov 18 '05 #8
Please see:
HOWTO: Automate Excel from an HTML Web Page Using JScript
http://support.microsoft.com/default...b;en-us;234774

Nov 18 '05 #9
Yes, I got the same problem with Excel.
The only solution I find (for Excel) is to install Excel 2003 instead of
Excel XP. And I posted a news concerning Excel XP...

"Mike Fellows" <mi***************@equityhouse.co.uk> a écrit dans le message
de news:xEmvc.37$An.15@newsfe6-win...
Franky,

this then opens word on the server, but it seems impossible to manipulate
i cant even set the word object to visible

Thanks

Mike
"Franky" <fn*****@lcf-com.removethis.com> wrote in message
news:uH**************@TK2MSFTNGP11.phx.gbl...
I just had the same with Excel.
I think that the solution is just to add a web.config file in the same
folder as your aspx with the code:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<identity impersonate="true"/>
</system.web>
</configuration>

"Mike Fellows" <mi***************@equityhouse.co.uk> a écrit dans le

message
de news:np*************@newsfe3-win.server.ntli.net...
I'm trying to create a server side application (through a web front end)
that allows me to print specific documents from the server

im using:

Dim wordapp = New Word.Application

and have added the word reference (and installed word on the server)

the problem i have is that when i run the above code i get an:

Access is denied.
Description: An unhandled exception occurred during the execution
of
the current web request. Please review the stack trace for more

information
about the error and where it originated in the code.

any help with this would be greatly appreciated as ive hit a brick

wall with
things to try

thanks in advance

Mike Fellows



Nov 18 '05 #10

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

Similar topics

3
by: Brian Kwan | last post by:
Project Description: Develop a web application to help manage sale operations. There is a function that to generate a report using data in database, which is a Word document on server and let user...
1
by: Curtis Justus | last post by:
Hi, We have a project that requires a .NET service to convert a Word document to a PDF document. Basically, a person would create a mail merge template in Word and through automation, we merge...
1
by: Reza Sadeghi | last post by:
Hi I am getting this error when I tried to browse any asp.net in visual studio.net. I can build the project but when I try to run and debug the project I get error message that "Unable to start...
6
by: CMan | last post by:
Hi We have a requirement for a browser based app which needs to be able to create/print word files, mail merges e.t.c. How should we approach this? I an assuming that running word on the...
5
by: serge calderara | last post by:
Dear all, I am new in asp.net and prepare myself for exam I still have dificulties to understand the difference between server control and HTML control. Okey things whcih are clear are the fact...
5
by: Casey | last post by:
Hello, Can someone give me specific code to replace text on a page using server side javascript? I need to use server-side because I need the output to be recognized in the final HTML so that...
4
by: Kash | last post by:
Hi everybody: I've developed a web application running on a 2003 server not on the web but on extranet environment of a small Firm (less than 10 users). I've taken benefit of Office Primary...
1
by: captainwin | last post by:
Here's the problem: - Website is ASP.NET 1.0 - Server is Windows Server 2003 - Browser is IE 6/7 - Client requests a mail merged MS Word 97 - 2003 document on the website, and the document gets...
3
by: =?Utf-8?B?VGVycnkgSG9sbGFuZA==?= | last post by:
Not sure if this is the most appropriate group - feel free to redirect me. If I have a web application that needs to programatically create and manipulate office documents (word & excel), what...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.