473,698 Members | 2,932 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP to Existing Excel Template

Hello,

Is it possible to send data from ASP and put it into a existing template? i
don't want to create an excel document I only want to send one piece of
information from ASP to the Exisiting Template.

Background: We have created a online quote number genetrator for our sales
team and we want it to open the excel quote template and put the quote number
on that excel template.
Any Ideas?

Mar 7 '06 #1
2 4234

"Brent Bortnick" <Br***********@ discussions.mic rosoft.com> wrote in message
news:B2******** *************** ***********@mic rosoft.com...
Hello,

Is it possible to send data from ASP and put it into a existing template? i don't want to create an excel document I only want to send one piece of
information from ASP to the Exisiting Template.

Background: We have created a online quote number genetrator for our sales
team and we want it to open the excel quote template and put the quote number on that excel template.
Any Ideas?


The procedure is unclear.

Do you want a user to initiate an ASP page that returns a new excel
spreadsheet based on a template and have the content of the sheet modified
by ASP?

Mar 10 '06 #2
"Brent Bortnick" <Br***********@ discussions.mic rosoft.com> wrote in message
news:B2******** *************** ***********@mic rosoft.com...
Hello,

Is it possible to send data from ASP and put it into a existing template?

i
don't want to create an excel document I only want to send one piece of
information from ASP to the Exisiting Template.

Background: We have created a online quote number genetrator for our sales
team and we want it to open the excel quote template and put the quote

number
on that excel template.


You probably don't want to do that. Subsequent order numbers will
overwrite the previous one. I suspect what you actually intend is to
use ASP to generate an individual Excel document that follows the
template you have designed, and insert your newly generated quote
number into the newly generated document, whilst also keeping any
previous documents.

If that is the case, then save the Excel template document as html,
open it up in an html/text editor and get the html source code. Create
an ASP file that will produce that html, inserting data wherever you
need it, and ensure that the following is put at the top of the ASP
file.

<%
Response.Conten tType = "applicatio n/vnd.ms-excel"
Response.AddHea der
"Content-Disposition","a ttachment;filen ame=<filename>. xls"
%>

This will generate an Excel document called whatever you place instead
of <filename> in the AddHeader line. It will also force a download
dialogue box on the user's browser.

If you just want to create an Excel document somewhere on the server,
without forcing a download, you can do the same as above - ie reverse
engineer your template, then use Scripting.FileS ystemObject to create
the document.

If you wanted to try to do something else, then do as Anthony suggests
- provide a bit more detail.

--
Mike Brind

Mar 10 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
3356
by: Axial | last post by:
Question: How to select columns from Excel-generated XML when some cells are empty. I've found examples where rows are to be selected, but I can't seem to extrapolate from that to selecting columns when some cells are empty. Is there a way to use the ss:Index to account for the missing <Cell elements? Thank you for any suggestions. ====================
4
18238
by: sunilkeswani | last post by:
I need help with exporting data from 2 access tables, into 2 existing spreadsheets in a single Excel file. Currently, I am using this code: DoCmd.TransferSpreadsheet acExport, 8, "Table1", "D:\Test.xls", True
1
4144
by: gssstuff | last post by:
Hi I have a need to send data from Access to an existing Excel template that I am using for reporting purposes. The nature of the data in the Access data table does not lend itself to a simple "CopyFromRecordset" (at least I don't think so) I got some info from the microsoft: http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q247412&ID=KB;EN-US;Q247412&LN=EN
3
1816
by: sandeshmeda | last post by:
I have a XML file that is basically a Excel file saved as XML. I need to be able to change the XML into a different format. I was thinking one approach would be to: 1. Populate the dataset based on the XML file I get from excel 2. Use a WriteXML to create a XML file in the format I need. Will this work? How do I get started on this? Are there any other alternate ways of doing this?
3
3282
by: RJN | last post by:
Hi I've a template excel file which has all the calculations defined. There are certain input values to be entered which gives a lot of output to the user. I don't want to expose the excel sheet to the user as calculations become visible. I'm writing a web interface which takes the input values from user, updates the excel sheet and returns the recalculated output from the excel file. I'm using ADO.Net to update and read the excel file.
4
5838
by: Marco Aschwanden | last post by:
Hi I would like to 1. import an existing Excel-sheet (a template) 2. and add some data to it 3. and save it under a different name afterwards. To me it seems, that pyExcelerator does not support the reading for modification of an Excel-sheet. It allows only the "parse_xls" but I would like to keep the "formatting" in the template.
10
3114
by: Esmael | last post by:
Hi to all, /*****************************/ OS-WIn XP SP2 VB6 SP6 /*****************************/ Is their anyone who can help me with this: Source code written on VB6.
1
6403
by: ielamrani | last post by:
Hi, I have the following code which works fine. It export current access form record to an excel sheet: DoCmd.OutputTo acOutputForm, "frmsubformtest", acFormatXLS, "C:\Details.xls", True Is it posible to append data from this form to an existing template excel sheet that already have the same columns names. thanks in advance.
13
2983
by: Peter | last post by:
VS2008 ans ASP.NET 3.5, Office 2003 What is the best way to run Excel Template from ASP.NET web page were the Excel is only installed on the client without any ActiveX? If so can someone point me to an example? Do not have Sharepoint. This is for Intranet and security is not important. Thank You
0
8683
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9170
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7741
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6531
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5867
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4624
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2341
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.