I need to give users the option to enter a zip-code in a html form, and then search through an excel-file for that zip-code. If any entries are found, then I have to output these as html.
How should i start? And what if several users tries to search the excel-file at once?
Basically I need to search the excel-file as I would search a db.
I've done a few searches on google, but haven't really found any relevant info.
Is there a way to get records containing a whole word? I've heard regular expressions can do it, but I can't make one work in an ASP / MS Access SQL Query
sSQL="SELECT PageTitle FROM Pages WHERE PageTitle LIKE '%cat%' " rs.open etc
I have a directory which I would like to search and list the latest file together with it date and time, I've found the following from w3schools for a particular file but do not know how to search a folder and sub folders for the latest file:
dim fs,f set fs=Server.CreateObject("Scripting.FileSystemObject") set f=fs.GetFile("c: est.txt") Response.Write("File last modified on: ") Response.Write(f.DateLastModified) set f=nothing set fs=nothing
I am taking over a script that was created by someone else. I am trying to do a search for one card that is listed in two different categories, and I only want it to bring the card up once.
Right now it is bring up a page with the same card listed twice. Which is correct, cause it is listed in category 2 and in category 4. I want it to bring up the card from category 4 with the title DG006. And only show the card once.
It works if the file in on the server side, how to use the component (DSOleFile) with the file on the client side? Also how can I calculate the width of the file. (Page set up - Landscape or porrait). Code:
The title looks a bit odd, but it is what I really need I have different users, which I get the information from them in an ASP page, the data is stored in a SQL database, one of these users is authorized to check and close the data entry. Once the data entry is closed, an ‘Excel’ file should be generated according the entered data and be placed in a directory for use of other users. My problem is how I can generate the mentioned ‘Excel’ file by clicking a button in an ASP page and transfer the recorded data in it.
I have to add a feature, on click of button file open as dialog box will open and user can attach a excel file. Then we can able to validate, actually file attached or not, it is excel file or not etc.. if everything is ok app will will do further processing on the file.. Can anybody suggest me the easy way out without licencing issues.. Since vbscript and jscript is used any fee tool available...I tried to do it through MSComDlg.CommonDialog but it is a licenced version. Also I tried to do it through <input type=file> but here one text box and browse button gets added..
I am trying to create an excel file consisting of data from a SQL database using asp. I dont want the file to open up in the browser. I want the file to be opened in Microsoft excel. I have seen similar questions out here but no answers.
One of the pages of my application opens an Excel 2000 workbook in a new window using Javascript. The workbook is read only and I use a window.open command to open the workbook. On the workbook's BeforeClose event I have a code to avoid the 'Save' dialog: Me.Saved = True
If I open the page locally, change some content and close the workbook, the 'Save' dialog does not appear, as expected. As soon as I open the workbook on the web, the 'Save' dialog still appears when I close the window. I need to allow my users to change the contents of the workbook but they cannot save the workbook. Is my approach wrong? How can I avoid the 'Save' dialog?
Can anyone help with this? Here is the code I am using. The problem is, where it checks if a file exists, it always goes to else. Even if the file is there, it won't open the file, goes straight to else part of statement.
<% If Session("strLogID") = "" Then Response.Redirect("http://website/pages/login.asp")
I am creating a webpage and have a form where a visitor will choose a day, month, and year. I want to pass the data from the form into an asp page which will process it and put it into a string and open the excel file requested. The excel file to open will depend on the day, month, and year chosen in the form.
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.
How to import a text file into Excel file using macro? Can this process run on the form menu button? I have attached a text file for your reference. Please give me some ideas of doing it
I' m trying to import an Excel file in a SQLServer db. If I specify the spreadsheet name it works correctly. Now I'd like to import the spreadsheet without specify its name. Is there a way to retrieve the spreadsheet names of my Excel file in ASP?
After a user make the search, it returns 100 rows of record on the display page. I want to give an option for the user to save the records as Excel spreadsheet. Like a small icon on the corner, it prompts to save if click.Can anyone teach me how to do it? or have a simple tutorial or code that i can see?
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).
I have a SQL query to generate the report for me in SQL Query Analyzer. I would like to create an ASP page that has a link, and when people click on that link, it will prompt a download message (open or save) in Excel format. Is there any codes can do this?
I need to write a program that can create an excel file and copy all the data obtains from a database to the excel file. Then save and close the excel file or do all of the above in the backgroud. if you have written similar program or know where I can find the sample code for this feature.
How do i export content of an ASP page to multiple worksheets of an excel workbook. For example i'm having an asp page which contains a combo box. The user selects a center from the combo box and results are displayed. On clicking 'Export to Excel' i'm exporting the page to excel.
If the user is going to select 'All' option from the combo box, results for all centers are displayed. Now while clicking 'Export to Excel', the content of each center should be exported to a single worksheet. If 10 centers are there, then the workbook should contain 10 worksheets (sheet1, sheet 2... sheet10).
If there are any tutorials out there or websites that can explain more about this? How to get data from an excel file(or any other file like a .txt) and inserting them into a database using asp? can this be done in asp?
how can a make a select to a database and then stored the results into an excel datasshet using vbscript. I already know how to connect to the database and make the query.
From ASP I create response, which is to be shown as an Excel worksheet in the user's browser (by setting the ContentType and creating a table). This works fine.
Does anybody know what to do, if one of the cells should contain a multiline text? I already tried by inserting a <br> inside the <td>. But this won't work.
I have a bunch of Excel reports that I would like to display on my company's intranet. The reports contain priviledged information, however. My plan was to have a page with a dropdown box so someone could pick the report they need to view. This page can be secured with a session object, etc. But what is to keep an unauthorized person from accessing a file by typing. Is there something I could configure in IIS? Set permissions?
1.) I've done this using macros in excel but I can't get the macros to run with the security of the xls file. I can't change the security, how can I make that particular macro safe?
2.) Now that I have macros running in excel, i'd like to know how to implement them into my asp page. I can't just copy and paste my macro b/c it wouldn't know what file it's looking for. I need help putting a macro on my page pointing at any given xls (dynamically as they will change)
3.) When running the macro in excel, i have problems with the output. Currently (until i get a better grasp on getting it running) i am using a macro from MSDN called quotecommaexport (which obviously makes a comma separated list of the data from excel) and the problem is when the xls shows ########## instead of the value b/c of lack of space.
It works when I span out the column and shows the value, the correct value is exported. Otherwise, it exports "#############" which does nothing for me. How can i get it to export the value without me physically spanning out the columns to give the value room. (I know this question may not make sense) Code: