Can Import And Execute A Macro Into An Excel File?
Oct 27, 2010
Is it possible to have an .aspx page open an Excel file, import a macro (saved in a .bas text file), and then run it? I've been able to do this in the past from a MS Access application, but I have no idea where to begin with asp.net.
I have been trying to import from an Excel file and insert it into a table. I can upload the Excel file. I can view the Excel file in a grid But when I run the import process to insert the rows in the Excel file I get only one row and it has all nulls except the dateentered and entered by field. I added breakpoints and tried setting a couple of the fields to labels and I could see that data was getting to the reader.
Below is my existing import. Well what is happending is I am loosing the users ability to post the excel fiel to the web server and then import it from there. I need to import the excel file directly from their local folders. SO they need to be able to pick it from there my documents and import the file into sql. IS this possible? An how can I change my code to allow them to pick the file and then import it. Still working in asp.net 1.1.
im using sqlbulkcopy to import all the columns and rows in an excel file to a database. My question is, if my database has 1 more extra column which i have to map it to a session variable and that extra column in the database is not found in the excel, isit possible to do something like dat?
i have different tables for product details, images, category mapping
is there any way to import/export products by excel file in database along with category mappying and pictures in one go rather that importing just the products and then categorizing each product and adding image one by one ?
instead of using gridview to insert student marks (I have hundreds of students) thought I used the Excel:
1) allow managers of each module after authentication to download the excel file (containing the students enrolled in the given module), the excel file ted is generated by the following code: Id_student ____ maks of subject1 -------- ----maks of subject2
But in this code I do not know how to:
* Add the following condition: the student'marks is between 0 and 20. * Calculate the average of this module : sum (coeff * mark) / sum (coeff)
2) Allowing responsable module send me the file containing the data (but then I do not know how)
3) Using data, by sending them to the database to calculate averages.
I'm still struggling with my scenario. I have looked everywhere for a solution and cannot find a solution. I am using C# and ASP.NET and I need to export data to an Excel spreadsheet.
I have a list of applications that contains Application objects. Each Application object has a status ID. When I export these applications to Excel then I need a column with a drop down/combo box in it. In this drop down/combo box should be a list of all the statuses from the database. And then I need the status to be selected to that of the application's status ID.
Another question is also with regards to the above scenario. When the user downloads the Excel document then the user can change the status of each application by selecting a different value in the drop down. I will need to upload this spreadsheet and loop through the rows and get the values of the columns and the value of the selected item in the drop down/combo box. How would you do this? Is this possible?
I may not use COM components, so I tried to go with EPPlus or NPOI (it does not have to be these 2) but it doesn't seem like they support my scenario. How would I be able to achieve my scenario? Once again, it doesn't have to make use of EPPlus and NPOI.
I have a page that import data from an excel sheet and I'm facing a weird problem. The sheet has 47 columns and over almost 72,000 rows. In my workstation I can import the data without problems and I have Office 2010 installed. In the server I have installed AccessDatabaseEngine for Office 2010 and when I try to import the data I receive the following error: The external table is not in the expected format. Rememberring I'm import the data to the same database. But when I break this excel file in files with less rows, it imports without problems.
I am working on a C# web application under visual studio 2005. I want to import data from text file or excel file into a SQL 2005 database. I have 3 columns in the text file separated by |, example of the text file format:
Can you tell me how to import data from text or excel file? Another question, if you provide a solution for the import from excel, can you note which office (2003 or 2007 or 2010)?