Microsoft Excel Worksheet to text

Hi,
Is there any way to convert Microsoft excel sheet into a text file through a java program.....

Hi,
Have you used those apis.
I am trying to run a program which writes into a excel sheet. I am able to compile the code but not able to run it.I get this error
Exception in thread "main" java.lang.NoSuchFieldError: INFO
at org.apache.poi.util.POILogFactory.<init>(POILogFactory.java:120)
at org.apache.poi.hssf.HSSFLog.<init>(HSSFLog.java:85)
at org.apache.poi.hssf.HSSFLog.getPOILogger(HSSFLog.java:92)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<clinit>(HSSFWorkbook.java
:115)
at ReadExcelSheet.<init>(ReadExcelSheet.java:13)
at ReadExcelSheet.main(ReadExcelSheet.java:29)
Moreover they still dont have the release version for POI project.

Similar Messages

  • Data open/save-as in Excel worksheet

    Hi all,
    i created implement one diagram into my existing vi for opening and saving the data in microsoft excel worksheet but it doesn't work. I have been looking through Excel Macro Example but couldn't make sense of it much.
    still new in this and will really appreciate if someone can give me any insights for my problem.
    thank you
    Attachments:
    Excel messedup.vi ‏40 KB

    You need to learn about data dependency!
    In your VI you are performing three actions simultaneously:
    Reading from an instrument and collecting data and then writing it to a text file in tab-delimited format, and then reading that file, but not doing anything with it.
    Opening an Excel workbook and then a worksheet, and then closing the reference to the workbook.
    Opening the Excel application and then closing it the reference to it.
    Why do you need to open/close Excel if you're already writing the data to a text file in tab-delimited format? Excel can read this directly.
    I would strongly suggest going through the LabVIEW tutorials that discuss data dependency and how to code in LabVIEW.

  • Microsoft Excel & Documents to Go

    I am having issues with Microsoft Excel worksheets. When I get it as an email on my ipad it will show up with muliple worksheets and tabs at the top of the page. If I then put this document in Documents to Go and sync, it then shows up on my ipad with only 1 worksheet when there may be multiple worksheets. Why is this? Can anyone help with this?
    Thank you!
    Vanessa

    Yes, it looks like a sheet of paper.
    When you tap that, you have to scroll left or right to go through the sheets. Select the one you want and then tap on it to go into it.

  • Main.vi creates 2D Arrays and I want to save the arrays in an microsoft Excel file(e.g engine_1)and in differnt worksheets(e.g. measure_1;measure_2;...)

    main.vi creates 2D Arrays and I want to save the arrays in an microsoft Excel file(e.g engine_1)and in differnt worksheets(e.g. measure_1;measure_2;...)
    The path(Grundpfad)for the excel file should be inserted in the main.vi.

    1. There's a shipping example called Write Table To XL.vi (Help>Find Examples>Communicating with External Applications>ActiveX>Excel) that you can use as a starting point.
    2. Buy the LabVIEW Report Generation Toolkit. Info can be found here.
    3. Search this forum for other examples of writing to Excel.

  • Help and some explanation how to get a Microsoft.Office.Tools.Excel.Worksheet host item that extends the functionality of the current Microsoft.Office.Interop.Excel.Worksheet object

    Hello,
    I would use some help and more info about how to get host object that extends the functionality of my current Interop.Excel.Worksheet object. I read this artical: https://msdn.microsoft.com/en-us/library/ee794671.aspx where I can call this function
    GetVstoObject to get host object. But I see that here I need to pass the Globals.Factory object as second parametar. Can someone give me more details about that parameter and how to access it? I would like to get host object so I can access extension
    property, since my interop excel worksheet doesn't have it.  
    I am using Visual Studio 2013 for developing Excel addin. Using Excel 2010.
    Thanks in advance for help.
    Regards,
    Zeljka

    Hi Zeljka,
    >>I am using the Microsoft Office PIAs, so my question is how to access this automatic generated class Globals in my case?   <<
    Sorry, I am not able to understand the application you were developing exactly. From the orgnal post, you were developing an application level add-in, however based on the description above, it seems that you were building an console or Windows form application
    to automate Office application.
    If you were developing Office automation, the host item can't work for this secnario since it should run under the VSTO runtime.
    If I misunderstood, please feel free to let me know.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Unable to open embedded Microsoft Excel 97-2003 worksheet in Microsoft Word 2013 docx document?

    Below is the steps to reproduce this issue.
    1. Open Microsoft Word 2013, create a blank Word document.
    2. Insert Ole object of type Microsoft Excel 97-2003 worksheet or Microsoft Word 97-2003 document.
    3. Save the document as Docx format and close the document. (Saving as Doc format works fine)
    4. Open the saved Docx format in Microsoft Word 2013, now try opening the Ole object.
    5. Error message is thrown as below image.

    Hi,
    This issue might be caused by the third-party software/add-in on your machine, interfering with the OLE process (the technical thing that lets you create/edit an object from an outside application inside Word).
    Based on my tested with my local environment (Office 2013 & Windows8.1), if I enabled some Excel Com add-ins with Microsoft Excel 97-2003 worksheet, I would get the same error when I embedded it to Microsoft Word 2013 DOCX file. Then, I go to Excel>file>options>add-ins.
    Then down the bottom select COM Add-ins from the drop down menu and hit go. Uncheck everything. After that, I could embedded the Microsoft Excel 97-2003 worksheet well.
    Please try the suggestion and hope it's helpful.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Copy a table in Safari and paste special, as text, to an Excel worksheet

    I am attempting to write Applescript code to copy a table in Safari and paste special, as text, to an Excel worksheet.
    When I perform the operation manually, all the rows of the Safari table are pasted into Excel in a single column, i.e. after all of the data in a row of a table is pasted vertically into Excel,the next row is pasted in the next open cell below in the same column, as I need it.
    When I use the applescript line..."paste special on worksheet format text" Excel pastes the table data in rows AND columns , like the table looks in Safari, but I do not want it pasted this way.
    Any ideas on how to get my Applescript code to perform the same manual operation?
    Thanks!

    I do not know what Excel you have, but to copy a table from a Safari's page, you could use the table tags of the page's source to get the table you want.
    That is, use text item delimiters.
    deivy

  • Map Excel worksheet into Oracle tables repository

    I am new to VB2005. I am working on VB code that can map(read) any table from excel worksheet and load it into Oracle table. Oracle table that I have are: 1)META_OBJECTTYPES(OBJECTTYPEID pk,OBJECTTYPENAME,OBJECTTYPEDESC, OBJECTMETATYPE,OBJECTDOMAIN).
    2) META_OBJECTS(OBJECTKEY PK,OBJECTTYPEID FK,OBJECTNAME,OBJECTDESC).
    3)META_OBJECTDEPENDENCIES(SRCOBJECTKEY FK, TGTOBJECTKEY FK,DEPENDENCYTYPE PK)
    4)META_OBJECTATTRIBUTES((OBJECTKEY FK, OBJECTATTRNAME PK,OBJECTATTRVALUE). NOTICE META_OBJECTTYPES IS PARENT TO META_OBJECTS AND META_OBJECTS IS PARENT TO (META_OBJECTDEPENDENCIES AND META_OBJECTATTRIBUTES) AND ALL PARENT HAS 1 TO MANY REALTIONSHIP TO CHILD TABLES. For example I have employee table in Excel worksheet that has two columns employee_id number, employee_name varchar2(50) I need my vb code map table name employee with its 2 columns into my 4 tables that I have in Oracle repository,
    My code so far just insert values into oracle tables in repository, but what is require is mapping table with contents into oracle tables.
    Imports System
    Imports System.Data ' VB.NET
    Imports Oracle.DataAccess.Client ' ODP.NET Oracle data provider
    Imports Excel = Microsoft.Office.Interop.Excel
    Public Class Form1
    'System.Data.OracleClient lets you access Oracle databases.
    Public con As System.Data.OracleClient.OracleConnection = New System.Data.OracleClient.OracleConnection() 'Oracle.DataAccess.Client.OracleConnection()
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Dim xlApp As Excel.Application
    Dim xlWorkBook As Excel.Workbook
    Dim xlWorkSheet As Excel.Worksheet
    Dim range As Excel.Range
    Dim rCnt As Integer
    Dim cCnt As Integer
    Dim Obj As Object
    xlApp = New Excel.ApplicationClass
    xlApp.Visible = True
    xlWorkBook = xlApp.Workbooks.Open("c:\employee.xls")
    xlWorkSheet = xlWorkBook.Worksheets("sheet1")
    range = xlWorkSheet.UsedRange
    For rCnt = 2 To range.Rows.Count
    For cCnt = 1 To range.Columns.Count
    Obj = CType(range.Cells(rCnt, cCnt), Excel.Range)
    MsgBox(Obj.value)
    Next
    Next
    xlWorkBook.Close()
    xlApp.Quit()
    releaseObject(xlApp)
    releaseObject(xlWorkBook)
    releaseObject(xlWorkSheet)
    End Sub
    Private Sub releaseObject(ByVal obj As Object)
    Try
    System.Runtime.InteropServices.Marshal.ReleaseComObject(obj)
    obj = Nothing
    Catch ex As Exception
    obj = Nothing
    Finally
    GC.Collect()
    End Try
    End Sub
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim daOracle As New OracleDataAdapter
    Dim InsertCommand As New OracleCommand
    daOracle.InsertCommand = New OracleCommand
    '1.Create connection object to Oracle database
    Dim con As OracleConnection = New OracleConnection()
    Try
    '2.Specify connection string
    con.ConnectionString = ("Data Source=dprod;User Id=smughrabi; Password=Sul9966")
    '3. Open the connection through ODP.NET
    con.Open()
    Dim cmd As OracleCommand = New OracleCommand
    cmd.Connection = con
    cmd.CommandType = CommandType.Text
    cmd.CommandText = "insert into meta_objecttypes values (4,'TABLE', 'TABLES','ERstudio','Demo')"
    cmd.ExecuteNonQuery()
    'You have to commit to be inserted into DB
    cmd.CommandText = "commit"
    cmd.ExecuteNonQuery()
    'Catch ex As Exception
    '4.display if any error occurs
    'MsgBox(ex.Message, Microsoft.VisualBasic.MsgBoxStyle.Exclamation, "OraScan")
    Finally
    ' Close and Dispose OracleConnection object
    con.Close()
    con.Dispose()
    End Try
    End Sub
    Private Sub Add_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Add.Click
    Dim daOracle As New OracleDataAdapter
    Dim InsertCommand As New OracleCommand
    daOracle.InsertCommand = New OracleCommand
    '1.Create connection object to Oracle database
    Dim con As OracleConnection = New OracleConnection()
    Try
    If TableName.Text = "" Then
    MsgBox("Please enter the tablename", MsgBoxStyle.Exclamation, "OraScan")
    Exit Sub
    End If
    MsgBox(TableName.Text, MsgBoxStyle.Exclamation, "OraScan")
    '2.Specify connection string
    con.ConnectionString = ("Data Source=gema;User Id=dare; Password=rtae")
    '3. Open the connection through ODP.NET
    con.Open()
    Dim cmd As OracleCommand = New OracleCommand
    cmd.Connection = con
    cmd.CommandType = CommandType.Text
    cmd.CommandText = "select * from user_objects where object_name='" + UCase(TableName.Text) + "' and object_type='TABLE'"
    cmd.ExecuteNonQuery()
    'You have to commit to be inserted into DB
    'cmd.CommandText = "commit"
    'cmd.ExecuteNonQuery()
    MsgBox("Command executed successfully", MsgBoxStyle.Exclamation, "OraScan")
    'Catch ex As Exception
    '4.display if any error occurs
    'MsgBox(ex.Message, Microsoft.VisualBasic.MsgBoxStyle.Exclamation, "OraScan")
    Finally
    ' Close and Dispose OracleConnection object
    con.Close()
    con.Dispose()
    End Try
    End Sub
    Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TableName.TextChanged
    End Sub
    End Class

    Thanks Lyndon, what I need is map any table someone create in Excel worksheet to Oracle repository.For example to map Excel worksheet(employee)table with its 2 columns to oracle table META_OBJECTTYPES(OBJECTTYPEID pk,OBJECTTYPENAME,OBJECTTYPEDESC, OBJECTMETATYPE,OBJECTDOMAIN). In my case I have 2 objecttypes 1)table(employee) and 2nd columns:employee_id,employee_name
    --for inserting table info manually into DB:
    INSERT INTO META_OBJECTS
    (OBJECTKEY, OBJECTTYPEID,OBJECTNAME,OBJECTDESC)
    VALUES
    (META_OBJECTS_SEQ.NEXTVAL,
    4, --TABLE  
    'employee',--notice this is table name from Excel worksheet
    'Table to store employee info')
    --for inserting columns info:
    INSERT INTO META_OBJECTS
    (OBJECTKEY, OBJECTTYPEID,OBJECTNAME,OBJECTDESC)
    VALUES
    (META_OBJECTS_SEQ.NEXTVAL,5,'employee_id or name','employee column')
    notice above I insert manually Excel worksheet employee table with its two cols into oracle meta_objecttypes. What I want is VB to do this I mean if I go to Toad and erase what I insert in meta_objecttypes when I run vb, the program should map table employee with its 2 cols to Toad(DB). I hope it is clear now. Please refer to 1 st post for 3 other tables in DB

  • Map Excel worksheet into Oracle tables in repository

    I am new to VB2005. I am working on VB code that can map(read) any table from excel worksheet and load it into Oracle tables. Oracle tables that I have are: 1)META_OBJECTTYPES
    (OBJECTTYPEID pk,OBJECTTYPENAME,OBJECTTYPEDESC, OBJECTMETATYPE,OBJECTDOMAIN).
    2) META_OBJECTS(OBJECTKEY PK,OBJECTTYPEID FK,OBJECTNAME,OBJECTDESC).
    3)META_OBJECTDEPENDENCIES(SRCOBJECTKEY FK, TGTOBJECTKEY FK,DEPENDENCYTYPE PK)
    4)META_OBJECTATTRIBUTES
    (OBJECTKEY FK, OBJECTATTRNAME PK,OBJECTATTRVALUE).
    NOTICE META_OBJECTTYPES IS PARENT TO META_OBJECTS AND META_OBJECTS IS PARENT TO (META_OBJECTDEPENDENCIES AND META_OBJECTATTRIBUTES) AND ALL PARENT HAS 1 TO MANY REALTIONSHIP TO CHILD TABLES. For example, I have employee table in Excel worksheet that has two columns employee_id number, employee_name varchar2(50) I need my vb code map table name employee with its 2 columns into my 4 tables that I have in Oracle table repository,
    My code so far just insert values into oracle tables in repository, but what is require is mapping table with contents into oracle tables. If my expanation isn't clear plz let me know.
    Imports System
    Imports System.Data
    Imports Oracle.DataAccess.Client '
    Imports Excel = Microsoft.Office.Interop.Excel
    Public Class Form1
    'System.Data.OracleClient lets you access Oracle databases.
    Public con As System.Data.OracleClient.OracleConnection = NewSystem.Data.OracleClient.OracleConnection()
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Dim xlApp As Excel.Application
    Dim xlWorkBook As Excel.Workbook
    Dim xlWorkSheet As Excel.Worksheet
    Dim range As Excel.Range
    Dim rCnt As Integer
    Dim cCnt As Integer
    Dim Obj As Object
    xlApp = New Excel.ApplicationClass
    xlApp.Visible = True
    xlWorkBook = xlApp.Workbooks.Open("c:\employee.xls")
    xlWorkSheet = xlWorkBook.Worksheets("sheet1")
    range = xlWorkSheet.UsedRange
    For rCnt = 2 To range.Rows.Count 'rows in Excel start from row2
    For cCnt = 1 To range.Columns.Count 'column in Excel start from col1
    Obj = CType(range.Cells(rCnt, cCnt), Excel.Range)
    MsgBox(Obj.value)
    Next
    Next
    xlWorkBook.Close()
    xlApp.Quit()
    releaseObject(xlApp)
    releaseObject(xlWorkBook)
    releaseObject(xlWorkSheet)
    End Sub
    Private Sub releaseObject(ByVal obj As Object)
    Try
    System.Runtime.InteropServices.Marshal.ReleaseComObject(obj)
    obj = Nothing
    Catch ex As Exception
    obj = Nothing
    Finally
    GC.Collect()
    End Try
    End Sub
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim daOracle As New OracleDataAdapter
    Dim InsertCommand As New OracleCommand
    daOracle.InsertCommand = New OracleCommand
    '1.Create connection object to Oracle database
    Dim con As OracleConnection = New OracleConnection()
    Try
    '2.Specify connection string
    con.ConnectionString = ("Data Source=gema;User Id=dare; Password=rtae")
    '3. Open the connection through ODP.NET
    con.Open()
    Dim cmd As OracleCommand = New OracleCommand
    cmd.Connection = con
    cmd.CommandType = CommandType.Text
    cmd.CommandText = "insert into meta_objecttypes values (4,'TABLE', 'TABLES','ERstudio','Demo')"
    cmd.ExecuteNonQuery()
    'You have to commit to be inserted into DB
    cmd.CommandText = "commit"
    cmd.ExecuteNonQuery()
    Finally
    ' Close and Dispose OracleConnection object
    con.Close()
    con.Dispose()
    End Try
    End Sub
    Private Sub Add_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Add.Click
    Dim daOracle As New OracleDataAdapter
    Dim InsertCommand As New OracleCommand
    daOracle.InsertCommand = New OracleCommand
    '1.Create connection object to Oracle database
    Dim con As OracleConnection = New OracleConnection()
    Try
    If TableName.Text = "" Then
    MsgBox("Please enter the tablename", MsgBoxStyle.Exclamation, "OraScan")
    Exit Sub
    End If
    MsgBox(TableName.Text, MsgBoxStyle.Exclamation, "OraScan")
    '2.Specify connection string
    con.ConnectionString = ("Data Source=gema;User Id=dare; Password=rtae")
    '3. Open the connection through ODP.NET
    con.Open()
    Dim cmd As OracleCommand = New OracleCommand
    cmd.Connection = con
    cmd.CommandType = CommandType.Text
    cmd.CommandText = "select * from user_objects where object_name='" + UCase(TableName.Text) + "' and object_type='TABLE'"
    cmd.ExecuteNonQuery()
    'You have to commit to be inserted into DB
    'cmd.CommandText = "commit"
    'cmd.ExecuteNonQuery()
    MsgBox("Command executed successfully", MsgBoxStyle.Exclamation, "OraScan")
    Finally
    ' Close and Dispose OracleConnection object
    con.Close()
    con.Dispose()
    End Try
    End Sub
    Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TableName.TextChanged
    End Sub
    End Class

    Don't know if this will help you or not, but I have some code that will read from and Excel spreadsheet and put the data into a DataSet (i'm sure something else could be used).
    string connectionString =
    @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=d:\\testRead.xls;Excel 12.0;HDR=YES;IMEX=1";
    DbProviderFactory factory =
    DbProviderFactories.GetFactory("System.Data.OleDb");
    DbDataAdapter adapter = factory.CreateDataAdapter();
    DbCommand selectCommand = factory.CreateCommand();
    selectCommand.CommandText = "SELECT * FROM [dogs$]";
    DbConnection connection = factory.CreateConnection();
    connection.ConnectionString = connectionString;
    selectCommand.Connection = connection;
    adapter.SelectCommand = selectCommand;
    DataSet cities = new DataSet();
    adapter.Fill(cities);
    GridView1.DataSource = cities;
    GridView1.DataBind();
    Your provider might be different; the one above is for Office 2007. The [dogs$] in the selectCommand.commandText is the name of the worksheet in Excel.
    Hope this helps

  • ActiveX Save As function for Microsoft Excel 97- Excel 2003 & 5.0/95 Workbook (*.xls)

    Can someone show me how to use Active X - Save As function?
    I want to save it in  Microsoft Excel 97- Excel 2003 & 5.0/95 Workbook (*.xls)
    thanks in advance!
    Best regards,
    Krispiekream
    Solved!
    Go to Solution.

    Oh,
    I thought people stopped reading my other post so I posted another.
    sorry.
    but i found the solution
    FileFormat variant name integer code
    Microsoft Excel Workbook xlWorkbookNormal -4143
    Web Page xlHTML 44
    Template xlTemplate 17
    Text (Tab Delimited) xlCurrentPlatformText -4158
    Unicode Text xlUnicodeText 42
    Microsoft Excel 5.0/95 Workbook xlExcel5, xlExcel7 39
    Microsoft Excel 97-2000 & 5.0/95 Workbook xlExcel9795 43
    CSV (Comma Delimited) xlCSV 6
    Microsoft Excel 4.0 Worksheet xlExcel4 33
    Microsoft Excel 3.0 Worksheet xlExcel3 29
    Microsoft Excel 2.1 Worksheet xlExcel2 16
    Microsoft Excel 4.0 Workbook xlExcel4Workbook 35
    WK4 (1-2-3) xlWK4 38
    WK3, FM3 (1-2-3) xlWK3FM3 32
    WK3 (1-2-3) xlWK3FM3 15
    WK1, FMT (1-2-3) xlWK1FMT 30
    WK1, ALL (1-2-3) xlWK1ALL 31
    WK1 (1-2-3) xlWK1 5
    WKS (1-2-3) xlWKS 4
    WQ1 (Quattro Pro/DOS) xlWQ1 34
    DBF 4 (dBASE IV) xlDBF4 11
    DBF 3 (dBASE III) xlDBF3 8
    DBF 2 (dBASE II) xlDBF2 7
    Formatted Text (Space Delimited) xlTextPrinter 36
    Text (Macintosh) xlTextMac 19
    Text (MS-DOS) xlTextMSDOS 21
    CSV (Macintosh) xlCSVMac 22
    CSV (MS-DOS) xlCSVMSDOS 24
    DIF (Data Interchange Format) xlDIF 9
    SYLK (Symbolic Link) xlSYLK 2
    I know that its saving in the correct format. BUT I don't know why it wouldnt save 2 worksheets, but instead it only have 1.
    Best regards,
    Krispiekream

  • I require excel worksheet and word pad in apple ipad4 retina display,  how can i found in ipad or  similar file in ipad

    Sir I have used apple IPad 3 wifi ,  I need wordpad and excell worksheet for my office work. how can i found in apple ipad , or any other similar application in IPad
    Satish Karanjkar.
    Pune

    More ways to transfer files and access Word documents:
    https://discussions.apple.com/thread/4044866?tstart=0
    iWork
        * Keynote
        * Numbers
        * Pages
    DocsToGo
    • VIEW/EDIT/CREATE Word & Excel files(Office 2007/2008/2010)
    • VIEW PowerPoint, PDF, iWork, Text, .RTF, and more!
    • Send & receive attached supported documents using the built-in Mail app
    • FREE desktop application with your purchase! Compatible on Win & Mac allows you 2-way file sync with a WIFI connection.
    • Open & Edit files within DocsToGo from any 3rd party app that supports the “Open In” feature
    • Supports iTunes File Sharing via USB cable for manually moving files
    https://itunes.apple.com/us/app/documents-to-go-office-suite/id317117961?mt=8
    Quickoffice Pro HD
    Create and edit ALL Microsoft® Office -- document, spreadsheet, and presentation formats, as well as view PDF files, on the go. Our advanced file manager lets you manage local files, access Google Drive or other cloud accounts, and works with your iPad email attachments so you can work anywhere, anytime - online and offline.
    https://itunes.apple.com/us/app/quickoffice-pro-hd-edit-office/id376212724?mt=8

  • ALV in Microsoft Excel 2000

    Hi.
    I am trying to use ALV functionality in Web Dynpro ABAP. When downloading to excel I only see the xml data. Is it possible to use the ALV functionality with Microsoft Excel 2000? If not, is there anyway to use the framework by doing some modifications?
    Thanks!
    /Elvez

    Hi Thomas,
    thanks for the reply. OSS note 1064756 is already in the system. When I look at the code, via the debugger, it seems to follow the path for Excel 2000/97. In other words, SAP supports Excel 2000. Nevertheless, when I open the excelsheet it displays the xml data:
    MIME-Version: 1.0
    X-Document-Type: Worksheet
    Content-Type: multipart/related; boundary="----=_NextPart_123"
    ------=_NextPart_123
    Content-Location: file:///C:/xyzhtm
    Content-Transfer-Encoding: text/html
    Content-Type: text/html; charset="utf-8"
    <html xmlns="http://www.w3.org/TR/REC-html40" xmlns:alv="http://www.sap.com/ALV/2.5" ...>
    I tried to remove the part before the <html>-tag and then everything worked fine. Do you know if there is a way to remove the initial information before and after the <html>-tags?
    Thanks!
    /Elvez

  • Importing metadata from Microsoft Excel or Access to Adobe Bridge CC metadata

    I'm trying to figure out how to batch import a substantial amount of metadata in Microsoft Excel or Access to the IPTC core fields in Adobe Bridge CC. I've seen the issue discussed, but many of the posts about it are six or seven years old. So here are the simplest statement of the questions:
    1. Is it possible to export data from Excel or Access to XMP and then batch-import it in Adobe Bridge CC?
    2. If it requires templates, are there commercial, shareware, or freeware templates that will achieve this?
    3. If so, what are the links to those repositories?
    4. Is there a set of step-by-step instructions to achieve this on PC and/or Mac?
    5. What are the links to those instructions?
    Thanks in advance for your help. I've used Bridge from CS1... but I've never used it for batch-importing to IPTC.

    Well,
    it works for me without problems.
    Some information on my setup and what I did:
    - my primary browser language is English (en-us)
    1) Save the data in a file called hardware.txt:
    SERIAL,HOSTNAME,ITEM_TYPE,BRAND,MODEL,OWNER,STATUS
    AEP016136,d2vmrw61,Laptop,Dell,m71,Gary Cleary,Active
    AEP016169,dhj3b71,Desktop,Dell,Dimension 4700,Unassigned,Active
    AEP016170,cn-0g8432-64180-52p-1yts,Monitor,Dell,E193FP,Unassigned,Active2) Load the data (Load text data) into an existing table by uploading a file:
    - File: hardware.txt
    - Separator: , (comma)
    Worked fine.
    3) Load the data (copy /paste spreadsheet data into an existing table):
    - Open the file hardware.txt in Excel and import it into the spreadsheet
    - copy all three lines and paste them into the textarea in XE (the difference is that the columns are no longer separated by commas but by tabs)
    Worked fine as well.
    Please try the above mentioned steps and see whether you still get the error.
    ~Dietmar.

  • MICROSOFT WORD OR MICROSOFT EXCEL 를 REPORT VEIWER로 설정하는 방법

    제품 : AOL
    작성날짜 : 2005-04-26
    MICROSOFT WORD OR MICROSOFT EXCEL 를 REPORT VEIWER로 설정하는 방법
    ==========================================================
    PURPOSE
    MICROSOFT WORD OR MICROSOFT EXCEL 를 REPORT VEIWER로 설정하고자 할때
    참고하는 문서
    Explanation
    아래와 같은 절차에 따라 IE에서 Embeded 형태로
    MICROSOFT WORD R MICROSOFT EXCEL 를 볼수 있습니다.
    1.Viewer type을 추가합니다, Word 와 Excel Type 두개 모두 해야합니다.
    2.Sysadmin responsibility권한으로 Login
    3.Navigate as follows:
    Install -> Viewer Options
    4.다음 two lines 을 추가하고 저장한다.
    File Format Mime Type Description
    Text text/11i excel 11i excel
         Text     text/11i word     11i word
    5.다음을 실행합니다.
    5.1. Navigate to Profile --> System
    5.2. Search for %viewer%
    5.3. Click on the "Viewer:Application for Text". You should get the "…"
    5.4. Select either the 11i Excel or 11i Word option.
    (In this example choose 11i Word.)
    5.5. Save the configuration.
    5.6. Log out and log in again
    5.7. Login as sysadmin responsibility
    5.8. Go to "File" at the top and choose "Log on as a different user"
    If you don't have any reports that you can view then run a simple
    report like active users.
    5.9. Navigate to Requests --> View
    5.10. Choose View All My Requests
    5.11. Find the Active user report or any other report you wish to use.
    5.12. The Netscape Browser should come up and you will get a dialogue
    window that says the following:
    File Download
    "You have chosen to download a file from this location.
    What would you like to do with this file?"
    5.13. You have two choices. Open the file or save the file to disk.
    5.14. You also have a check box that if you uncheck it you will no
    longer get this window.
    5.15. Select Open this file from it's current location.
    5.16. You will now see the following window:
    "Open With
    Click the program you want to open the file 'file' with"
    5.17. In the top of the box put in a description you will be able to
    find later. In this case put in "11i word type".
    5.18. Go down on the list and find winword. Make sure that the Always
    use this program to open this file is checked and click OK.
    Reference Documents
    Note 119505.1

    I got this message when trying to use Excel 2003. I went to Microsoft's web site's community and entered the error message that you got. There was a solution offered that worked for me although I cannot remember now what it was. You might also try Microsoft's knowledge base for any possible answers for this problem. IMHO, I believe this is an Office 2003 problem and not an Acrobat problem.
    I usually find the answers to problems such as these on Microsoft's web site. Good luck.
    Ken Friedman

  • WebUtil and Microsoft Excel: Setting cell border properties

    I'm using the CLIENT_OLE2 package shipped with WebUtil to create a Microsoft Excel spreadsheet from an Oracle 10g Form and, so far, have managed to:
    - Create multiple worksheets
    - Populate cells with values and formulae
    - Format cells, including setting font name and size, setting bold italic and underline attributes
    The final requirement is to set a border on a cell or group of cells, but this is where I'm stumped. My code thus far looks like this:
    DECLARE
      l_application   CLIENT_OLE2.OBJ_TYPE ;
      l_workbooks     CLIENT_OLE2.OBJ_TYPE ;
      l_workbook      CLIENT_OLE2.OBJ_TYPE ;
      l_worksheets    CLIENT_OLE2.OBJ_TYPE ;
      l_worksheet     CLIENT_OLE2.OBJ_TYPE ;
      l_cell          CLIENT_OLE2.LIST_TYPE ;
      l_borders       CLIENT_OLE2.OBJ_TYPE ;
    BEGIN   
      l_application := CLIENT_OLE2.CREATE_OBJ('Excel.Application') ;
      l_workbooks := CLIENT_OLE2.GET_OBJ_PROPERTY(l_application,'Workbooks') ;
      l_workbook := CLIENT_OLE2.GET_OBJ_PROPERTY(l_workbooks,'Add') ;
      l_worksheets := CLIENT_OLE2.GET_OBJ_PROPERTY(l_workbook,'Worksheets') ;
      l_arguments := CLIENT_OLE2.CREATE_ARGLIST ;
      CLIENT_OLE2.ADD_ARG(l_arguments,'Sheet1') ;
      l_worksheet := CLIENT_OLE2.GET_OBJ_PROPERTY(l_workbook,'Worksheets',l_arguments) ;
      CLIENT_OLE2.DESTROY_ARGLIST(l_arguments) ;
    --  Select cell A1
      l_arguments := CLIENT_OLE2.CREATE_ARGLIST ;
      CLIENT_OLE2.ADD_ARG(l_arguments,1) ;
      CLIENT_OLE2.ADD_ARG(l_arguments,1) ;
      l_cell := CLIENT_OLE2.GET_OBJ_PROPERTY(l_worksheet,'Cells',l_arguments) ;
      CLIENT_OLE2.DESTROY_ARGLIST(l_arguments) ;
      l_borders := CLIENT_OLE2.GET_OBJ_PROPERTY(p_cells,'Borders') ;
    --  What happens next...?
    --  Clean up
      CLIENT_OLE2.RELEASE_OBJ(l_borders) ;
      CLIENT_OLE2.RELEASE_OBJ(l_worksheet) ;
      CLIENT_OLE2.RELEASE_OBJ(l_worksheets) ;
      CLIENT_OLE2.RELEASE_OBJ(l_workbook) ;
      CLIENT_OLE2.RELEASE_OBJ(l_workbooks) ;
      CLIENT_OLE2.RELEASE_OBJ(l_application) ;
    END ;I'd be obliged for a pointer in the right direction!

    Well, in spite of 80-odd views, it looks like I've answered my own question.
    The borders around a range of cells in Excel are actually separate elements of the Borders object. You need to specify which border you want and set it individually. The code below draws a border around cells A1 to C3. Note the constants defined at the top of the listing; these are the "actual" values of the corresponding Excel constants that are referenced in the VBA code if you draw the border by hand while recording a macro.
    Enjoy!
    DECLARE
      c_automatic     CONSTANT NUMBER := -4105 ;  -- ColorIndex = xlAutomatic
      c_thin          CONSTANT NUMBER := 2 ;      -- Weight = xlThin
      c_medium        CONSTANT NUMBER := -4138 ;  -- Weight = xlMedium
      c_thick         CONSTANT NUMBER := 4 ;      -- Weight = xlThick
      c_continuous    CONSTANT NUMBER := 1 ;      -- LineStyle = xlContinuous
      c_edge_left     CONSTANT NUMBER := 7 ;      -- Border = xlEdgeLeft
      c_edge_top      CONSTANT NUMBER := 8 ;      -- Border = xlEdgeTop
      c_edge_bottom   CONSTANT NUMBER := 9 ;      -- Border = xlEdgeBottom
      c_edge_right    CONSTANT NUMBER := 10 ;     -- Border = xlEdgeRight
      l_application   CLIENT_OLE2.OBJ_TYPE ;
      l_workbooks     CLIENT_OLE2.OBJ_TYPE ;
      l_workbook      CLIENT_OLE2.OBJ_TYPE ;
      l_worksheets    CLIENT_OLE2.OBJ_TYPE ;
      l_worksheet     CLIENT_OLE2.OBJ_TYPE ;
      l_range         CLIENT_OLE2.LIST_TYPE ;
      PROCEDURE draw_border (
        p_range       IN CLIENT_OLE2.LIST_TYPE,
        p_side        IN NUMBER,
        p_weight      IN NUMBER)
      IS
        l_edge      CLIENT_OLE2.LIST_TYPE ;
        l_border    CLIENT_OLE2.OBJ_TYPE ;
      BEGIN
        l_edge := CLIENT_OLE2.CREATE_ARGLIST ;
        CLIENT_OLE2.ADD_ARG(l_edge,p_side) ;
        l_border := CLIENT_OLE2.GET_OBJ_PROPERTY(l_range,'Borders',l_edge) ;
        CLIENT_OLE2.DESTROY_ARGLIST(l_edge) ;
        CLIENT_OLE2.SET_PROPERTY(l_border,'LineStyle',c_continuous) ;
        CLIENT_OLE2.SET_PROPERTY(l_border,'Weight',p_weight) ;
        CLIENT_OLE2.SET_PROPERTY(l_border,'ColorIndex',c_automatic) ;
        CLIENT_OLE2.RELEASE_OBJ(l_border) ;
      END draw_border ;
    BEGIN   
      l_application := CLIENT_OLE2.CREATE_OBJ('Excel.Application') ;
      l_workbooks := CLIENT_OLE2.GET_OBJ_PROPERTY(l_application,'Workbooks') ;
      l_workbook := CLIENT_OLE2.GET_OBJ_PROPERTY(l_workbooks,'Add') ;
      l_worksheets := CLIENT_OLE2.GET_OBJ_PROPERTY(l_workbook,'Worksheets') ;
      l_arguments := CLIENT_OLE2.CREATE_ARGLIST ;
      CLIENT_OLE2.ADD_ARG(l_arguments,'Sheet1') ;
      l_worksheet := CLIENT_OLE2.GET_OBJ_PROPERTY(l_workbook,'Worksheets',l_arguments) ;
      CLIENT_OLE2.DESTROY_ARGLIST(l_arguments) ;
    --  Select the box with top-left of A1 and bottom-right of C3.
      l_arguments := CLIENT_OLE2.CREATE_ARGLIST ;
      CLIENT_OLE2.ADD_ARG(l_arguments,'A1:C3') ;
      l_range := CLIENT_OLE2.GET_OBJ_PROPERTY(p_worksheet,'Range',l_arguments) ;
      CLIENT_OLE2.DESTROY_ARGLIST(l_arguments) ;
    --  Draw border along the left edge of cells in range
      draw_border(l_range,c_edge_left,c_thick) ;
    --  Draw border along the top edge of cells in range
      draw_border(l_range,c_edge_top,c_thick) ;
    --  Draw border along the right edge of cells in range
      draw_border(l_range,c_edge_right,c_thick) ;
    --  Draw border along the bottom edge of cells in range
      draw_border(l_range,c_edge_bottom,c_thick) ;
    --  Clean up
      CLIENT_OLE2.RELEASE_OBJ(l_range) ;
      CLIENT_OLE2.RELEASE_OBJ(l_worksheet) ;
      CLIENT_OLE2.RELEASE_OBJ(l_worksheets) ;
      CLIENT_OLE2.RELEASE_OBJ(l_workbook) ;
      CLIENT_OLE2.RELEASE_OBJ(l_workbooks) ;
      CLIENT_OLE2.RELEASE_OBJ(l_application) ;
    END ;It's worth pointing out that the code above has been culled from my specific procedure and has been simplified. It hasn't been tested, although the DRAW_BORDER nested procedure has been copied straight from working code.

Maybe you are looking for

  • Emailing .BMP Files

    'Some' .BMP files that are emailed to me simply show up as an icon at the end of the message with 'filename.bmp' posted below it. I thought that maybe it wasn't downloaded so I would refresh the email or click on it to try to get it to download but i

  • How to quickly and accurately find out the memory leak points?

    Hi, all.I have added a option -XX:+HeapDumpOnOutOfMemoryError in the bootstarp script of my application. The application has been run for one day and the OOM error was thrown again. So I downloaded the hprof file and used MAT to parse it. But after s

  • SAP 6.0 installation with MCOD

    Hi, Has there been wide spread adoption of MCOD? Is a SAP deploment with MCOD significantly more challenging and cumbersome to maintain? Thanks Gaurav

  • Sub-query question, looking up value within a query

    I have a situation to lookup prior period value within the same query. I tried to use a sub-query but getting a syntax error: SELECT [VALUE-BAND_ACCT].GLSeq, [VALUE-BAND_ACCT].NUM_SITES, [VALUE-BAND_ACCT].SGMNT1,  [VALUE-BAND_ACCT].SGMNT2, [VALUE-BAN

  • How do i remove a lock so i can turn picture on the side?

    There is a symbol next to the watch its a circel with a lock in the middle