473,903 Members | 6,365 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 4256

"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
3362
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
18246
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
4155
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
1829
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
3293
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
5866
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
3131
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
6414
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
2999
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
9999
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
9847
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11283
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
10875
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8049
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
5894
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4727
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
4308
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3324
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.