xls

How to selectively import an XLS into an SQL Server 2008 table?

馋奶兔 提交于 2019-12-13 06:29:40
问题 I have an XLS file. Let's assume that it has 1000 rows in all, with 10 columns. I would like to import rows 5 through 995 (say), and columns 1 though 7 and 10. How can I do this using an SQL query, either though OPENROWSET or BULK INSERT? I am using SQL Server 2008. 回答1: I had another idea. You could also use a Linked Server which connects to the Excel document. (This is probably an easier approach for you.) See: http://support.microsoft.com/kb/306397 回答2: I would approach this in a slightly

How I can dynamically generate url ( for generating xls report )?

三世轮回 提交于 2019-12-13 06:05:58
问题 Hello! I have this trouble: I'm searching reports by date and in html view everything is alright, BUT when I'm rendering xls view error appear, because it didn't receive params, so I need to pass them in URL for xls link_to generator. My controller: def show @website = Website.find(params[:id]) if params[:report] && params[:report][:start_date] && params[:report][:end_date] #search_by_created_at @performance_reports = @website.performance_reports.where("created_at between ? and ?", params[

ASP Classic Text Driver For Windows 2012

旧时模样 提交于 2019-12-13 05:45:43
问题 We have an old ASP Classic website which has been running on Windows 2003 and needs to be moved to 2012. Most of the site works apart from a section where we need to be able to upload CSV or Excel documents full of categories to the server. I know no Microsoft Driver existed at the time of Windows 2008 which is why we have had to leave the site on 2003 for so long but we are trying to solve this issue now either by -finding the correct MS Text/CSV/XLS driver for Windows 2012 -buying a

How to import xls into Azure Database?

霸气de小男生 提交于 2019-12-13 04:23:15
问题 Our database needs to be filled with the zip code for every state in our country, we are provided with a catalog of zip codes in a xls file, we have to import this file to a table in a database hosted in Windows Azure. I don't know if Stack Overflow allows me to post a link to our xls, but I'll describe the structure of the file: Every sheet holds the zip code information for a whole state, inside every sheet we have fifteen columns with information such as zip code, type of terrain, type of

How to read data from XLS (Excel) file in java or android

安稳与你 提交于 2019-12-13 01:28:47
问题 I'm using JExcelApi v2.6.12 jar file. http://www.andykhan.com/jexcelapi/download.html . I have a xml file like below image : now,I would like to get all row from this file: I'm following this answer How to read data from XLS (Excel) file [Java, Android] but it doesn't works and my result always returns "Data not found..!" my codes: private void test(){ String iconsStoragePath = Environment.getExternalStorageDirectory() + "/SmsBaz"; File sdIconStorageDir = new File(iconsStoragePath); String

Data Tables download xls/csv file not working properly

社会主义新天地 提交于 2019-12-12 17:09:01
问题 I want to have 3 buttons - to download csv, xls and pdf file. In my case when I click on the download csv file button, it saves with extension of csv file, but when I open it it is excel - it's not comma separated file. PDF download button is working correctly. xls button does not work - it's not clickable at all. I tried to write this code: "TableTools": { "aButtons": [ { "sExtends": "download", "sButtonText": "Download XLS", "sUrl": "/generate_xls.php" }] } But then each button download

Download a xls file from url into a dataframe (Rcurl)?

坚强是说给别人听的谎言 提交于 2019-12-12 15:24:33
问题 I'm trying to download the following url into an R dataframe: http://www.fantasypros.com/nfl/rankings/qb.php/?export=xls (It's the 'Export' link on the public page: http://www.fantasypros.com/nfl/rankings/qb.php/) However, I'm not sure how to 'parse' the data? I'm also looking to automate this and perform it weekly, so any thoughts on how to build this into a weekly-access workflow would be greatly appreciated! Have been google searching and scouring stackoverflow for a couple hours now to no

filtering XML tags using XSLT

回眸只為那壹抹淺笑 提交于 2019-12-12 04:44:55
问题 I have the following XML code. You will notice the tag Description is repeated, but with different attributes. I am using XSLT to try and remove the Description tag with the enabled attribute. <Batch> - <Promotion> <LastUpdated>2008-01-22T11:58:05+00:00</LastUpdated> <MajorVersion>1</MajorVersion> <MinorVersion>29</MinorVersion> <PromotionID>000873</PromotionID> <Description enabled="1">*P* Free Mistletoe</Description> <Description country="GB" language="en" variant="">WANTED LINE 1<

R can't manage “General” formatted cells when reading libreoffice generated xls

江枫思渺然 提交于 2019-12-12 02:05:45
问题 I switched to libreoffice for my spreadsheets, but I noticed an error when importing an xls file modified with libreoffice inside R using the gdata package's read.xls() function. If a column is formatted as General, then once in R the cells display General instead of the right value. To fix it I need to format every column to the proper format (number, text, etc), which i'd prefer to avoid since general better manage formatting (eg. automatically display the right number of significant digits

how transform from xml based on attributes to json and ignore the attributes from especific elements by using XSLT/XSL

六月ゝ 毕业季﹏ 提交于 2019-12-12 01:44:21
问题 I believe my question provides a good idea what I am trying to do. BTW, find below the incoming xml and desired json output. I found an excellent answer here Problems converting XML to JSON using XSLT about how to move from xml to json but my xml is a bit different. Kindly, note below that the values are part of the attributes. Additionally, I want to ignore the attributes from c:item. In other words, cod and package must be ignored. I know how to transform such xml based on attributes to