Opening Excel file now shows column type in field value...
Just in the last 2 weeks, excel files that have fields set as 'General' are now displaying the word 'General' in the field. If you change it to another type (i.e. number or text) then it just displays the value. The file is originally created in OpenOffice and saved as an MS Excel file and works fine being opened in Excel on Micorsoft. It only has this problem on the iPhone and just started in the last 2 weeks. Any ideas?
Hi Vijay,
Just go through with this thread may be it will help you......
Are You All Able to get the Output In EXCEL Format
Regards
Ravi
Similar Messages
-
Create Excel file in application server but the field value is incorrect
Hi Experts,
i am facing a problem when create excel file in application server using OPEN DATASET command.
the internal table have 4 field and one of those field contains 19 digit number --> ICCID.
the code running well, successfully create EXCELfile in application server but the problem is SAP only copy exactly first 15 digit numeric only and the rest became zero 0
Example :
the field value in internal table is 8962118800000447654 but when i opened in the excel file the value became 8962118800000440000.
and if i add alphabet like a8962118800000447654 then it is correct.
is there is anything wrong with my code?
here is my code
CONSTANTS: c_tab TYPE abap_char1 VALUE cl_abap_char_utilities=>horizontal_tab. "Tab Char
Data : begin of lt_zdsdmmdt00005 occurs 0,
SERNR (18) type c,
MSISDNl(20) type c,
BOX1 (20) type c,
ICCID(30) type c,
end of lt_zdsdmmdt00005.
data : ld_temp(100) type c.
i_file = '/usr/sap/DM/test_excel.xls'.
open dataset i_file for output in legacy text mode.
loop at lt_zdsdmmdt00005.
move lt_zdsdmmdt00005-ICCID to ld_iccid .
concatenate lt_zdsdmmdt00005-sernr lt_zdsdmmdt00005-MSISDN lt_zdsdmmdt00005-BOX1 ld_iccid
into ld_temp separated by c_tab.
transfer ld_temp to i_file.
endloop.
close dataset i_file.
Best Regard,
Akbar.Hi Naveen,
thanks for your reply,
i already tried and the result still the same. any idea?
Best Regard,
Akbar. -
Is there a way to open Excell file from the server and display in the UI and save it back on to the
Hello there,
Is there a way to open Excell file from the server and display in the UI and save it back on to the server? (like showing xell file as a datagrid - add rows, columns etc.)Hi Mike,
Welcome you to the forum.
You may try:
SELECT * FROM MyDBNameHere.dbo.OUSR T0
Thanks,
Gordon -
I am a novice
When I open excel file I found some problems.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Reflection;
using System.Windows.Forms;
using XLS=Microsoft.Office.Interop.Excel;
using WD=Microsoft.Office.Interop.Word;
using Microsoft.Office.Core;
namespace ExcelDataFillWord
public partial class Form1 : Form
public Form1()
InitializeComponent();
private void button1_Click(object sender, EventArgs e)
// Scheduler sched = new Scheduler();
//foreach (Task t in sched.Tasks)
// Console.WriteLine(t.ToString());
// foreach (Trigger tr in t.Triggers)
// Console.WriteLine(tr.ToString());
private void label1_Click(object sender, EventArgs e)
FileDialog.Filter = "excel文件|*.xls|Excel文件|*.xlsx";
FileDialog.Multiselect = false;
FileDialog.Title = "打开excel文件";
if (FileDialog.ShowDialog() == DialogResult.OK)
textBox1.Text = FileDialog.FileName;
object missing = System.Reflection.Missing.Value;
//object missing = Type.Missing;
CloseProcess();
//'Excel::Application excel =new Excel::ApplicationClass();
Microsoft.Office.Interop.Excel.Application excel= new Microsoft.Office.Interop.Excel.Application();
//Excel::Workbook Wk =(Excel::Workbook )Xls.Workbooks.Open(textBox1.Text, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing,
missing, missing, missing, missing);
Microsoft.Office.Interop.Excel.Workbook workbook =(Microsoft.Office.Interop.Excel.Workbook) excel.Application.Workbooks.Open(textBox1.Text , missing, missing, missing,
missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing);
//comboBox1.Items.Clear();
//foreach (Excel::Worksheet Sh in Wk.Worksheets)
// comboBox1.Items.Add((Sh.Name).ToString());
workbook.Close(missing, missing, missing);
excel.Quit();
private void CloseProcess()
System.Diagnostics.Process[] excelProcess = System.Diagnostics.Process.GetProcessesByName("EXCEL");//实例化进程对象
foreach (System.Diagnostics.Process p in excelProcess)
p.Kill();//关闭进程
System.Threading.Thread.Sleep(10);//使线程休眠10毫秒
problem is : can't change excel.applicaitonclass's Com object to interface
so I want to ask a question:
excel.application is a interface ,then interface variant = a class( it inherients this interface) object
but interface is a abstract object ,It has no construct function . why We use Excel.Applcation xsl=new Excel.Application();Hello,
Perhaps this will help. Open an Excel file, select a sheet, range then set a value, save then close. The idea here is not to write or save but demo a few basic operations.
Also note 'as is' all memory is cleaned up without resorting to what many do, force the garbage collector. This is important if objects are not cleaned up it is very possible in extreme cases to bring a machine down so one should ensure all objects are cleaned
up which only comes from well written code be it C# or VB.NET
using System;
using System.Data;
using System.Data.OleDb;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using Excel = Microsoft.Office.Interop.Excel;
namespace Example_C1
public partial class Form1 : Form
public Form1()
InitializeComponent();
public void OpenExcelExample(string FileName, string SheetName)
if (System.IO.File.Exists(FileName))
bool Proceed = false;
Excel.Application xlApp = null;
Excel.Workbooks xlWorkBooks = null;
Excel.Workbook xlWorkBook = null;
Excel.Worksheet xlWorkSheet = null;
Excel.Sheets xlWorkSheets = null;
Excel.Range xlCells = null;
xlApp = new Excel.Application();
xlApp.DisplayAlerts = false;
xlWorkBooks = xlApp.Workbooks;
xlWorkBook = xlWorkBooks.Open(FileName);
xlApp.Visible = false;
xlWorkSheets = xlWorkBook.Sheets;
for (int x = 1; x <= xlWorkSheets.Count; x++)
xlWorkSheet = (Excel.Worksheet)xlWorkSheets.get_Item(x);
if (xlWorkSheet.Name == SheetName)
Proceed = true;
break;
System.Runtime.InteropServices.Marshal.FinalReleaseComObject(xlWorkSheet);
xlWorkSheet = null;
if (Proceed)
Excel.Range xlRange1 = null;
xlRange1 = xlWorkSheet.get_Range("A1");
xlRange1.Value = "Hello";
Marshal.FinalReleaseComObject(xlRange1);
xlRange1 = null;
xlWorkSheet.SaveAs(FileName);
else
MessageBox.Show(SheetName + " not found.");
xlWorkBook.Close();
xlApp.UserControl = true;
xlApp.Quit();
ReleaseComObject(xlCells);
ReleaseComObject(xlWorkSheets);
ReleaseComObject(xlWorkSheet);
ReleaseComObject(xlWorkBook);
ReleaseComObject(xlWorkBooks);
ReleaseComObject(xlApp);
MessageBox.Show("Done");
else
MessageBox.Show("'" + FileName + "' not located. Try one of the write examples first.");
private void ReleaseComObject(object obj)
try
System.Runtime.InteropServices.Marshal.ReleaseComObject(obj);
obj = null;
catch (Exception)
obj = null;
private void button1_Click(object sender, EventArgs e)
OpenExcelExample(System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "WS1.xlsx"), "Sheet3");
private void releaseObject(object obj)
try
if (obj == null)
System.Runtime.InteropServices.Marshal.ReleaseComObject(obj);
obj = null;
catch (Exception ex)
obj = null;
MessageBox.Show("Exception Occured while releasing object " + ex.ToString());
finally
GC.Collect();
Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. -
Error while opening Excel file with Add-ins "CtExcelLinksWeb.xll" for BOFC
Hi,
While opening an excel sheet with the Add-ins, "CtExcelLinksWeb.xll", the following error is being displayed,
The file you ar trying to open , "CtExcelLinksWeb.xll", is in different format than specified by the file extension.
Verify that the file is not corrupted and is from a trusted source before opening the file. Do you wnat to open the file now?
If any setting is required for solving the error kindly help me on it.
Thanks
PrityHi ,
I think you are using older version,use microsoft excel 2007 version,then it will opens.
Regrads,
SVS
Edited by: svskumar on Aug 19, 2010 12:18 PM -
Problem in opening excel file in different window
hi
i want to open excel file in different window it open in same window properly on the bases of condition but when i try to open in different with window.open( )
it give error that file has already used or path not exist OR requisted site either unavailable
how can i rectifiedHi.
I am too facing the same problem. I am using Jakarta Poi to display my resultset in an excel sheet directly(and not into a jsp)
The browser opens a window showing Open Save Cancel. If i click and save the excel sheet and then open, it opens. But clicking on Open directly doesnt open the excel sheet. Rather it gives the same error
The file name or path name does not exist.
The file you are trying to open is being used by another progrtam . close the document in other program and try again
The name of the work book your tring to save is the same as name of another document that is readonly .try saving workbook with different name
Can somebody please help me fix this problem, since its an urgent requirement. Mail me at [email protected]
Thanks
Hitesh -
Cannot open Excel files on Windows share and ONLY Excel files
I'm browsing a Windows share and for whatever reason it will not let me open Excel files directly from the network location. If I view the Coverflow, I can see a a preview of the actual file as well as copy it to the desktop and open it.
I receive an error message that says "filename.xls could not be found."
I can open up any other file from the network location, but not Excel files.
I checked the file permissions and they mirror the other file types, it may be worth mentioning that I utilize network synchronization and view these files from a PC as well. I also noticed when I create a new file in that location, it will only appear in OS X and not Windows, but is still completely accessible.
Any help is appreciated!
ThanksRe: Windows 8 vs. Excel problem
Does your new Dell computer have MS Office installed?
Jim Cone
Portland, Oregon USA
https://jumpshare.com/b/O5FC6LaBQ6U3UPXjOmX2 -
Problem opening excel files exported from Discoverer Plus 10.1.2.48.18
I can't open excel files (xls) exported from Discoverer Plus 10.1.2.48.18 when I enable macros. The application (Excel) hangs up.
Someone have any idea about this?
Thanks,
DiegoHi Meifang
I did some more research and found a document on MetaLink 250820.1 that talks about Discoverer not being able to call Excel if Discoverer is running via an IP address instead of a qualified domain name.
The article talks about making Discoverer a trusted site in the Internet Options of IE. Here's the relevant info from the posting:
Workaround for MS IE (if necessary):
1. Open a new MS IE browser
2. Navigate to: Tools | Internet Options Security where you will see the Trusted Sites icon (green icon with a check mark)
3. Click the Sites button
4. Add the following: http://IP:port/
(where IP, port are the location of where Discoverer server is running)
5. Click the OK button
6. Click the OK button again
On my own PC, I was having a similar problem and I was unable to get Excel to launch. In the end I did this:
1. Open a new MS IE browser
2. Navigate to: Tools | Internet Options | Security where you will see the Local Intranet icon (computer icon against a globe)
3. Click the Local Intranet button
4. Click the Sites button
5. Click the Advanced button
6. Add the following: http://IP/ or http://website
(where IP or website are the location of where Discoverer server is running)
7. Click the Add button
8. Click the OK button
9. Click the OK button again
10. Click the OK button a third time
With this done, I made sure that my Explorer settings were correct by doing the following to ensure that a couple of settings for the .xls & .html file types are unchecked:
1. Open Windows Explorer
2. Navigate to: Tools | Folder Options | File Types tab
3. Highlight the Extension XLS (or HTML)
4. Click the Advanced button
5. At the botton of the screen are three settings that use checkboxes. If either of the following two are checked, un-check them:
Confirm Open after Download and Browse in same window
6. Click the OK button
7. Click the Apply button
8. Re-boot the PC
After I did this I was successfully able to get Excel to open from within Discoverer.
Best wishes
Michael -
Possible cause of "Cannot open Excel file error"?
Hi!
Here's my problem: one of our LabView applications creates .xls Excel
files. However some of these files are too big to be opened into
Excel, so we need to open these files in DIAdem to analyse the data (in
fact, even the smaller ones often need to be analysed in DIAdem).
The problem is that DIAdem seems totally unable to open Excel files,
small or big, created by our LabView application or not. The
error message appearing when we try to import Excel files is "Cannot
open Excel file"... which doesn't give any clue about the cause of the
error. My question is: what may cause this error to
occur? I searched both the help and the website without finding
useful information.
The computer is running on WinXP with OfficeXP installed, and we are
using DIAdem 9.0. If additionnal information is required, just
let me know.
Thanks in advance!
Maxime B.Hi!
I did some experiments this morning. First of all, the file I had
created using Excel that I tried to open yesterday just opened. I
don't know why it didn't work yesterday, but, for now, it's
working. Now, for my LabView-created files, I still get the same
error message. However, if I open the files in Excel and try to
save, a warning message appears, saying that the file may not be
compatible with the text (separator:tabulation) format. If I
ignore the warning and save the file as a .xls file, I can now import
it into DIAdem. The problem is probably that my LabView-created
files are not "real" .xls files. Now, this is a problem, because
I can't open some of the bigger files in Excel without having the data
truncated (Excel has a maximum of 65536 rows); last year, using DIAdem
8.X (I don't remember the exact version we had), I could open those
files without any trouble... Is there any way to get those files to be
opened with DIAdem 9.0? I attached one of those files if it may help.
Thanks!
Maxime B.
Attachments:
Data1.xls 152 KB -
Need to open excel file and read comment field on ipad
Hi,
I need to open excel files on my ipad and read the comment fields that our ofiice wrote for me . But this doesn´t work .
I tried it over several apps (office2HD, etc.) but with no result.
It´s also necessary to work on our office google drive for me ..
Can someone help me with this problem???
BR
GunnarCALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = p_file
i_begin_col = 1
i_begin_row = 4
i_end_col = 12
i_end_row = 60000
TABLES
intern = it_excel
EXCEPTIONS
inconsistent_parameters = 1
upload_ole = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF NOT it_excel[] IS INITIAL.
SORT it_excel BY row col.
LOOP AT it_excel.
CASE it_excel-col.
WHEN 1.
it_file-hiden = it_excel-value.
WHEN 2.
it_file-budat = it_excel-value.
WHEN 3.
it_file-ltext = it_excel-value.
WHEN 4.
it_file-subsystem = it_excel-value.
WHEN 5.
it_file-work = it_excel-value.
WHEN 6.
it_file-role = it_excel-value.
WHEN 7.
it_file-sgtxt = it_excel-value.
WHEN 8.
it_file-company = it_excel-value.
WHEN 9.
it_file-megbtr = it_excel-value.
WHEN 10.
it_file-realbtr = it_excel-value.
WHEN 11.
it_file-comment = it_excel-value.
ENDCASE.
AT END OF row.
APPEND it_file.
CLEAR it_file.
ENDAT.
ENDLOOP.
ELSE.
MESSAGE i000 WITH 'The input file is empty'.
STOP.
ENDIF. -
How to list all currently open Excel files with ActiveX?
Hello all!
I would like to program with ActiveX a way to retrieve a list (array of strings) of the filenames of the currently opened Excel files in windows. However, I am fairly new to the ActiveX/Excel business in LV and after hours looking at the "millions" of objects in the property nodes I give up and hope some kind soul here can help me. I couldn't find any information in this forum regarding the same issue, although some were close
I am using LV 7.1 without the Report Generation Toolkit.
Thanks!
/GoranHi KC,
thanks for your reply. I have in fact been able to find the desired things in the ActiveX properties/methods for Excel in LabView. It took me some looong work going through the functions which I suspected to be the ones. Anyway, I post a little jpeg here of the code if someone ever needs the same functionality. What it does is that it checks how many Excel workbooks are open and controls if each of them matches the searched Excel filename, if one does, it is closed.
Enjoy
/Goran
Attachments:
List open excel sheets and close open ones.jpg 104 KB -
I have some users in my company that can't open Excel files from any document libraries on SharePoint 2010. The receive the error message "An error occurred. Please try again." We don't currently use the Excel calculations services. When
a user opens an excel file they are prompted to either Read Only or Edit.
This affects less than 5 people in a large company. They have the Full Control permissions and have been able to open the files previously. There has been no changes made to the server either. I can't find anything that points to this in the
event viewer.
It doesn't matter if which computer that they try to open this up from either. All computers are Windows 7 Professional with IE 9 and Office 2010 x64.
I can't find anything that points specifically to this exact error. None of the excel files contain pivot tables. This one has me stumped.I would make sure no one has open on machine / locked on machine (Would assume you checked this, but wanted to add)
Also would have assumed you restarted the machines (:))
Make sure the file security did not change (check to ensure no one changed the sercuity of the excel)
Make sure the version of excel is the same (Changing from 2010 back to 2007 affects the file, etc.. on convert) that no one converted and saved thus causing error in file.
Can they open other excel files?
It sounds like the excel file it self has changed if you cannot see issue in SharePoint logs.
If it is all SharePoint excel files - try deleting one persons access and readding them to see if that helps.
SharePoint has issues ;) -
Can't open Excel files from Sharepoint 2013
I am having an issue with opening Excel files from SharePoint 2013. If I click on an excel file it comes up with the error below.
If I click Try again I get the message below also:
If I try to open Word or PDF files they open correctly in the appropriate client and I have the option of checking them out and editing them. Any ideas why this would only be happening to Excel files?
Thanks,
ShaunHi Shaun,
I understand that the Excel files cannot be opened from SharePoint in Microsoft Excel.
Can these files be viewed in the browser?
I recommend to download a copy of the files with issue and then open them in Excel to see if the issue still occurs.
If above cannot work, I recommend to repair Office.
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
When Opening Excel file, there is a message
Dear BPC Experts:
When I open excel files in BPC NW 7.0, there is a warning message saying "Programmatic access to Visual Project in not trusted"
Does anyone have suggestion for this message? Thanks in advance.
-Fred
Edited by: Fred Cheng on Jul 22, 2009 10:47 AMFrom MS Excel 2003 goto Tools > Macro > Trusted Publishers > check on the option Trust access to Visual Basic Project. From the Security Level tab - click on the Medium option.
From MS Excel 2007 click on Office button in the top-left corner, then click on the Excel options from the pop-up window. Click on the Trust Center option > Trust Center Settings > Check on the option Trust access to the VBA project object model. Also check the option Disable all macros except digitally signed macros.
Best regards,
[Jeffrey Holdeman|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/jeffrey+holdeman]
SAP BusinessObjects
Enterprise Performance Management
Regional Implementation Group -
Hi All,
Does anyone know how to launch Excel file in HTML or jsp?
Wait...i know one method to open Excel fiel using
Window.open(blah...blah..)
In this case we can specify toolbar option..
But in my application i am loading excel file in frame.But frame doesnt have any option to set toolbar.....
Please let me know if you have soln for this....
Regards,
SuryaHi,
I can open excel file using window.open...but my requirement is forcing me to open it in frame....And i m able to open it properly in frame...but i want toolbar to come along with that frame...
according to folowing lin they say it is not possible have scenario like this...
http://support.microsoft.com/kb/157353/EN-US/
Please see whether you can help in this regard...
Maybe you are looking for
-
Viewing a User's Calendar on Windows - Can it Be Done Yet?
Goodmorning all, I am already sure the answer is still no but has anyone found away to allow Windows users to view a iCal Server user's calendar? The webcal looked like the job but you need to hand over your password. Not very satisfactory solution.
-
Can we make some fields mandatory on CAT5 selection screen ???
Hi Experts, Can we make some of the fields mandatory on CAT5 selection screen. I want to make posting period as an mandatory field. Thanks in advance. Regards,
-
Huawei e170 dongle, where do I find out what firmware it has on it?
Does anybody know how to find it? I have problems running it and thought the firmware is not up to date to run under SL? Also how to update the FW if needed?
-
This has frustrated me and I think I've diagnosed the problem but I need help! The problem occurs in Messages for Mountain Lion. I've set up my AIM buddy list and everything seems like it's working. But, when I try to add a buddy, it doesn't matter w
-
Accessing iTunes account from multiple computers
I added iTunes gift cards to my account from one competer but cannot see the balance when logging in from another computer - any help appreciated