Open Word Document Met Bookmark Image
how to open word document met bookmark image. I like to open a word document with an image. here is my code
<%
Dim MyDoc
dim objWord
Set objWord = CreateObject("Word.Application")
Set MyDoc = CreateObject("Word.Document")
MyDoc.Application.Visible = True
'Set the font properties
MyDoc.content.Font.Bold = True
MyDoc.content.Font.Italic = True
MyDoc.content.Font.Underline = True
MyDoc.content.Font.Name = "Comic Sans MS"
MyDoc.content.Font.Size = 25
Set MyDoc = Nothing
%>
View Replies
ADVERTISEMENT
I want to open a word document in asp.(if possible with FSO)(I don't want to create a word with asp!)
View Replies
View Related
Is it possible to create a code that will open a word document and print it? I need to to this for various documents within the same form. That is I need to print from 1 to 5 documents each time the code is executed.
View Replies
View Related
I have a Word doc already created that I want to open from an asp page. I want it to open in Word and allow the user to modify if necessary. I currently have it opening (using href), but it is opening in IE. I think I should be able to do it with javascript to open word and then call that function on the link to the doc.
View Replies
View Related
anyone know how to open in ASP a word .doc stored in an access database.
View Replies
View Related
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
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
I've been looking (unsuccessfully) for a tutorial on creating Word documents from ASP. I know it can be done and have been able to find some references to various aspects of this, but nothing that spells out the process from beginning to end.
What I'm trying to accomplish is being able to generate a paper document using some information that is contained in an Access database. I have a ASP script that will generate the same info on the screen, but nothing that will put it on paper in a clean, professional format.
View Replies
View Related
I am creating a word document from an asp page. I have no problems
actaully creating the document and creating some tables that have data
in them. I am using Response.ContentType = "application/vnd.ms-word"
to create the actual document. My problem is that I want to place a
picture (which resides on the server) into the word document as well.
However all I seem to get is the place for the image but a picture of
an "x" meaning that the picture is missing.
View Replies
View Related
I have a table which lists many documents preuploaded on the server (most are either PDF, RTF or Word documents). When the user click on the link to the document, it opens in its native program inside IE.
If the document is either rtf or word, when the user closes the document, the server pops up a dialog asking for the site userid and password (as if access to the site is required to publish files). I know the server is popping this dialog up because the program (word etc) is trying to work out if the changes to the document should be saved or discarded. How do I avoid this ?
Is there a way I can allow a user to open the document, make some changes and save the document back onto the server without knowing the site id and password ?
View Replies
View Related
Using Input in HTML i am allowing user upload the
document. When they click submit i am saving in Server.
They can upload same document any time. Here is my problem
each time when they upload document it is saved in server
But when they open in browser new updated document is not
shown only old document is displayed.
I have link buttion i am assinging like this
http://myservername/sparktrial/SOW/sow-123.doc
the link is working they able to seek document but it not
showing latest document. Code:
View Replies
View Related
if there is any way to transfer the data inside of a Microsoft Word (.doc) through asp into a database field?
View Replies
View Related
If anyone has any suggestions on how I could get specific data from a word document into a Database please advise. I need this to work via our website.
Scenario: User uploads a word doc to our server. Then is presented with a button that reads "parse it".
I need to write something in asp that will open up the word doc and extract out specific data then simple insert it into a SQL db.
View Replies
View Related
I know that using Word Automation inside an ASP page is no good idea.Anything I want to do in the current project is: open document, change some text, save and close document. Basically changing some variables, consting of a name embraced by special chars, to some value. As for example: change "[FirstName]" to "Michael".
Does anybody know whether there is a way for achieving this with basic "file input / output". Can I regard a Word document as some binary data, perform the replacement, and save the data, without destroying Word's internal structure?
View Replies
View Related
any way to modify text content of a word document through ASP?
View Replies
View Related
I am working on a application in ASP which has some data to be written to a Word document which can used as a template.I am having problems in creating an Object to open a word document.
View Replies
View Related
I wanted to know how to make a properly formated word document from asp. Can some one direct me to all the propertise of CreateObject("word.application").
View Replies
View Related
I am having a issue to read the word document and to print the content of the same document can any one please help me out in this case.
View Replies
View Related
I have a website which displays information from a database. I would like to add an option that when the user is pressing a button or link, a specific form as a WORD document will open on his desktop filled in specific places with data from the database. The original empty WORD doc is stored on the server.
View Replies
View Related
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.
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 not. Or is there any other better alternative to solve this problem?
View Replies
View Related
In the Sql server 2000 I store some word documents.Then I get the data from the database
through the asp code and display the word document in IE.The ContentType is "application/msword". how to save the word document which is edited to the database.
View Replies
View Related
Is it possible to create a simple word document using ASP and also set its footer to the record id and save the created document on the server. We have an ASP application and we can create PDF documents using one of the components available but we want to do the same in Word Document. I wonder if someone can suggest some code or a component to allow us to do this.
View Replies
View Related
I want to merge a word document in the server to display in the client side. The merge code is in a dll. In the asp server script, I invoke the dll to merge.
It raise an error when I use the default IIS user. When I change the IIS user to administrator,It work well. how I should do to resolve this problem?
View Replies
View Related
1.I want to show a image file of type '.tif' in the browser window; for that I'm writting as ASP code page.
2.This '.tif' type image can be shown better with 'Kodak Image Control'.
3.To have this 'Kodak Image Control' on my code page I just add it's ..ocx to tool box and then drag it from 'Toolbox' to the page.
4.Now after dropping this control to the code it's type is getting changed to 'object' instead of type 'ImgEdit'(and I think this is the
reason I don't get correct result).
5.On one button's 'Onclick' event I'm calling a javascript function with which I'm setting a 'Path'and'Display' property of a control.
6.And want to show a image at location -- '..MFTDRCMF919685173-62.tif' which get shown in new browser window but could not get shown in that particular control. That means the path is correct, then what is the problem?
For better understanding of problem I'm pasting a following code which I've tried up till now......
..................................................
<%@ Language=VBScript %>
<% OPTION EXPLICIT %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<SCRIPT LANGUAGE=javascript>
<!--
function showpic()
{
var path;
path = document.frmtif.path.value;
alert(path);
document.frmtif.ImgEdit1.Image =path;
document.frmtif.ImgEdit1.Display;
window.parent.self.open(path);
}
//-->
</script>
</HEAD>
<BODY bgColor=#ffe4e1>
<form name="frmtif">
The Image
<P>
<OBJECT id=ImgEdit1 style="WIDTH: 409px; HEIGHT: 218px" type="ImgEdit"
align=left
border=1 classid=clsid:6D940280-9F11-11CE-83FD-02608C3EC08A
name=imgtif></OBJECT>
<input type="hidden" name="path"
value="..MFTDRCMF919685173-62.tif">
<input type="button" name="show" value="Show" onclick="showpic();">
</P>
</form>
</BODY>
</HTML>
..................................................
View Replies
View Related
i am trying to download an ASD(active server document).
View Replies
View Related
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
We have an application where the user fills out many screens and when
they are done, we are supposed to display the text they entered in a
word or excel format. That is fairly easily accomplished by changing
the content type in the response object.
On one of the screens where they enter data, they also have the
ability to upload a word document containing additional information.
This is also not a problem, and is working fine.
Now they have decided that when we create the document with all of the
text fields in it, they want to embed the word document that they
uploaded. Is this possible? I have been trying to find a way to do
this and so far haven't come up with anything.
View Replies
View Related
I have a web page that lets the user to upload a word document. Currenlty this document is stored in the SQL Server database. The Field where this doc is stored is of Image Type.I am using aspSmartUpload object To do so. all is working fine till now.
Now I want to Write this document Into a textarea. I tried Using BinaryWrite, but to no avail.
View Replies
View Related
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
Is it possible to use ASP to:
1. search a directory for Word documents
2. scan the Word documents that were found for a desired keyword
3. return the path of the word documents containing the keyword
It will only be searching for files on the local network.
Or does anyone know of a way to do this other than ASP?
View Replies
View Related
We have a variety of work related forms (overtime sheets etc) that people currently download via our intranet.
What I'd like to do is have a page with a drop down box getting staff names and then tick box's as to which documents you want and it will put the employees name and number on the form and print etc ....
The bit I'm a bit a bit lost on is how would I export my employee name and number from a form to a an area on a word document.
I've exported data to an excell spreadsheet before but never a word document.
View Replies
View Related
Just wondered if it was possible to create a thumbnail / GIF image of a microsoft word document on the fly with ASP?
They seem to be able to do it on Microsoft.com (see http://office.microsoft.com/template...3601033&CTT=98, for example) - Is there a function which does this?
View Replies
View Related
I created this script so that once the form has been created, they can print the information on a word document. When I run the script locally, I get the Word document without a problem. When I place the file on the website to create the document I get the following error:
Cannot copy file: Cannot read from the file or disk
I have never seen this error even on the server. The script has been written as an ASP application. But this is the first time I come accross this error. If you need me to post the script let me know. But I don't think this is a script error.
View Replies
View Related