xls

Convert text files to excel files using python

我是研究僧i 提交于 2019-11-30 19:27:22
问题 I am working on INFORMIX 4GL programs. That programs produce output text files.This is an example of the output: Lot No|Purchaser name|Billing|Payment|Deposit|Balance| J1006|JAUHARI BIN HAMIDI|5285.05|4923.25|0.00|361.80| J1007|LEE, CHIA-JUI AKA LEE, ANDREW J. R.|5366.15|5313.70|0.00|52.45| J1008|NAZRIN ANEEZA BINTI NAZARUDDIN|5669.55|5365.30|0.00|304.25| J1009|YAZID LUTFI BIN AHMAD LUTFI|3180.05|3022.30|0.00|157.75| This text files can manually convert to excel files.But, I wanna ask, is

Response.ContentType application/vnd.ms-excel xls stopped working

岁酱吖の 提交于 2019-11-30 18:15:42
I've done some pretty deep searching on this issue with no luck. It seems that in the past couple of days the output to XLS from HTML has stopped working on many legacy (read: Classic ASP) systems I support. I've been able reproduce this on multiple servers, multiple independent source code from Office 2010 through Office 2016. I've looked at everything I can think of without success so I'm curious to know if there is something I might be overlooking. I'm starting to think this may be a bad Office update that is the culprit. Sample of what works and has been working for many years: <% Response

Swing表格数据转xls文档

痞子三分冷 提交于 2019-11-30 17:48:40
花了一下午的时间终于实现了Swing表格数据转xls文档与读取xls文档数据。 接下来上代码 1.弹出文件,目录选择框 exportBtn.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { String name = "数据.xls"; String defaultPath = "D://temp"; //构造文件保存对话框 JFileChooser chooser = new JFileChooser(); chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES); chooser.setDialogType(JFileChooser.SAVE_DIALOG); chooser.setMultiSelectionEnabled(false); chooser.setAcceptAllFileFilterUsed(false); chooser.setDialogTitle("保存数据文件"); //设置默认路径 File defaultFile = new File(defaultPath+"//data"); if(!defaultFile.exists()){

generate XLS files using PL/SQL

杀马特。学长 韩版系。学妹 提交于 2019-11-30 17:18:38
问题 I would like to generate XLS files using PL/SQL. This includes entring text into cells, coloring cells, bordering cells and merging cells. This may include also: different fonts, sizes, styles, alignings and colors of text different line arrangement, styles and colors of borders different types (number, text, time, date, boolean, ..) of cells Can please anyone direct me, where can I find any documentation, methods, examples.. - anything about how to do this. 回答1: Starting from MS Office 2003

Download excel file from page via WebApi call

那年仲夏 提交于 2019-11-30 17:16:56
I'm trying to send a 9MB .xls file as a response from web api controller method. The user will click a button on the page and this will trigger the download via the browser. Here's what I've got so far but it doesn't work however it doesn't throw any exceptions either. [AcceptVerbs("GET")] public HttpResponseMessage ExportXls() { try { byte[] excelData = m_toolsService.ExportToExcelFile(); HttpResponseMessage result = new HttpResponseMessage(HttpStatusCode.OK); var stream = new MemoryStream(excelData); result.Content = new StreamContent(stream); result.Content.Headers.ContentType = new

Read csv file from python [duplicate]

只愿长相守 提交于 2019-11-30 16:44:22
This question already has an answer here: How do I read and write CSV files with Python? 3 answers I had some data in excel file. I changed the file to .csv file and tried to write some python code to read the file. But I am getting some unpredictable outputs. My Code is like this: INPUT_DIR = os.path.join(os.getcwd(),"Input") OUTPUT_DIR = os.path.join(os.getcwd(),"Output") print INPUT_DIR, OUTPUT_DIR def read_csv(): files = os.listdir(INPUT_DIR) for file in files: file_full_name = os.path.join(INPUT_DIR,file) print file_full_name f = open(file_full_name,'r') for line in f.readlines(): print

Read csv file from python [duplicate]

落爺英雄遲暮 提交于 2019-11-30 16:35:53
问题 This question already has answers here : How do I read and write CSV files with Python? (4 answers) Closed 2 years ago . I had some data in excel file. I changed the file to .csv file and tried to write some python code to read the file. But I am getting some unpredictable outputs. My Code is like this: INPUT_DIR = os.path.join(os.getcwd(),"Input") OUTPUT_DIR = os.path.join(os.getcwd(),"Output") print INPUT_DIR, OUTPUT_DIR def read_csv(): files = os.listdir(INPUT_DIR) for file in files: file

Mixed Data Type in Excel, IMEX Doesn't Work

自闭症网瘾萝莉.ら 提交于 2019-11-30 16:35:51
I am trying to export xls into datatable. Below is my connection string. string path = //xls source path OleDbConnection MyConnection = new OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0; Data Source='" + path + "';Extended Properties='Excel8.0;IMEX=1;TypeGuessRows=0;HDR=No;ImportMixedTypes=Text'"); I set IMEX=1 and all the other extended properties as I have to deal with mixed datatypes. Even though I set the connection like that yet I still produced error. There are no error messages , but the inconsistent rows (who don't follow the majority datatype are set to null instead ). Can someone

Mixed Data Type in Excel, IMEX Doesn't Work

岁酱吖の 提交于 2019-11-30 16:18:44
问题 I am trying to export xls into datatable. Below is my connection string. string path = //xls source path OleDbConnection MyConnection = new OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0; Data Source='" + path + "';Extended Properties='Excel8.0;IMEX=1;TypeGuessRows=0;HDR=No;ImportMixedTypes=Text'"); I set IMEX=1 and all the other extended properties as I have to deal with mixed datatypes. Even though I set the connection like that yet I still produced error. There are no error messages ,

How can I modify an existing Excel workbook with Perl?

依然范特西╮ 提交于 2019-11-30 13:26:24
With Spreadsheet::WriteExcel , I can create a new workbook, but what if I want to open an existing book and modify certain columns? How would I accomplish that? I could parse all of the data out of the sheet using Spreadsheet::ParseExcel then write it back with new values in certain rows/columns using Spreadsheet::WriteExcel , however. Is there a module that already combines the two? Mainly I just want to open a .xls , overwrite certain rows/columns, and save it. Ether Spreadsheet::ParseExcel will read in existing excel files: my $parser = Spreadsheet::ParseExcel->new(); # $workbook is a