Creating MS Word File
I have manage to create a word doc from lotus notes using the createobject("Word.Application"). Now I wanted to add some text in a field on the template. I want to know how to insert a newline in the field.Also I have created a table in the doc file, now i wanted to know how to place at a desired position in the file.
View Replies
ADVERTISEMENT
What I want to do is to create a web form that once submitted it takes the fields and opens a new instance of a Word Template and populates bookmarks within the document with the fields from the web form, then saves it to a specified location with a specified name. does anyone know of an article or tutorial about this.
View Replies
View Related
I want to create a Word document in ASP, which will be subsequently emailed to a client, so it needs to look good, and the examples I have found so far have been too simplistic. I'm actually looking to be able to create a quotes for customers, so I imagine someone out there has done something similar. And as you can imagine, it has to be a fairly professional job.
I'm guessing that the best way to go about this is to use a template document and to just edit the fields? Anybody got any examples, pointers, suggestions, code for me to work from?
View Replies
View Related
I have tried three ways of opening word documents on my win95 machines.
(Yes, my client still has some win95 machine)
#1-With Response.AddHeader "Content-Disposition", "attachment;
filename=yourfilenamehere.doc"
#2-With Response.AddHeader "Content-Disposition", "inline;
filename=yourfilenamehere.doc"
#3 without the content-Disposition header.
#1 is not good because it forces the user through two dialogs. #2,#3 seem good because they open the document in IE, but the window does not have the corresponding document toolbar, so the user can not saveAs xxx.doc
How can I accomplish # 2 or #3 with IE showing a word document toolbar?
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 would like to know if I have a word document on asp, how would I read it's actual content rather than the binary data.
View Replies
View Related
I m working on the application wherein I am requiered to display the local word file from the client side on the client system.
I have tried it by redirecting to the file with the local path but it is giving the 'Access Denied' error.
View Replies
View Related
I am having trouble displaying a word file. Following is the code I am using.
Response.ContentType = "application/msword"
Response.Addheader "Content-Disposition", "attachment;filename=hostsfile.doc"
It opens Word but the page is blank. What am I doing wrong?
View Replies
View Related
I want that when the user writes a story (some content) in the textarea...it sould get saved as a word file. Actually the concept is that the student writes a story in textarea and submits.
But when teacher views that story he should be able to open it as a doc file so as to make some corrections like strikethrough, highlight etc. So what I want is that the story should be saved as a doc file in database...can it be possible?
View Replies
View Related
Now I wanted to do some office automation in my web page. Let say I have the microsoft word named report.doc. In this report.doc , I wanted to put the number in header or footer from the parameter in my asp file. How do I do that?
View Replies
View Related
I need to search ms word file with ASP, and find a couple of predefined words. such as "apple" "mac" etc.
View Replies
View Related
I wrote a code that allow to open a Word document, and save it. Before it worked perfectly... but after changing the Server, it doesn't work anymore! Code:
View Replies
View Related
I have a pdf or word file on my server and i would like put a link or a button on my website to print it. So when i push the button the file should be printed.
The confirmation popup window i sno problem. So i am looking for something like window.print,but then to print a word or pdf file that i have somewhere on my server . Is this possible?
View Replies
View Related
I know how to use ASP to create and write into a .CSV file on the server, but I have a small problem. Every time I write to the file I am adding new lines each time. I don't know how to wipe the previous contents out, and I thought this is probably a no-brainer for you guys ...
So, I'm looking either to delete the file at the start of the process and start from scratch or
* open the file
* wipe all contents from file
* write to the newly cleaned file
View Replies
View Related
How can i create a ZIP file from a folder (full of files) of the server.?
View Replies
View Related
Can i create a pdf file with asp by using my database information..?
View Replies
View Related
All I want is a txt file I can write to... and I have a hard time doing it. Only a text file, which I can write strings too (incl timing). My ASP books do not have anything on it and some examples here dont work either.
View Replies
View Related
Is there any way to create a tif file from ASP? I would like to essentially create a tif of a formatted textual document.
View Replies
View Related
Im trying to create an XML file dynamically with asp and a data base. everything is working well until the bit where i need to write the file to my server.
I have been using this:
Code:
Set WriteStuff = rsPhotos.OpenXMLFile(strSiteLocationURL & "P4M_new_images.xml", 2, True)
But I now realize that my xml feed is not a .txt file, so I changed it OpenTextFile to OpenXMLFile but it does not work?
View Replies
View Related
i want to generate invoice or bill of an order from an asp application and i want that in xls format and cannot be edited. is there any way to do it......? if yes plz let me know how or the source or tutorials for the same. In short i want to generate invoice in a manner in which user can't edit his invoice which he receives in his email........and i want to do this free......not buying any component.
View Replies
View Related
I want to open word file in explorer. I am using hyperlink for this purpose but it doesnt show me the file opened. Though i able to do save as on it.
View Replies
View Related
I have an ASP page which needs to export some HTML content and images into a Word file.
Currently I am displaying the image in the Word file from the URL.
What I need is to stream the image into the word file alongwith the other HTML contents.
View Replies
View Related
How can open a Microsoft Word file by ASP?
View Replies
View Related
Just a thought...Using
Code:
Response.ContentType = "application/msword"
to save asp pages to MS Word, saves the text on the pages OK, but, pictures, icons etc are just saved as a link to the original picture file . If the picture/image is not on the current PC opening the WORD file, then none is shown..
I was wondering if I could save the asp pages WITH images/pictures & icons using MS WORD on the server and then the users downloading the .doc file from the server to their PC, would this embed the pictures etc in the .doc file, so it could be shown on any PC. (which has WORD or a WORD Viewer installed).
If this is possible could someone point me in the direction as to how to get started opening WORD on the server and saving the .doc file on the server.
View Replies
View Related
While i'm here, do you know how to select a random word from a text file?
Txt file is like this:
word 1
word 2
etc.
View Replies
View Related
generate an ms word file for an asp output?
<%
x=date
response.write(x)
%>
- is it possible for the date (code above) to be displayed on ms word?
View Replies
View Related
I have a document saved to a public network server. The public directory grants change access to all users on the network. To keep my Word doc protected I am using the Security feature "File Sharing Options" in Word to attach a password to the document. This works as expected when users open the file with Windows Explorer.
I also have an ASP web page that has a link to my file on the public drive. When I click this link, the Word document loads without asking me for a password and is not read-only. (Note the link in formatted with an href attribute like this: file://servername/share/filename.doc)
Am I mssing something? Shouldn't the Word security work even if the file is accessed through a hyperlink?
View Replies
View Related
when a student logs in i want to create a Microsoft word (doc) file with basic information filled from database and rest of the info will be hand filled. how to get data from sql server and fill the .doc file with it.
View Replies
View Related
I have a strSQL line.. that basically does a SELECT * from many joined tables. The output is displayed into a table. What I'd like to do is, to have each table's field entries (say a Name field) displayed as a URL.
Clicking this URL will spawn an external viewer, which will open a predefined MS Word template. ASP code should then do a few SELECT statements, parse them, and write them to certain areas of the MS-Word document.
Practically, a user should be able to click on a name, and have MS-Word launch, filling in details on the Word document, such as Name, Address, ZipCode and so on, which are stored in SQL-Server 2k. how I can get this to work?
View Replies
View Related
I have been able to create and Active Server Page that when I link to
it will ask if I want to download to an excel file which I do want. It
works well, but there is one thing that I haven't been able to get to
work yet.
The ASP page has a logo picture in it and I want the picture to
download into the excel file also. It doesn't. My code is the
following:
Response.ContentType = "application/vnd.ms-excel"
Response.Buffer = true
Response.Clear
Response.AddHeader "Content-Disposition",
"attachment;filename=svra_excel.xls"
<!--#INCLUDE FILE="svra_report.asp"-->
the svra_report.asp is another page with the excel info in it.
Does anyone know how I can get the logo to download also?
View Replies
View Related
I do not get an error, but I also do not get any data in the excel file. I
know it is connecting to the db Code:
View Replies
View Related
When an introducer is logged onto our site, I want to create a separate directory for them and place in this an index.asp page that will redirect including a variable to identify them.
I have created the folder with no problem, but when I try and create the ASP file, I'm getting errors. Code:
View Replies
View Related
I need to extract some blobs (chm files, actually) from a database and save their contents on the server (recreate chm files).
I tried to do it in several ways (writing the contents to a stream and save the stream to file, writing the contents directly to file, I couldn't figure out how to do it by using the class ADODB.File) but none of them worked.
View Replies
View Related