got stalled at at point that i can no longer get my thoughts together.the point, is in classic asp, stream an excel file from a firebird database.temporarly save it if necessary,stream it to the browser,delete the temp file
on googling, i found some examples but all assuming that the file is locally present.
on the other hand, i beleive that is possible to stream the binary file and the save it locally to then present it to the browser, but i can't figure out how.
may i know how to get got how many EXCEL sheet?i insert sheet1's data to MSSQL SERVER, but i wan to check whether sheet2 have any data onot. If have,then insert to db,else check next sheet.
I'm using this code in ASP that reads an excel sheet going across. But at time I want to read the excel sheet by going up or down. Is there a way to do this using this code or another? Code:
anybody can help me simulate excel sheet interface in asp and when i make changes to the excel sheet can i save it back to the database using the excel asp changes.
I am wanting to display a sheet from an excel file. I dont need to change/update it, just a simple display. Somthing like the 'Print Preview' you get in excel (that would be perfect).
i cant display the top row of the excel file. also if i try and access a cell that is empty i get an error. I need to display all cells from A1 - G60 if they have data in them or not.
I've got an application which manipulates data in a spreadsheet using ADODB.RecordSets. This works great and I am able to update the spreadsheet with no problems. However, it doesn't "recalc" the sheet even though the sheet is set for automatic calculation. Is there a way to get the sheet to "recalc"?
I've seen statement like obj.Caculate, but I get an error if I try to use statements like Server.CreateObject("Excel.Application"), so "calculate" doesn't work. Can I send it some keystrokes or get another procedure to kick off calculation?
I've read all about file uploads but i can skip that part. I'll be physically placing the excel sheet on the server for now. Each spread sheet will have the same number of columns and will match up. I need to transfer that to a matching table in my database.
i want to take the spread sheet and make it a comma separated list in notepad. i wanna take that and loop through it inserting each record as I go or something to that affect that won't take as long.
I have a master table employee , which contains the details of employees .
i have to upload the the data to this table from thye excel sheet by using asp.
that is -- what i have to do is , I have to provide a interface to browse the the excel sheet by user , afetr browsing the sheet user will submit the page and i have to read all the rows of excel sheet and update the table . if id exists in the table , then update the data otherwise append the data . Code:
I am trying to create an asp that will display part of an excel sheet. I have many hundered excel files and i want a page to view them.
the excel files do NOT have any header rows, i can't change the worksheets, is there any way i can display the contents of a work sheet? I have tried many ways but i seem to always have a problem displaying the top row.
all the excel files have been created using excel 97 if it makes any difference is there any way of doing this?
The problem is that in XP SP2, the IE instance opened for the vbscript only page no longer closes when Excel is closed. The user has to manually close this window. This didn't happen in XP SP1. Obviously there is a security change, but I have been unable to determine how to reverse it.
Does anyone know how I can get the IE instance to close when Excel closes in XP2 SP2?
i'm tryin to develop a webpage using classic ASP wherein the user can upload an excel sheet into an Oracle db table with the excel columns correspondin wit the oracle table columns.
i hv come across many ready made libraries/solutions that almost serve the purpose but they didnt work for me since most solutions wud populate the entire excel data into one column of the table. I wud like to know if anyone has a solution tht im lookin for specifically.
Does anyone know where I can find an easy example of how to read an Excel or XML file and automatically populate a table on a ASP page?
I want to create an asp page that has a table on it that reads from a XML or Excel file so I can update the file and the table information changes accordingly. I know this has to be somewhat simple but I cant seem to find any exmaples. I probably am not searching the right keywords or something.
Any suggestions on where to find an example script to do this?
I've noticed that Internet Explorer adds a number in square brackets to files downloaded from the internet and opened directly (i.e. by clicking 'Open' and not 'Save'). This creates a big problem with downloading Excel spreadsheets as square brackets are not a valid filename character inside Excel worksheet name.
When I click open, it opens the excel sheet with the sheet name as .xls[Sheet and the excel filename as Sheet[1].xls.
Then we get the following error....
While renaming a sheet or chart, you entered an invalid name. Try one of the following:
- Make sure the name you entered does not exceed 31 characters. - Make sure the name does not contain any of the following characters: : / ? * [ or ] - Make sure you did not leave the name blank.
I need to figure out how to make ASP add in the appropriate style sheet. Basically I want it to look, see what page it is on and say, 'Ok ... if this is the home page, use this style sheet ... if it is not, use this other style sheet.'
I am having trouble with css style sheet with asp code, everything was working till I put extra of css code in there, and I got error message state expected end statement,
Using regular VB ASP (not .net) and calling an Access database using ODBC, I've generated a recordset based a query... (no big whoop, obviously)
Now I want to be able to open a new XL spreadsheet (client side - we're assuming user has XL) and export that table to it. I've seen some posts about DoCmd.TransferSpreadsheet, and CreateObject("excel.application")... I've never actually used them before, so I don't know where to start.
I'd like to have a link on the page with the table to "export to XL"... and then have it open XL (client side) with that table in a spreadsheet.
when user click a button data will be fetched from database based upon condition and it will be exported to multiple sheets of a single excel work book. what I am doing, onclick of button in main page, I am invoking a new asp page through document.location.href=test.asp.
In test.asp page created a instance of excel.applicaion and then fetching data from backend and putting data to different workbook cells of the the excel and at the end making excel.visible=true but the problem is excel file not getting visible on client machine.
But when I remove some server side code and put the rest of code inside vbscripting tag in the main asp page then the excel file becomes visible on client machine. I am not getting the where the problem lies in the first part .
I have a page which streams an Excel spreadsheet to the user. It has worked fine for 12mths or more, but recently I found out that it wasn't working. I suspect the problem lies with IIS, but I'm not sure... When the user submits a form, the page should stream the file to the user - the user is presented with a standard Open/Save/Cancel dialog, which the would ordinarily save to their HDD. I have updoaded the code from the live server to my development machine (IIS5.1) - and this same code works fine. However, on the live server (IIS6), the user is presented with the dialog box, but rather than listing myfile.xls, it lists mypage.asp as the file to be downloaded.I think this must be an IIS6 issue but I don't know what. Some time before the problem was noticed, work had been done on the live server, but AFAIK nothing was done that was *intended* to affect this application.
Does anyone know how to create an attachment using a stream in classic ASP.I can see that it can be done in ASP.Net as per the article below: Initializes a new instance of the Attachment class with the specified stream and name. http://msdn2.microsoft.com/en-us/library/6sdktyws.aspx.
file.OpenAsTextStream(ForReading, _ TristateUseDefault) and then i read some lines.
Line = TextStream.readline
Then when i finished reading it i need to go to the begiining and read some lines again.But i dont see how to go back to the begining. I mean, Is there a way to go back to the first line of the file if i allready read some lines
We have an application, written in ASP, that uses the ADODB.Stream to be able to open files and write byte arrays to the Response object. If one of our administrators patches the web servers this application runs on in Windows Update, I'm screwed, right? You've essentially just disabled this COM object, for not only its evil purposes, but its useful ones?
Ok, I'm stumped on something that really shouldn't be this hard. I've created some cool code to transform a dataset via XSLT into SpreadsheetML (XML for Excel) and I'm storing the physical file on a file server. Now... I currently provide a hyperlink to view/save the file, but this won't work outside the network.
So, I've been working on making this hyperlink/linkbutton/button/whatever stream the file back to the user. How in the name of Zeus's butthole do I do this?
So, in simpler terms; how do I take a physical file and stream the sucker back? Ideally, I'd like this to work just like it does now with the physical link to the file. Click the link, it prompts you to save/open/cancel. Clicking Open pops up Excel and looky-looky, you see the file.