Re: Import an Excel file

Serdar,
There are three approaches to this problem
(a) use the excel spreadsheet as an ODBC data source
(b) read the excel spreadsheet as a tab delimited text file
(c) use OLE
(a) this requires defining column headers for each "section" of data in the
spreasheet, and
naming each "section" of data. Thus it works for spreadsheets where you
have tight control
over the formatting & content, and not for arbitrary spreasheets. There
are numerous drawbacks
to this approach, most notably that the ODBC datasource controlled by
the ODBC Manager
sets the file name, and not the DBResourceManager (you have to copy your
spreadsheet into
a fixed name, hope the other one isn't open in another session, etc etc)
Blech.
(b) this requires a manual step which is to read the spreadsheet into Excel
and save it to a
different format, or have the spreadsheets saved as comma separated
values format (csv),
then it is simply a parsing problem...
(c) this requires that you sublaunch Excel through OLE and access the data
somehow
(issue a "select all", "copy" - then paste the data into some text
field in Forte and read it,
or programmatically access the spreadsheets boundaries and individual
cell data.
Sounds like this would work best for "arbitrary" spreadsheets for
which special formatting
or exporting would be problematic.
We have had success (using the word loosely here) with a and b and not had
occasion to do c, though it will probably yield the best flexibility for
the effort you'll have to
put into getting it to work. The common perception about doing OLE
integration is that
you are at the mercy of the application to which you are integrating - the
OLE APIs are not
all universally well designed, implemented, nor documented, however since
this is Excel you
might have lots of retail technical books to help you.
Part of the problem is that the Excel spreadsheet file is in a proprietary
format only understood
by Excel, therefore just "reading" the file will give you a whole bunch of
garbage.
Good luck,
John
At 03:55 PM 1/15/99 -0800, you wrote:
>
>
Can anyone tell me how to import an Excel file from any directory into the
Forte array?
I need to do following scenario:
In the Forte application when the user click on the "Select" button user
selects an Excel file from the explorer window. Than I need to read that
Excel file and load the data into the Forte array, and I'm going to use the
data in the program.
If anyone has experience or any suggestions, please let me know.
Thanks
Serdar Askin
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>*******************************************************
John Jamison [email protected]
Vice President and Chief Technology Officer 415 399 7212
Sage IT Partners, Inc. fax: 415 399 7002
44 Montgomery Street
Suite 3200
San Francisco, CA 94104
The Leaders in Internet Enabled Business Change
* A Metamor Worldwide Company *
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

Just thinking off the top of my head here, would a variation of (c) work.
Launch Excel and trigger a macro that outputs the spreadsheet data as a CSV
file to a known location. Once that completes, it becames a parsing problem
as stated below. Or, extending this thought, if you have control over the
spreadsheet, establish a macro to output the data in CSV format. And
include in the procedure for accessing the spreadsheet a requirement to run
this macro after every data change. (Maybe the macro initiation can be
automated too.)
my 1 1/2 cents worth....
/\/\ark /\/ichols
John Jamison <[email protected]> on 01/17/99 12:17:57 PM
Please respond to John Jamison <[email protected]>
To: "Askin, Serdar H" <[email protected]>
cc: [email protected](bcc: Mark Nichols/SEH)
Subject: Re: Import an Excel file
Serdar,
There are three approaches to this problem
(a) use the excel spreadsheet as an ODBC data source
(b) read the excel spreadsheet as a tab delimited text file
(c) use OLE
(a) this requires defining column headers for each "section" of data in the
spreasheet, and
naming each "section" of data. Thus it works for spreadsheets where you
have tight control
over the formatting & content, and not for arbitrary spreasheets. There
are numerous drawbacks
to this approach, most notably that the ODBC datasource controlled by
the ODBC Manager
sets the file name, and not the DBResourceManager (you have to copy your
spreadsheet into
a fixed name, hope the other one isn't open in another session, etc etc)
Blech.
(b) this requires a manual step which is to read the spreadsheet into Excel
and save it to a
different format, or have the spreadsheets saved as comma separated
values format (csv),
then it is simply a parsing problem...
(c) this requires that you sublaunch Excel through OLE and access the data
somehow
(issue a "select all", "copy" - then paste the data into some text
field in Forte and read it,
or programmatically access the spreadsheets boundaries and individual
cell data.
Sounds like this would work best for "arbitrary" spreadsheets for
which special formatting
or exporting would be problematic.
We have had success (using the word loosely here) with a and b and not had
occasion to do c, though it will probably yield the best flexibility for
the effort you'll have to
put into getting it to work. The common perception about doing OLE
integration is that
you are at the mercy of the application to which you are integrating - the
OLE APIs are not
all universally well designed, implemented, nor documented, however since
this is Excel you
might have lots of retail technical books to help you.
Part of the problem is that the Excel spreadsheet file is in a proprietary
format only understood
by Excel, therefore just "reading" the file will give you a whole bunch of
garbage.
Good luck,
John
At 03:55 PM 1/15/99 -0800, you wrote:
>
>
Can anyone tell me how to import an Excel file from any directory into the
Forte array?
I need to do following scenario:
In the Forte application when the user click on the "Select" button user
selects an Excel file from the explorer window. Than I need to read that
Excel file and load the data into the Forte array, and I'm going to usethe
data in the program.
If anyone has experience or any suggestions, please let me know.
Thanks
Serdar Askin
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>*******************************************************
John Jamison [email protected]
Vice President and Chief Technology Officer 415 399 7212
Sage IT Partners, Inc. fax: 415 399
7002
44 Montgomery Street
Suite 3200
San Francisco, CA 94104
The Leaders in Internet Enabled Business Change
* A Metamor Worldwide Company *
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

Similar Messages

  • Importing From Excel file will not import assignments correctly where there are more than one assignment per task

    I am trying to import an excel file ... see below.   It appears if you select both Tasks and Assignments tables it will not allow you to do this, says file is not in a project recognized format.  So I import Tasks tab first then run the
    wizard again and import the assignments tab while selecting merge with project option.   This works with one exception:
    If there are more than one assignment per task.  It does not merge in the 2nd assignment, only the first.
    Is there a way to import a task with 2 or more assignments?
    Background
    To figure out what the format for the file needed to be, I started with a MPP file and from project saved as Excel and selected the "Project Template" file.  Now I am trying to import that XLS to see how it works
    ID
    Active
    Task Mode
    Name
    Duration
    Start
    Finish
    Predecessors
    Outline Level
    1
    Yes
    Auto Scheduled
    DS001
    3 days
    June 17, 2014 8:00 AM
    June 19, 2014 5:00 PM
    1
    2
    Yes
    Auto Scheduled
    MT001
    3 days
    June 17, 2014 8:00 AM
    June 19, 2014 5:00 PM
    2
    3
    Yes
    Auto Scheduled
    CT001
    1 day
    June 17, 2014 8:00 AM
    June 17, 2014 5:00 PM
    3
    4
    Yes
    Auto Scheduled
    CT002
    2 days
    June 18, 2014 8:00 AM
    June 19, 2014 5:00 PM
    3
    3
    5
    Yes
    Auto Scheduled
    DS002
    1 day
    June 20, 2014 8:00 AM
    June 20, 2014 5:00 PM
    1
    6
    Yes
    Auto Scheduled
    MT002
    1 day
    June 20, 2014 8:00 AM
    June 20, 2014 5:00 PM
    2
    7
    Yes
    Auto Scheduled
    CT003
    1 day
    June 20, 2014 8:00 AM
    June 20, 2014 5:00 PM
    4
    3
    Task   Name
    Resource Name
    % Work Complete
    Work
    Units
    CT001
    Engineer1
    0
    8h
    100%
    CT002
    Engineer2
    0
    16h
    100%
    CT003
    Engineer1
    0
    8h
    100%
    CT003
    Engineer2
    0
    8h
    100%
    Andrew Payze

    Andrew,
    I did a quick test using your example although I didn't include the Predecessor or Outline Level fields to keep things a little simpler. I imported the Excel data into a new Project file with a single import of task and assignment data. It is very important
    to set up the Excel Workbook correctly. On Sheet 1 I entered the task data (Name, Duration, Start). I did not include the ID or finish date as that is redundant - Project generates its own ID and will calculate the finish date based on the start date and duration.
    On Sheet 2 I entered the assignment data basically just as you show it except I didn't include the Units.
    The data imported as expected.
    John

  • How to import a excel file into database?

    hi all,
    How can I import a excel file into database?
    What I need to do first?
    Thanks,
    Amy

    1. Create a conrtol file in your disc(with notepad) ex
    test_loader.ctl
    LOAD DATA
    INFILE='C:\Testcsv.csv'
    into table test_table
    FIELDS TERMINATED BY ','
    TRAILING NULL COLS
    (ID,COL1,COL2,COL3)
    The table descrption is
    scott@ORCL> desc test_table;
    Name Null? Type
    ID NUMBER
    COL1 VARCHAR2(10)
    COL2 VARCHAR2(10)
    COL3 VARCHAR2(10)
    scott@ORCL>
    2 .Create a file testcsv.csv from your excel file you want to load with " save as" csv comma seperated value
    in your hard disc c:\
    3. in dos command mode write
    C:\>sqlldr scott/tiger control=c:\testcsv.ctl log=c:\testcsv.log
    Thats it!

  • How to import an Excel file

    Hi ,
    I amwriting a BDC Program..
    How to import a Excel File by Browsing the Excel file from the Directory and Storing that values in the internal table.
    Can any one send the code for this,
    Points will be awarded.
    Regards,
    Jayasimha Jangam.

    Hi,
          Create a select parameter. at selection screen, use FM F4_FILENAME to get the dialog box.
    see the sample code.
    *&      Form  display_dialog
          To display the pop up dialog box
    FORM display_dialog.
    Calling FM to display File Select dialog box
      CALL FUNCTION 'F4_FILENAME'
       EXPORTING
         program_name        = syst-cprog
         dynpro_number       = syst-dynnr
        FIELD_NAME          = ' '
       IMPORTING
         file_name           = p_file .
    ENDFORM.                    " display_dialog
    FORM upload_data.
      DATA : lt_itab   TYPE STANDARD TABLE OF alsmex_tabline,
             ls_itab   TYPE alsmex_tabline,
             ls_upload TYPE ty_upload_data.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
           EXPORTING
                filename                = p_file
                i_begin_col             = 1
                i_begin_row             = 2
                i_end_col               = 5
                i_end_row               = 50000
           TABLES
                intern                  = lt_itab[]
           EXCEPTIONS
                inconsistent_parameters = 1
                upload_ole              = 2
                OTHERS                  = 3.
      IF sy-subrc <> 0.
        MESSAGE i000 WITH text-t04.
        LEAVE LIST-PROCESSING.
      ENDIF.
      CLEAR ls_itab.
      LOOP AT lt_itab INTO ls_itab.
        CASE ls_itab-col.
          WHEN 1.
            ls_upload-matnr = ls_itab-value.
          WHEN 2.
            PERFORM convert_to_decimal USING ls_itab-value.
            ls_upload-bmeng = ls_itab-value.
          WHEN 3.
            ls_upload-idnrk = ls_itab-value.
          WHEN 4.
            PERFORM convert_to_decimal USING ls_itab-value.
            ls_upload-menge = ls_itab-value.
          WHEN 5.
            ls_upload-meins = ls_itab-value.
        ENDCASE.
        AT END OF row.
          APPEND ls_upload TO gt_upload.
          CLEAR ls_upload.
        ENDAT.
        CLEAR ls_itab.
      ENDLOOP.
    Deleting the contents of internal table
    FREE lt_itab.

  • Can we import extact Excel file in Crystal report in BO

    an we import extact Excel file in Crystal report in BO
    if yeh
    den HOW

    Hi Amit,
    There is no functionality to import the data from MS Excel to Crystal reports. However we can connect to the Excel sheet as a data source and create Crystal reports against Excel.
    Some popular choices in the Create New Connection folder are described here:
    Access/Excel (DAO)
    This option lets you connect to a supported database type (Access, Excel, Lotus, and so on).
    I hope this helps you.
    Regards,
    Prashant

  • How to import large excel files which exceeds more then 65535 rows

    Hi there,
    I am using the latest Numbers version (v3.5.3) on the latest Yosemite (10.10.3) and wonder if and how it is possible to import an Excel file which exceeds the 65535 limit. I know MS Excel has change this limit to 156118 rows. But I don't have that program. I am only using the Mac versions.
    Thanks in advance.
    Roy

    Hello NavNak.
    My knee jerk reaction would be to split the incoming Excel file.  (How else can a gallon of water fit into a half gallon jug?)  I googled 'Excel file splitter' and up came a bunch of hits with one of them coming from this Apple Community.  Check out thread #6486876 which is How To Split Large Excel or CSV Files into Smaller Files
    Good luck.
    DaverDee

  • Import an excel file which contain resource data to P6

    Hii,
    I had a problem of importing an excel file into p6 which contain resource data to p6.
    I used the import option which is present in file-import i followed the instruction and at last while clicking the finish tab its showing the import was successful.
    But in the resource it is emplty unable to display a single resource.
    plz help me or is there any other procedure for it plz let me know.
    Best regards
    Himansu

    As the previous poster stated, you need to export using resource assignments not activities. The only changes that P6 will accept will be to information about activities (Description, duration, etc) if you choose activities. Choosing Resources will allow changes to information with resources and resources asignments will allow changes to information pertaining to the interaction of the activities and resources.

  • How can i import an excel file into formscentral?

    how can i import an excel file into formscentral?

    Thanks for asking.  This is not something we currently support but you can add or vote on feature ideas:
    http://forums.adobe.com/community/formscentral?view=idea
    If you need to add a new idea click "Create an idea" under "Actions" in the top right.
    Perry

  • Import an excel file into SQL Developer and create a table

    Hello everyone!
    I have an Excel file I want to Import into SQL Developer. Do I need to Create a table first than import the file into the table?
    Or is there a way to import an Excel file and it automatically generate or turn into a table?
    I would really appreciate any directions or explanations.
    Thanks everyone!
    Java Man

    Joyce Scapicchio wrote:
    I suspect that you are having memory problems opening the excel file. This is a known issue with excel files for importing and exporting. Check this post for suggestions:
    Re: Export to Excel Hangs to Excel Hangs ]
    Joyce Scapicchio
    SQLDeveloper TeamThanks for the reply but the problem was I needed to convert the file to a csv format. To do this open the file in Excel and re-save as CSV Comma Delimiter. Don't worry about data-types because when the file is uploaded to SQL Developer, you will have the chance to set all the parameters, data-types and so on.
    Once I did this and try opening the file, the setup window opened and I was able to do all the additional tweaking and convert the data to a table.
    Because of this I am speculating that SQL Developer does not work with Excel XLSX extension.
    Thanks again!
    JM

  • I've imported an Excel file, but the columns won't add up or respond to formulas?

    Hey everyone
    I'm working out my expenses for the year for the taxman. Lion won't open my Excel files, so I grabbed Numbers and opened it there. The data is all intact but the "total" cell no longer update, and I get formula error messages when I try to create new sums. Any clues to a workaround?
    Thanks
    C

    Hello Badunit
    The formula was using SUBTOTAL()
    In fact, when I urged him to put the formula =SUM(D), the OP just inserted a new standard row so, of course, he got the error flagged by the red triangle.
    In the imported file, the cells embeddinbg the subtotals were flagged by a blue triangle (top_left)
    The import process ended with a long, dense report describing the changes brought to the original document.
    No need to post it here, on my machine it's in French
    When I got the doc I was just puzzled during 10 seconds because the currency, in the Numbers document filed by the OP was displayed in front of the amount  £UK123,45 when the import of the XL document was delivering tables with values displayed as 123,45 £UK
    But it didn't mattered.
    When I inserted two footer rows,
    one for the imported totals,
    one for the formulas =SUM(column) both documents behaved the same correct way.
    As I have no practice of XL, I don't know if headers and footers with the Numbers meaning exist in this app.
    If they don't, it's not surprising that newbies are surprised.
    Yvan KOENIG (VALLAURIS, France) jeudi 11 août 2011 18:26:04
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Import from Excel file to Oracle Db

    Dear all,
    I am not having DBA privilege.And I cant use export utility.
    I want to import the datas from Excel file through query builder. I Know there is a option in query builder. But i dont know how to do?
    Plz help...
    Thanks.

    Hi,
    If you are very specific to load using your tool only then below are the steps.
    In the main menu
    Go To Database-> Import -> Import Table Data
    In the screen select your schema and table name you wish to load in.
    Click on Show Data and after that click on Execute Wizard.
    This will ask for table type where you can select Excel file and then follow the wizard.
    Thanks.

  • How to import an excel file properly

    I have a bunch of excel files with multiple tabs. The tabs are not independent of each other, and there is a lot of cross-referencing. When I try to open those files in Numbers, all the formulae become corrupted. The reason for that is that inter-tab references in Numbers have a different format due to sub-tabs or whatever you call it within tabs. As a result, when I try to import a file, default sub-tabs are created (e.g., Table 1), but references are not adjusted. Since corrupted references are automatically substituted for last known calculation results, I cannot adjust even manually. Is there any workaround for this issue?

    In some spreadsheets, we may ask the app to display the formulas in the cells.
    I don't know if Excel is able to do that.
    If it is.
    Save the doc with the formulas displayed.
    Numbers will import the tables grabbing the formulas as text.
    Gather the imported tables in a single sheet.
    Select a table, select all cells and apply the format "Automatic".
    Numbers will try to decipher the formulas.
    For sure, it will issue red triangles here and there but with a bit of patience you will get a living document.
    I did that with AppleWorks spreadsheets when, as the result of a localisation bug, they can't be imported by Numbers '08.
    Some times later I thought that a more efficient soluce was to set my system in English and import in the English version.
    Yvan KOENIG (VALLAURIS, France) dimanche 9 mai 2010 20:45:06

  • Batch Import of Excel Files

    Hi. I have a request to import excel files data into the database, using APEX. Today, the user opens the excel file (locally on his machine), and there is a macro connecting to the database and loading the spreadsheet data when the user pushes a button. The database connection will not be available anymore (there will be no way to connect directly to the database), so the excel macro won't work anymore. I wonder if there is a way to create a form / report in APEX, witch lists the xls/xlsx files in a local directory and then, after selecting one of them, loads its data into database tables. Something like we could do in Oracle Forms OLE2 (Webutil). We can do it using forms, but I would like to use APEX for new developments.
    Any ideas? All I have found so far needs csv, or loads the entire worksheet (not all cells need to be loaded).
    Thanks in advance

    I've just ran through an exercise doing exactly what you are wanting to do.
    However, since it was a one-off scenario, I just bulk loaded the files into a table via External Tables.  (its a DBA thing...)
    I've seen a plugin or two that allows the end user to add multiple files at once through APEX
    One idea I have been playing with:  Oracle DBFS
    Specifically, Oracle 12c.  In 12c, you can 'export' the table as a WebDAV or FTP service from the database.
    FTP is a little funky.. but, my MFPs are now capable of scanning documents into the database
    I've only been able to get WebDAV to work with Windows XP.  (I haven't tried doing it over a secure connection with Win7+)
    Basically:  when an end-user drags-and-drops files onto the WebDAV file share, the files magically appear in a database table. 
    Modifying the Excel2Collection to pull a blob from a table other than WWV_FLOW_FILES was easy (for me, at least).
    Looping? sorry.. I used a 'brute force method' where I had to click a button for each file (with a Display Only showing the 'next file to process' )
    MK

  • HT5622 how to import an excel file to contacts

    i  have total info in excel  and need to transfer from computer to ipad and iphone contacts.
    help please.

    You need to convert the excel file into one of the formats mentioned here before you can import into contacts http://support.apple.com/kb/PH4648?viewlocale=en_US  It would seem csv is your best bet

  • Import an excel file into a table

    Anybody can help me on importing a big text file (i.e. an excel file) into a table without using SQL Loader?
    Thnx in advance

    user5181307 wrote:
    There is another method where in you can edit the listener file to make an entry for separate service. then create a database link and tns entry to use the service to access the Excel.What you are referring to is called Heterogeneous Services and allows Oracle to treat something as an External database.
    For Excel files you would do it like this...
    1- Go to Control Panel>Administrative Tools>Data Sources (ODBC)>System DSN and create a data source with appropriate driver. Name it EXCL.
    2- In %ORACLE_HOME%\Network\Admin\Tnsnames.ora fie add entry:
    EXCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.12.0.24)(PORT = 1521))
    (CONNECT_DATA =
    (SID = EXCL)
    (HS = OK)
    Here SID is the name of data source that you have just created.
    3- In %ORACLE_HOME%\Network\Admin\Listener.ora file add:
    (SID_DESC =
    (PROGRAM = hsodbc)
    (SID_NAME = <hs_sid>)
    (ORACLE_HOME = <oracle home>)
    under SID_LIST_LISTENER like:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = d:\ORA9DB)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = ORA9DB)
    (ORACLE_HOME = d:\ORA9DB)
    (SID_NAME = ORA9DB)
    (SID_DESC =
    (PROGRAM = hsodbc)
    (SID_NAME = EXCL)
    (ORACLE_HOME = D:\ora9db)
    Dont forget to reload the listener
    c:\> lsnrctl reload
    4- In %ORACLE_HOME%\hs\admin create init<HS_SID>.ora. For our sid EXCL we create file initexcl.ora.
    In this file set following two parameters:
    HS_FDS_CONNECT_INFO = excl
    HS_FDS_TRACE_LEVEL = 0
    5- Now connect to Oracle database and create database link with following command:
    SQL> CREATE DATABASE LINK excl
    2 USING 'excl'
    3 /
    Database link created.
    Now you can perform query against this database like you would for any remote database.
    SQL> SELECT table_name FROM all_tables@excl;
    TABLE_NAME
    DEPT
    EMP... however, from the sounds of the original question the OP is referring to a flat file of data (like a CSV file) and not really an Excel file (.xls) which is a proprietary binary format that you won't be able to read with SQL*Loader or External Tables.
    The best method for the OP's requirements would appear to be external tables which were introduced with 9i.

Maybe you are looking for

  • Vmware Fusion 3.0 and OSX 10.7.4

    Vmware Fusion 3.0 was working fine until I upgraded to 10.7.4. After that it has stopped working and gives two or three errors about kernel space, etc and refuses to start. A Windows 7 virtual machine was in a suspended state when I upgraded the OS.

  • Not able to create an Incident/Service ticket in CRM IC webclient

    Hi, I am trying to create an incident/create a service ticket in CRM IC Webclient.All the fileds are grayed out. Can anyone tell me what could be the reason.

  • How do I view content in Design view once everything is grayed out?

    I was building a web site.   When I switched from horizontal view to vertical view I was no longer able to view content in design view. The entire page was grayed out.  I'm also not able to view content in design view in other web sites too. How do I

  • NEW to J2EE----Class(within WEB-INF) can't access applet

    I admit I'm a newbie. Situation: an applet can import packages or individual classes that are located in WEB-INF dir. Is the reverse true, that the same classes can touch the applet? If so, how do you implement this, tried to import applet class, no

  • The connect button does not respond when i try to set up sync

    I upgraded the 4.0 version of firefox yesterday to 4.2 and all of my settings were reset to defaults. When i tried to setup sync it asked me to create a software password. I did this and then clicked on the connect button. It then prompted me for pas