Saving Site As WORD File

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


ADVERTISEMENT

Saving Excel To Web Site

An user can open the xls file from my website (loaded on the top frame). After filling the Excel, he can click a send button at the bottom frame. By clicking the button i have to save the file in a shared directory on the web server by a unique name. Is it possible ?

View Replies View Related

Saving Word Document To Web Server Using Macro?

I have a web application that enables a user to download a word or excel file. I want them to be able to edit the file and then when they close the file I then update the image that contains the file in the SQL database. This is all quite simple apart from I can not see how I can get the cotents of the file.

Things like "ActiveDocument.Content.Text" seem to work in word just for the text but I need to get the lot in order that I can then post it back to the webserver when the file is closed.

View Replies View Related

Saving A File

I am using IIS as a remote configuration tool to modify an XML config
file on the server. So I pull my XML config file through XSLT to give me
an HTML file with forms on. Something like this: Code:

View Replies View Related

Saving .Doc (office) File

I have to allow users to download files after checking users validity and I
cannot give full URL of file to download e.g www.myserver.com/mydoc.doc

I have seen ASP code some where in MSDN where users has to enter URL like
www.myserver.com/mydoc.asp and this will download the doc file.

View Replies View Related

Saving Recordset To XML File

On this page...

http://www.w3schools.com/ado/met_rs_save.asp
....it describes how to save a recordset to file with the following...

You can save a Recordset in XML format:

<%
set xmlDoc=CreateObject("Microsoft.XMLDOM")
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open "c:/webdata/northwind.mdb"

set rs = Server.CreateObject("ADODB.recordset")
rs.Open "Customers", conn
'Save the Recordset into a DOM tree
rs.Save xmldoc, 1
%>

What I don't get is where does one stipulate a filename? I put the above
code in my page and it appeared to load and execute without error. But no
file.

View Replies View Related

Saving File To Server

What I´m trying to do is, after the page is printed in users IE, it saves the HTML page in the server. Doing something like this, it´s just too much ugly for my code:

View Replies View Related

Saving An Attachment File

I have a basic classified as form where people can enter their name, title, message, and include an attachment. I have it working so that it will save the name, title, and message into my database. However, I don't know the code for the attachment.

What I'd like to have happen is this:

When they click save, the path name that was entered is saved as the Internal_Name and the actual attachment itself is placed into a file called ClassFiles. They are connected through the use of a class_ID number.

View Replies View Related

Problem Saving Xml.responseText To File

i'm using the following to fetch an xml feed from a server and save to a local file:

View Replies View Related

Saving Images While Saving ASP Pages !

When I try to save any ASP page, I get the message that "The page will not save correctly". Even though I go ahead and when I go offline the space of images is blank.

I have this website also where I am using ASP pages and my users are facing the same problem. HTML page is created but images are not saved.

What changes are required in ASP code so that images are also saved.

View Replies View Related

Saving A File As An XML File

I am trying to create an XML file from a recordset. I know that there are conversion methods out there, but for what I'm doing, everything that I have found doesn't seem to work correctly.What I decided to do was to create hidden fields from a recordset and pass those variables into a page that has XML template tags already created. I am simply passing the variables into existing tags. I now need to save that page as a Text file or and XML file.

It shouldn't matter what kind of file it is as long as I can save the XML tree structure that is being shown on the page. Keep in mind that my users want simplicity, so they don't want to have to cut and paste what is on the screen into notepad or something like that. They want to be able to push one button after the recordset is presented and have all of the tags filled in with the variables and then have a "Save As" dialog box pop up guiding them to save the contents of the page. Is this even possible?

View Replies View Related

Word File

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

File Via FTP Site

I need to access a file on a remote FTP server. Assuming I have all the FTP login credentials, how can I get that file (.txt file) and copy it to my server (so I can use it for my database). I need to have it on my server before I use it because I am not allowed to do anything with the remote file but copy it. (bandwidth crap, or so they say)

View Replies View Related

File On Another Site

How do i include a file on another site (which is accesale via a virtual directory)the file to be included is set up like this:

http://www.mysite.com/virtualdirect...includethis.asp

ive tried all sorts

View Replies View Related

Word File Display

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

Display Word File

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

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 View Related

Textarea To A Word File

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

Edit Word File

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

Search Ms Word File

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

Save A Word File From ASP

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

Printing Pdf Or Word File

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 Want To Include An ASP File From Another Site

Is there a way I can include an ASP file on somebody elses page without useing Java or an Iframe from another web site?

I've tried using #include file but it will only include local files.. is it possible to do this with ASP?

View Replies View Related

Including A File From Another Site...

Am trying to include a txt file from another site...This is the code I am using:

<table width="540" border="1" cellspacing="1" cellpadding="5" align="center" bordercolor="#DCDCDC" style="BORDER-COLLAPSE: collapse">
<tr class="text" align="center">
        <td width="250">
        Name</td>
        <td width="250">Type</td>
        <td width="40">Info</td>
        </tr>
        
<!--#include virtual="http://www.anothersite.com/MyFile.txt" -->         
</table>

The contents of the txt file are all arranged with appropriate html so am hoping the output will be displayed appropriately on this ASP page.

View Replies View Related

Include File Outside Web Site

Is it possible to have an include file that resides outside of the web site parent folder? For instance, lets say you have several websites under Inetpub/global/websites/ but the include file is in Inetpub/inc/ I get a file not found error trying file/virtual starting with the root and even using C:/Inetpub. Example

Inetpub/global/websites/website1/global.asa

Inside global.asa is the statement

<--Include file="C:/inetpub/inc/functions.inc"-->

View Replies View Related

Opening Word File In Explorer

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

Streaming An Image Into A Word File

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

Open A Microsoft Word File

How can open a Microsoft Word file by ASP?

View Replies View Related

Select Random Word From File

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?

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

Opening Word File From Hyperlink

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

Create Microsoft Word File

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

Details From SQL Server To MS-Word File

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







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