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?
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?
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.
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
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?
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.
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).
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.
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.
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.
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:
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).
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?
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.
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?
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.
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/
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.
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>
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.
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?
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?
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?
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
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.
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.