xls

How to upload xls file's data to SQL Server in devexpress popup control?

强颜欢笑 提交于 2019-12-24 08:08:40
问题 I have enquiry on how to insert xls file data into SQL Server. The upload button, and gridview control are placed inside the devexpress popup control and the code works without the popup control but doesn't work with popup control. When I inserted the xls file and clicked the upload button, the label display showed "Please select a file to upload!" although I have did this. ASP.NET markup: <dx:ASPxPopupControl ID="popupControl" ClientInstanceName="popupControl" AllowDragging="true"

Python parsing XLS with images

匆匆过客 提交于 2019-12-24 07:25:28
问题 Have a problem with extracting images from xls files. There a lot of variants to parse xls using python (some libraries I have found there http://python-excel.org - xlrd, xlwt). But have hot found any information about extracting images from xls files without exporting to the other format. For example, if i parse document with xlrd, it defines a cell with image as an empy str. 回答1: There are some questions about this on the python-excel mailing list. See for instance here and here. The answer

Primefaces excel export is not working - no open/save dialog is shown

◇◆丶佛笑我妖孽 提交于 2019-12-23 17:51:26
问题 I am trying to export collection of dtos to excel with primefaces like this (the same as primefaces showcase demo, which is working). <p:commandButton value="Export"> <p:dataExporter type="xls" target="results" fileName="game_statistics" /> </p:commandButton> I observed with firebug and it makes request, also the response looks like file content, but no file save/open dialog is popping. I am using mojarra 2.1.1 and tomcat 6 for app server. 回答1: The <p:commandButton> sends by default an ajax

How to parse a xls file? (Known languages : Python, Java, Lua)

混江龙づ霸主 提交于 2019-12-23 05:26:42
问题 I am trying to parse this xls file: http://web.iyte.edu.tr/sks/xls/Agustos_Menu_2012.xls Orange places have date and belove those dates there are food list of that day. So can you please suggest me a way to parse that to get dates and foods? I tried to convert that xls to comma seperated value but some characters are changing and i don't know how to get dates and foods into an array or a file in an organized way in order to use later.Thanks. 回答1: Probably the simplest and best option is using

Delete column from xls file [closed]

僤鯓⒐⒋嵵緔 提交于 2019-12-23 05:12:48
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . Using Python, I need to be able to do the following operations to a workbook for excel 2007: 1.delete colums I am looking into xlrd; however. Can anyone please tell me how could do this? 回答1: If you're working in Python 3.x, you'll find a lot of trouble using the xlrd / xlwt /

OLEDBConnection.Open() generates 'Unspecified error'

旧城冷巷雨未停 提交于 2019-12-22 10:54:01
问题 I have an application that uploads an Excel .xls file to the file system, opens the file with an oledbconnection object using the .open() method on the object instance and then stores the data in a database. The upload and writing of the file to the file system works fine but I get an error when trying to open the file on our production server only . The application works fine on two other servers (development and testing servers). The following code generates an 'Unspecified Error' in the

What's XLSHTML?

亡梦爱人 提交于 2019-12-22 09:15:33
问题 What's XLSHTML? I want to generate, as simply as possible, a file which will open in Excel when a user double-clicks it, and which has some minimal styling. XLS meets my user requirements, but it's not easy to generate. CSV is easy to generate but has no styling. HTML is easy to generate and has styling but won't open in Excel when double-clicked (you can File->Open it but that's not sufficient, and you can save it as .XLS but then the user gets a warning). I see in the file extension

How to check a column is hidden or not in excel file using apache poi

折月煮酒 提交于 2019-12-22 08:55:35
问题 I am trying to parse a xls file using apache poi. Is it possible to check whether a column is hidden or not. How can I get the width of a particular column. Example: According to the post here it checks if the row is hidden or not. Similarly I want to check the width of a column ( or check if the column is hidden or not) 回答1: you can set a column as hidden/unhidden by using sheet.setColumnHidden(int columnIndex, boolean hidden); e.g. sheet.setColumnHidden(2, true); // this will hide the

How to check a column is hidden or not in excel file using apache poi

点点圈 提交于 2019-12-22 08:54:18
问题 I am trying to parse a xls file using apache poi. Is it possible to check whether a column is hidden or not. How can I get the width of a particular column. Example: According to the post here it checks if the row is hidden or not. Similarly I want to check the width of a column ( or check if the column is hidden or not) 回答1: you can set a column as hidden/unhidden by using sheet.setColumnHidden(int columnIndex, boolean hidden); e.g. sheet.setColumnHidden(2, true); // this will hide the

Python - Validate if a sheet exists in my document xls

廉价感情. 提交于 2019-12-22 06:40:52
问题 I am trying to design a small program on my free time which loads an xls file, then select a sheet in the document to be scanned. Step 1: the user imports an .xls file . After importing the program checks whether the file exists. (That I can do ) Step 2: I ask the user to give the name of the document sheet xls to analyze. And that 's where it stops. the program does not detect the sheets available :( #check if the document exist while True: x = input("Give the name of the document in this