Launching Word From An Asp Page

I am trying to launch word from an asp page. I need to pass data picked up from a recordset into a word template and then email the resulting merged word doc to the user.
I keep getting the error:

Microsoft Word (0x800A1772)
Word could not fire the event.

It appears the problem lies with the path. As I am only running this locally on my pc at present the code path I have is:

set MyWord = createobject("Word.Application")
MyWord.Documents.Open "D:sitewebprojsummariesEnvUtil.doc"

This is where the Word Doc is located. Am I missing something?

View Replies


ADVERTISEMENT

Launching Word From ASP

I have followed the steps in the MS article 288367 to enable Word to run from a web page. I have done this several times and it has worked OK. However, at a customer site I am getting the following error: Access denied attempting to launch a DCOM Server. The server is {000209FF-0000-0000-C000-000000000046}.

This AppId is the Word.Application object which the article does not mention, it only talks about the Word.Document object. You have to create the Application object before you can create the Document object, so does the Application need the same DCOM
settings to be applied to it?

View Replies View Related

Launching MS Word

I have the path generated from asp variables. I have the following code:

<a href="file:<%=sPath & sYear & "" & sFileName%>" TARGET="_blank">Open Generated File</a>

This will launch the file in an IE window. I was wondering if it would be possible to have the same link above but have word open the file instead of IE? Have something like a jscript function that does onclick...blah..blah. Is this possible? If so, any sample coding or where to get more information.

View Replies View Related

SPLIT FROM Launching MS Word To Open File From A Hyperlink?

How would this be done for something like a text editor?

For example, say I wanted to launch a text editor from a hyperlink AND also the file I wanted to open with the editor as as well?

View Replies View Related

ASP To Word Page

I have a document that creates the input of data into a word document. Can someone tell me how to create a code where I can create a page break. I found something like this:
Response.Write("<style='page-break-before: always'>")
But that doesn't work. I think this only works if you are printing from HTML directly into the printer. But the script I have, prints it out of Word

View Replies View Related

Launching A Sql Server Job

I am executing a stored proc that starts a sql server 2000 job and everytime I call the proc from my asp.net 2.0 page it gives me the error message that this particular job id does not exists, any suggestions?

View Replies View Related

ASP - Launching Executables

I have an Executable which I want to run from an ASP page on the server. I have the following code in place:

strcommand = "C:UsersSSR_BWUpload
unme.bat"

strcommand = "cmd.exe" & " /C " & Chr(34) & strcommand & Chr(34)

set ws = server.createobject("WScript.Shell")
ws.Run strcommand

The exectuable gets launched but does not complete as the control is passed back to the ASP page. How do I wait for the Executable to finish before getting back to the user.

View Replies View Related

Launching MSN Messenger

Is it possible to open a new MSN Messenger window from a link on a site using ASP? I want to try and use it like a live chat link, but want to use the audio and webcam facilities MSN provides.

Haven't managed to find much on search engines and not sure where to start. I notice that this forum provides a link to send an MSN message to members, but it didn't seem to work when I clicked one(it just opened up a new window and then redirected to the home page).

View Replies View Related

Launching A POP Up In A Responce.write

I have a asp page which need to launch lets say x.asp in a pop up window the asp page itself has a bag load of responce.write's within and i was wondering if i could lanch x.asp in a pop up window 100 x 100px etc etc.

View Replies View Related

Opening Word Document From An ASP Page

I have a server with a Word document and an Access database on it. I
also have an ASP page running on the server. The Word document
contains a mail merge with the Access database. What I want to do is
open the merged Word document from the ASP page when a button is
clicked.

I have tried several things including some scripting that I
found on the internet. This scripting works, however it opens the
merged document on the server instead of on the user's local machine.
I want the Word document to open on the local machine instead.

View Replies View Related

Export ASP.NET Page To Microsoft Word

Could anyone suggest some ideas or links to convert the ASP.NET page
with images of the page to Microsoft Word using C#.

View Replies View Related

Need To Access A WORD Document Via ASP Page

Does anyone know how to access a WORD document using ASP?
I have a few users that fill in fields in a WORD document
and I need to be able to open that document and read
these fields once the document is uploaded to my web
server.

View Replies View Related

How To Hightlight A Word In HTML Page?

I have many HTML pages, Access Database and ASP pages.

I have a table called " GlossaryTerms ". In this table i have a list of " Glossarywords " in the column called " Terms ". If the HTML page has any " GlossaryWords " then i have to highlight the word. I have a function to hightlight a word in the page. But i dont know i how i have to get the data from the database and check with the static html page's content. Code:

View Replies View Related

Launching Notepad.exe Client Side

I have written an ASP application using our IIS server which retrieves data and displays them in a nice grid. My boss wants the application to create a .txt file of this data when a button is clicked and then open Notepad with this new file so that it can be saved locally on a user's harddrive.

I can create the file itself fine, but trying to launch Notepad client-side with this new .txt file has proven to be an absolute nightmare. It is a nightmare because I've gotten errors such as from "Automation server can't create object" to others that are a constant, annoying road-block to what seems to me ought to be a simple trick.

Bottom line, how do I do the above without getting errors (opening Notepad with the file created)? Again, Notepad is what my boss wants used, so with that I need to know the solution with ASP (not ASP .NET).

View Replies View Related

Transfer .asp Page To MS Word Include Images Within <IMG> Tag

I am using:

Response.ContentType = "application/msword"
Response.AddHeader "Content-Disposition",
"attachment;filename=Letter.doc"

to download my asp page to the client. The download process works great but when I open the .doc file it is missing the image included within the html <img> tag of the .asp page. How do I get the image to come down with the text?

View Replies View Related

Open Asp Page In Word With Normal View

I have a table in a plain asp page. At the top I have

Response.Contentype = "application/vnd.ms-word"

When it opens in word, it opens in a funky view. Is there anyway to have it
open in Normal View mode?

View Replies View Related

Sending Launching Email With HTML Attachment

Can anyone get me started or point me to a resource for some help?

I have an ASP page that displays various boxes, tables, and information. I want to be able to click an "Email" button and have the asp page save the page as an attachment (html?) and then launch Outlook and automatically attach the page to it and enter the email address of the person I want to send it to.

I can't just send a link because the page is generated on an Intranet and I need to send it to people outside the network. So, I need to save a print screen of the page and then have Outlook grab that and the recipient's email address and put those into Outlook so the sender can review and send out.

View Replies View Related

ASP, Word And IE 5.5

I use asp to create a report, using content type I push it out as a word document. On my build this works fine, on my co workers it does not. The only difference between the two builds is I am on IE 5.5 sp2 and the other is 5.5 no sps. Unfortunatly I am in no position to get the machine and others like it onto sp 2 and the User agent variable is only returning 5.5.

The problem with the output on the no sps machine is that it opens in word with all the HTML tags visible Does anybody no a solution?

View Replies View Related

ASP + Word ???

I am trying to create a word document via asp.

I keep getting this error:

Server object, ASP 0178 (0x80070005)
The call to Server.CreateObject failed while checking permissions. Access is
denied to this object.

I am running window 2000 professional with IIS 5.0 installed.
I know it is a ntfs permissions error and that IUSR_ComputerName needs
permission to interface with word, i am just not sure which file needs to be
the recipient of these permissions. I have located 'word.exe' in program
files, set appropriate permission but no joy.

View Replies View Related

ASP To Word

I have a system that Im about to start building it is in planning stage at the moment and if I was going to a database and keeping everything in HTML I would be right and not posting here at this stage.My client is after a system that they can register a new document enter in the basic information and on save, Create a Word document based on a Word Template prefilled with some of the data from the HTML form.
Can any one point me in the direction of some? tutorials/code/tips/prebuilt systems that I can donate or buy from the developer/

View Replies View Related

Asp To Ms Word

is it possible to produce a report of asp to ms word?

View Replies View Related

Ms Word

What is the best way to generate a word-document with wbscript code?

I have a text string I would like to save as a word document on the server.

Any tutorials? or code examples?

View Replies View Related

ASP + MS Word

I am creating a word document using asp.I have this on top of my asp page.

Response.ContentType="application/msword"

everything works fine.I am displaying some data in the table format.on some machines.may be old machines.the asp page opens up word document fine but the table tags are not rendered properly.

i get all the data fine but not displayed in the table format.instead i see <td> and other tags.it works on my machine(Windows XP) but it does this weird thing on windows 98 machine.what do i need to do to make sure it works fine on all the machines.

View Replies View Related

MS Word To XML

how to set a variable to contain the xml data from a file, including the xml tags too.
So if I have an xml file like:
<contact>
<name>Person</name>
</contact>

I want the variable to contain:
<contact>
<name>Person</name>
</contact>

View Replies View Related

Whole Word Only

I cant seem to figure out how to ensure that a whole word is replaced within a string. For example, if I have an array with two items, "mpeg" and "mpeg4" and the text to look for is "blah blah mpeg4 blah blah"

the text to match with is the array, which is in a loop. how can i prevent "mpeg" from matching with part of "mpeg4"? i only want the whole word to match. do i have to use regexp here? vbscript functions seem inadequate.

View Replies View Related

MS Word Document

I want to do a Ms Word document in a ASP page. I can do it, With the code lines:

/////
Response.ContentType = "application/msword"
Response.AddHeader "content-disposition", "inline; filename=OrderFax.doc"
////
With these lines all document content show like a Word document.

But i can not change the MARGINS of this Word document.And Default
left/right margins are very bigs.

I try it, change the <body> attributes and with styles, but this don't work,
the margins are always the same.

How can i modify the margins of word document? I should do this with another method?
Can I modify PC client settings to change the defaults margins of word document create througt the web?

View Replies View Related

String With More Than One Word

My problem, i got a string that may can contain more than one word, it can contain upto ten, now my problem is i gotta replace some of the words, but with Replace, you can only do one word at a time?
so how do i go about running thruogh the string and replacing all the relevant words, and putting them back into a string?

View Replies View Related

Word Object

The following code hangs or gives me a "can not fire event" message

The code works from a windows app.
Fails in ASP.NET on the word.open call

I have done the following:

How to configure Office applications to run under a specific user account
http://support.microsoft.com/defaul...b;en-us;Q288367

Before doing the above the cod use to get an access denied on the
new word.application();

oWordApplic = new Word.Application();
object fileName = "filename.doc";
object readOnly = false;
object isVisible = true;
object missing = System.Reflection.Missing.Value;

// hangs here or returns cant fire event msg
oDoc = oWordApplic.Documents.Open(ref fileName, ref missing,ref readOnly,
ref missing, ref missing, ref missing, ref missing, ref missing, ref missing,
ref missing, ref missing, ref isVisible,ref missing,ref missing,ref missing,
ref missing);

Any ideas?

View Replies View Related

Finding Word

i want to make a program to find out and highlight a particular word on the browser using ASP and javascript.

View Replies View Related

Word Document

I'm currently working on an application that has to open word documents (word forms) and read and write data from/to it. But, unfortunately, the web server hasn't Word installed (my ISP...). Is there any other way to do that?
I'm currently investigating about working with rtf documents, but the syntax is turning me crazy!!! Any idea/dll/other way to do that?

View Replies View Related

Seach For Whole Word

Is there a way to get records containing a whole word? I've heard regular
expressions can do it, but I can't make one work in an ASP / MS Access SQL
Query

sSQL="SELECT PageTitle FROM Pages WHERE PageTitle LIKE '%cat%' "
rs.open etc

returns scatty, catatonic etc.

View Replies View Related

Occurrence Of A Certain Word

I am maintaining quite a few asp applications. In one of those, I have to
change the response.redirect to a particular page. This application has more
than fifty asp pages. Instead of going through manually through each page to
find the response.redirect phrase, is there any tool that will find and
report all occurences of response.redirect (in the present scenario) among
all those fifty asp pages? If there is one I would like to know.

View Replies View Related

Word Count

I'm trying to output some data from the db into a table but I'm getting a number of problems with the layout if all the words are together. The table stretches across the screen. I want to be able to output a number of words/characters and then insert a line break and then carry on with the rest of the output.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved