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


ADVERTISEMENT

Generate Word Doc!

in relation to creating word documents on the fly using asp.I am using SQL Server 2000 as my backend and want to create word documents containing the data i retrieve.

View Replies View Related

Generate Word Document

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

Dinamically Generate Word Document

I want to do a dinamically generation of a word doc in my ASP page. I do it with the next code:

<% Response.ContentType = "application/msword"
Response.AddHeader "content-disposition", "inline; filename=OrderFax.doc" %>

But i have a problem with the margins of the word doc, by default the margins are:

left:3.17 cm, right: 3.17cm.
(Are not the margins of normal.dot...?)

How can i modify these margins? In my ASP page? can i do it in my MS word application?

View Replies View Related

Transfering Output To MS Word Or Excel

The website sends users through a series of questions. When they are done they can view there results and open a printer friendly version, but my boss wants the user to have the option to send their answers to Word or Excel so they can either change their answers or the layout of whatever. Is there a way to do this?

View Replies View Related

How To Send Output From Table To Ms Word Or Excel

i have created a quotation page where customer could view the quotation details and i just thinking to allow customer to print his/her quotation as a reference. all the data are fetched from db and displayed in the table.

View Replies View Related

Output Dynamic User Information Into Word Document

I need to output dynamic user information into Word document
from Access database. Can I automatically output information of 100 users in the table into different word documents for each user and then print all of them just by pressing a button in ASP?

View Replies View Related

Generate RTF File From ASP

currently, i export data from ASP to Excel. but i want to change it to RTF. i have looked at microsoft website and tried whay i have studied but failed to make it. at microsoft website, the table is created using rtf script but in my case, i just want to create it using html script.

and then, when user click PRINT button, i want my system shows the detail contents of rtf file and then open the Print window later. so user does not need to click File->Print and so on. is there any example script i can study?

View Replies View Related

Generate File

how to generate a text file with data from the db in asp and save that file in clients system.

View Replies View Related

Generate Xml Without Need To Persist It In A File?

i get data with ado i need to get a xml string from the recordset how can i get it without having to persist the recordset in a (xml) text file is there a simple way ?

View Replies View Related

Using Asp To Generate Xml File On Server

Is it possible in a global.asa file (or some other way) to have an xml file generated by an asp script and saved to the server some how?

<%
Dim xmlDoc, rootEl, child1, child2, p'Create an XML document
Set xmlDoc = Server.CreateObject("Microsoft.XMLDOM")'Create a root element and append it to the document
Set rootEl = xmlDoc.createElement("root")
xmlDoc.appendChild rootEl'Create and append child elements
Set child1 = xmlDoc.createElement("child1")
Set child2 = xmlDoc.createElement("child2")
rootEl.appendChild child1
rootEl.appendChild child2'Add an XML processing instruction
'and insert it before the root element
Set p=xmlDoc.createProcessingInstruction("xml","version='1.0'")
xmlDoc.insertBefore p,xmlDoc.childNodes(0)'Save the XML file to the c directory
xmlDoc.Save "c: est.xml"
%>

THis seems to be what i am after but when I try to modify the xmlDoc.Save line to either "/images/listings/test.xml" or imageslistings est.xml" and it comes back saying it can't find the path. If I just leave "text.xml" it comes back saying permission denied. If I can solve this path issue so as to be able to save the file to a directory I think I will have it solved.

View Replies View Related

Generate Unique File Name

I have an application form that when filled out is being written to a singular HTML file. I want to convert it to generate a unique file name each time a user fills it out.

Secondarily, I want to be able to attach the unique file to the email that is sent to us when it is submitted.

Here are the current snippets of code:

set ObjFS = server.createobject("Scripting.FileSystemObject")
set objTheFile = objFS.OpenTextFile("e:credapp2.html",2,-1)
objTheFile.WriteLine(FileToWrite)
objTheFile.Close

and...

objMail2.AttachFile "e:credapp2.html"

View Replies View Related

Generate Excel File Using ASP

With response.contenttype = "application/vnd.ms-excel", I can easily export my data to Excel which is embeded and shown within a browser. If I'm going to save the Excel file through ASP programming, which method can I use? I need to save the data to Excel file with dynamic name (the file name should contain key values and appended with system datetime).

View Replies View Related

Generate Html File

how to create (generate) .html file by using asp. I am not sure if this possibility even exists... if not, is there any other way I could generate .html files? The thing is that I have to retrieve info from database and the generate .html file.

I know I could have it as .asp, but this woudl my index page and I would like to use it for search engine, which are not very happy with other extensions than .html.

View Replies View Related

How To Generate .html File With Asp?

how to create (generate) .html file by using asp. I am not sure if this possibility even exists... if not, is there any other way to do it?

View Replies View Related

Generate Unicode Text File

Is it possible to get information from a database and generate it to
unicode text files using ASP?
Is there any product/COM out there that can do this? If not, is there
any other solutions? It doesn't have to be ASP, but it would be nice.

View Replies View Related

Dynamically Generate Global.ASA File?

On each site there is a global.asa file that ties into an Access database. The fields from the Access database instantiate the values of session variables used in the site. I am trying to do away with the need for a database and was wondering if when I set up a site I also set the .asa file for that site.

Then if a shop wants to change something like an address, phone, number, directions, etc., they would go a toolbox area of the site and there would be a form whose field values would be populated by the session variables from the global.asa file.

When the form was submitted I was thinking I could somehow use asp to write a new global.asa file and store it in the server. Is this feasible? Also, what would this mean insofar as permissions on the root directory of the site? I'd imagine they'd have to have write permissions no? Code:

View Replies View Related

Generate PDF Reporting File With ASP From SQL Server Datas

I'm looking fo a solution to generate automaticaly a PDF file.

My aim is to use a template define by a user and to insert dynamicly
datas form SQL server in this document.

Can you tell me if it exist PDF template like .dot for word ?
If such file exist is it possible to generate list of information like
aacount report with datas coming for Database like Sql server.

View Replies View Related

Output Js File To Be Saved

I used this in my php:

header("Content-Disposition: attachment; filename="rhythmFile.js")

Could" someone please translate it into ASP.

View Replies View Related

ASP Output To A Excel File

I have a asp page which will get the data from multiple tables (with
functions and procedures)and display data in HTML tables <TABLE> on ASP
page.Is there any way we can create a excel file from the output of this ASP
file.I know how to export if this information on ASP page is coming from single
query from a database table.

View Replies View Related

Create Output In PDF File

I'm generating one report using ASP file in MS-Excel file. How to take the same report in PDF format.

View Replies View Related

Writing Form Output To File

I need to be able to write results from a form picklist to a file. I know I
can append the output at the end of the file but is there a way to add the
output to a certain place in the file. i.e Code:

View Replies View Related

Writing Data To Output File

I am using PWS/IIS5.0 on W2000 and trying to write to a
file outside the directorytree of Inetpub.

The file is created with
Server.CreateObject("Scripting.FileSystemObject")

Every time I execute the ASP I end up with 403.9

I am not sure what the permissions on the directory I
should have??
Or could it be something else be wrong in my setup??

View Replies View Related

Emailing Output Of Uploaded File Field

I have the following code which dumps out the location of an uploaded file and the name of the person that uploaded the file. That works correctly. Now I am trying to email the file location and name and I am at a loss. How do I pull the results into an email?

SaveFiles = ""
ks = Upload.UploadedFiles.keys ......

View Replies View Related

How To Convert Asp File Output (in Tabular Form) In Excel

how to convert asp file output in excel dynamically.

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

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







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