473,780 Members | 2,229 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Applicatio n

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 1494
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.Applicatio n

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*******@disc ussions.microso ft.com> wrote in message
news:uQ******** ******@TK2MSFTN GP10.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.Applicatio n

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" ?>
<configuratio n>
<system.web>
<identity impersonate="tr ue"/>
</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.Applicatio n

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******** ******@TK2MSFTN GP11.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" ?>
<configuratio n>
<system.web>
<identity impersonate="tr ue"/>
</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.Applicatio n

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*******@disc ussions.microso ft.com> wrote in message
news:00******** *************** ***********@mic rosoft.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******** ******@TK2MSFTN GP11.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" ?>
<configuratio n>
<system.web>
<identity impersonate="tr ue"/>
</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.Applicatio n

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$A n.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******** ******@TK2MSFTN GP11.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" ?>
<configuratio n>
<system.web>
<identity impersonate="tr ue"/>
</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.Applicatio n

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
11295
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 to download and print it out. Problem: Found that it's risky to do Word automation on server side using ASP. The layout of report is a bit complicated. I've a idea of ASP call VB to automate a Word document, but don't know whether it's work or...
1
3480
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 the data and spit out one or more PDF documents. It appears that the best thing for me to do is get a product that installs some type of printer driver. The problem is that the drivers pop up a dialog box prompting for the destination file...
1
2981
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 debugging on the web server. server side error occurred on sending debug HTTP Request. I am running WinXP Pro SP1 with all hotfixes and VS.NET 2002 and .NET Framework 1.0
6
1285
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 server is not a great idea because of threading issues. Has anyone else done this kind of thing?
5
3596
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 that for server control component , code is running on the server side. But if I take as example a Label. I place on a webform an HTM label control and a WebForm label control, I could see that properties are different for
5
4787
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 google can index it. Here is a specific example of what I want to do: <div id=SomeText> Here is some text. I went to the baseball game </div>
4
2513
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 Interop Assemblies (PIAs) for automating Word on the server and everything runs smoothly on the server console. The word documents are generated perfectly from all clients and stored on the server with some data comes from a SQL server and/or stores...
1
2179
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 created on the server. - Need to send the document to the client browser and delete the file from the server. Previously, the web application already did this, but after some hardware and location changes, the application no longer performs this...
3
2199
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 options do I have other than installing MS Office on the web server? Can I just install an Office SDK or a version of Office that has no user interface? tia
0
9636
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9474
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10306
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10139
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10075
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8961
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5373
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3632
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2869
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.