POI does not work when FilePath changed

Hello

I use POI to read data from an Excel spreadsheet.
However, I have a problem, when I put [FilePath = ExpandPath (".")] (/ tata/mywkbk.xls»)], the program reads the map correctly. Here the .cfm page read the file and the Excel file is in the same folder.

But I want to change the FilePath [FilePath = ExpandPath (".)] C:/Tata/mywkbk.xls")], it does not work. I get the error "object instantiation Exception."

Do the .cfm and the need to Excel to be in the same folder root for the POI to work?

Can someone help me with this one?


Here is a sample of my code:

------------------------------------------------------------------------------------------ ------------------------------------------------------------------------


<!-create an instance of the POIUtility.cfc. ->
< cfset objPOI = CreateObject)
"component."
"POIUtility.
). Init()
/ >


<!--
Read excel sheet. ->
< cfset arrSheets = objPOI.ReadExcel)
FilePath = ExpandPath (".") ("/ Auntie/mywkbk.xls '),
HasHeaderRow = true
) / >


------------------------------------------------------------------------------------------ ------------------------------------------------------------------------

You need not use ExpandPath. "C:/tata/mywkbk.xls" is already an absolute path.

FilePath = "C:/tata/mywkbk.xls."
...

Tags: ColdFusion

Similar Questions

  • Photo editing program does not work when you change the color and brightness.

    I'm trying to change my photos. When I try to make the picture turns into a bunch of dashes and spaces. I believe that the photo program is corrupted. It crashed the PC and reload the OS X El Capitan.

    With the amount of information you provided that it is impossible to offer a solution.  We cannot see your computer so we need to know the details of your problem and the configuration, i.e.:

    • What system do you use?
    • What version of iPhoto do you run?
    • where is your library? If it's on an external HD how this drive is formatted and connected to your Mac?
    • did you apply the updates or upgrades just before the problem occurs?
    • you run a library "managed" or "referenced"?

    • How much free space on your startup disk?
    • What difficulties have tried?

    Download and run Etrecheck.  Copy and paste the results in your response. Etrecheck is a diagnostic tool that has been developed by one of the most respected users here (and recommended by Apple's Support personnel) of the CSA to provide a snapshot of the system and help identify the most obvious culprits that can adversely affect the performance of a Mac.

  • The slide show feature does not work when I used my Apple TV new 4th gen. I have all the minimum requirements for Macbook and Macbook OSX the Airport express. The slide show starts and stops after that 7 photos are displayed on the TV. If I change the

    The slide show feature does not work when I used my Macbook with new Apple TV 4th gen. The slide show stops after that display 7 photos and display to select the options for the slide show is displayed on the screen. The selected interval was 5 seconds. If the interval is spent in 3 seconds the slide show would work for a time and then to display random images. Has worked with Apple on this issue Support Mike and he managed to reproduce the problem. Since I'm in the return period of 14 days for this product, I returned it to the Apple store

    Welcome to the Apple community.

    After returning, I'm not really clear on what your question.

  • Event does not work when I have my variable of variable mutual FUND!

    Hello

    I programmed a labview vi to add a field to a list view when a Boolean variable value is changed. I used a case Event (value change event) structure to determine if a variable value is changed, it works when I force the Boolean control with my mouse click, but it does not work when the value of the variable is modified by the mutual FUND. What should I use instead?

    Value change events are based on the interaction of the user (or the same ejection programmatically based on the value property node (signaling).)  It is not based on a control change via a regular, variable property node local, terminal or any other connecito0n programmatic or binding.

    You must simply query the variable and determine when it changes.  In this case, you can then use the node value property (signs) in the case of event fire.

  • LAN does not work when the Cisco E1000 router hangs

    Original title: Download sp3

    Remember - this is a public forum so never post private information such as numbers of mail or telephone! I bought recently a new Cisco E1000 router. My computer is a laptop model Lenovo 0769.

    I am running windows XP with sp2. The cisco software requires sp3. I called support of cisco and even they couldn't get to download sp3. My network is wireless on the router and I had to install from another laptop computer on the system. My LAN does not work when hooked. What do you suggest to me.

    Ideas:

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Hi mdenrique,

    1. what exactly do you mean by LAN (Local Area Network) does not work? You get the error message?

    If you have not installed Service Pack 3, try the following steps:
    Step 1: Download Service Pack 3
    see How to obtain the latest Windows XP service pack .
    b. scroll the window and click on "Download now the Windows XP Service Pack 3 package" to download the service pack.
    c. save the file on the desktop.

    Step 2: Install Service Pack 3
    a. open the file downloaded and follow the instructions in the wizard to complete the installation.
    b. restart the computer once the installation is complete.

    For more information, see steps to take before you install Windows XP Service Pack 3

    Note: Once you have installed service pack 3, install the router and check if the problem persists.

    Step 3: To troubleshoot LAN, run home and small Office Networking Troubleshooter
    a. Click Start and then click Help and Support.
    b. under Pick a help topic, click Network and Internet.
    c. under network and the Web, click on resolution of networking or Web problems and then click on home and small Office Networking convenience store.
    d. answer the questions in the troubleshooter to try to find a solution.

    For more information, see the following articles:
    1 see How to troubleshoot a network in Windows XP
    2 see two resources to solve the problems of connection network in Windows XP

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Windows Media Player does not work when I Google Chrome on pagers Web in Google Chrome

    Windows Media Player does not work when I go on Google Chrome on WebPagers in Google Chrome please help me

    Hello

    1 What is this problem occurs with the Google chrome or windows media player?

    2 are you able to play another song from Player Windows Media outside the Google Chrome?

    3. have you made changes on your computer?

    4. have you received an error message?

    I suggest you to follow the steps and check.

    http://support.Google.com/chrome/bin/answer.py?hl=en&answer=95697

  • Keyboard does not work when I start windows

    my keyboard does not work when I boot my laptop.   When I do any changes inside through properties keybord (even the spped blinking cursor) he started working. but when I press capslock, it stops working again and I have to still to change the settings in the keyboard properties to make work.i have tried to install the new software, I got my laptop to format but it still does not.

    need help with this and please tell me the solution if r there all

    If by "I got my laptop to format", you mean you have reinstalled Windows and the problem persists, it is probably a hardware problem. If you have a keyboard that can be plugged into your laptop, there the same problem?

  • What is wrong with this sequence, it does not work when, after 3 inserts, I add a new record with the trigger it gives an error.

    Mr President.

    What is wrong with this sequence, it does not work when, after 3 inserts, I add a new record with the trigger it gives an error.

    --SL_CUSTOMERS table data
    
    
    INSERT INTO SL_CUSTOMERS VALUES(1,'Kamrul Hasan',NULL,NULL,'Moghbazar', 'Dhaka','0456789123',NULL,NULL,NULL,'Y',NULL);
    INSERT INTO SL_CUSTOMERS VALUES(2,'Rabiul Alam',NULL,NULL,'Motijheel', 'Dhaka','0567891234',NULL,NULL,NULL,'Y',NULL);
    INSERT INTO SL_CUSTOMERS VALUES(3,'Shahed Hasan',NULL,NULL,'2-G/1,2-2,Mirpur', 'Dhaka','0678912345',NULL,NULL,NULL,'Y',NULL);
    
    
    
    

    CREATE SEQUENCE  "ALIZA"."SL_CUSTOMERS_SEQ"  MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 1 NOCACHE NOORDER  NOCYCLE ;
    
    
    CREATE OR REPLACE TRIGGER SL_CUSTOMERS_TRG 
    BEFORE INSERT ON "ALIZA"."SL_CUSTOMERS"   
    FOR EACH ROW   
    BEGIN   
    IF :NEW.CUSTOMER_ID IS NULL OR :NEW.CUSTOMER_ID < 0 THEN  
      SELECT SL_CUSTOMERS_SEQ.nextval   
        INTO :NEW.CUSTOMER_ID  
        FROM DUAL;   
      END IF;   
    END;   
    /
    
    
    
    

    When I try to insert several records with the seq.nextval it gives error

    violation of primary key.

    INSERT INTO "ALIZA"."SL_CUSTOMERS" (CUSTOMER_NAME) VALUES ('sdfsd')
    ORA-00001: unique constraint (ALIZA.SL_CUSTOMERS_PK) violated
    ORA-06512: at line 1
    
    
    
    
    One error saving changes to table "ALIZA"."SL_CUSTOMERS":
    Row 4: ORA-00001: unique constraint (ALIZA.SL_CUSTOMERS_PK) violated
    ORA-06512: at line 1
    
    
    
    
    
    
    
    

    Concerning

    Mr President.

    I find the solution by creating a function before the triiger

    as below

    CREATE SEQUENCE  "ALIZA"."SL_CUSTOMERS_SEQ"  MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 1 NOCACHE NOORDER  NOCYCLE ;
    
    CREATE OR REPLACE FUNCTION get_SL_CUSTOMERS_vId RETURN VARCHAR2 AS
    BEGIN
       RETURN SL_CUSTOMERS_SEQ.NEXTVAL;
    
    END;
    /
    
    CREATE OR REPLACE TRIGGER SL_CUSTOMERS_TRG
    BEFORE INSERT ON "ALIZA"."SL_CUSTOMERS"
    FOR EACH ROW
    DECLARE
    dummy VARCHAR2(200);
    BEGIN
      dummy := get_SL_CUSTOMERS_vId();
      :NEW.CUSTOMER_ID := dummy;
    END;
    /  
    

    It works very well

    Thank you all for the suggestions.

    Concerning

  • VerticalAlign VBox does not work when the child has the height in %

    Hello

    I got the code like this:

    <mx:VBox id="vb1" verticalAlign="middle">
    <mx:CheckBox .../>
    <mx:VBox id="vb2" height="50%">
    ...
    </mx:VBox>
    </mx:VBox>
    

    Effect is that verticalAlignment does not work for the 1st VBox (it seems to me that it is set to the default value - 'top'). It works when I remove property "height" of the 2nd VBox (or when I change to "50%" to "50" or any other number).

    Hi Ibarim,

    verticalAlignment won't work for VBox when you have two or more children and who are direct children. When you have only a single direct children of the VBox, then it will work. Normally we use verticalAlignment = "middle" HBox and VBox. As VBox sets out its children vertically this property does not work when you have children over 1.

    You can try this

    width="200" height="50%">
    
    
    
         
    
    
    

    The above two combinations work correctly you only have immediate children... But if you see the bottom of case...

         width="200" height="50%" backgroundColor="yellow" verticalAlign="middle">                                  
    

    Now, in the case above, you can see that VBox vb2 is vertically aligned middle in the vb1 vb2 VBox is the only direct child of VBox vb1. Whereas it is now in the vb2 VBox box and VBox vb3 are not aligned vertically in the VBOx vb2 as because VBox vb2 contains now two children.

    Hope this is clear and make you understand the problem.

    Thank you

    Jean Claude

  • As I installed Sierra, my Trusteer account to my Bank quit and does not work when I reinstall. Neither will Quickbooks!

    As I installed Sierra, my Trusteer account to my Bank quit and does not work when I reinstall. Neither will Quickbooks! Help!

    Trusteer (report) has caused a lot of problems Mac users such noted search Apple Support communities here.

  • Satellite A660 - Webcam does not work when using Skype

    I recently bought a Satellite A660-15J. I am running Windows 7 64 bit.

    I have the latest version of Skype (5.3.0.111).

    The integrated Webcam does not work when you run Skype. If I run the Toshiba Web Camera Application the webcam works fine. However, when I test it in Skype, I get a message saying "cannot start video. Try quitting other programs that use the webcam '.

    However, as far as I can tell there no other programs available. I have tried Skype with the Web Camera Application clised & open. I also confirmed that I do run the latest version of the program.

    One of the main reasons we have this laptop is to use Skype video... Help, please.

    Disable webcam application start-up and exit this application before you start Skype.

    I used Skype many different models of laptops, including friends A660 and it worked correctly.

    When you open Skype video settings is listed as default camera USB webcam?

  • Microsoft Pinball Arcade, everything works except the right flipper does not work when you run the game. __Keyboard is very good

    Microsoft Pinball Arcade, everything works except the right flipper does not work when you run the game.
    Keyboard is fine.  Is this a compatibility issue?

    ---------------

  • Sound does not work when it is connected to the TV with HDMI

    I have a HP Pavilion Notebook PC, DV7 - 6813EV, running windows 7 Home Premium 64-bit SP1. My problem is that I have no sound when connected to my TV HDMI connection and press. Please could someone help me? Thanks in advance

    Hello gematz,

    The sound does not work when it is connected to the TV via HDMI.

    Go to start.

    Type sound.

    Click sound

    On the playback tab, click with the right button on the HDMI interface, and then select set as default device.

    If you do not see the HDMI, right click and select devices see off, then set as default.

    I would like to know how everything goes.

  • Here's a strange. I have a HTML page with this time a wmv video. It works perfectly from a USB stick or SD card, but does not work when they are copied to the hard drive

    I have an HTML page created with web expression 4. It contains only a wmv video. It works perfectly when it is called from a USB stick or SD card, but does not work when they are copied to the hard drive. The results are the same with IE and Firefox. It don't make no difference if I use Media Player V9 or V11. He has no control on the page Media Player. Video and html files are in the same directory. Here is the code snippet:

    LIFT, DRAG, THRUST and GRAVITY










    If I run it on a machine with Win 7 there is no problem.

    Richard Grosser

    Hi Richard c. Grosser,.

    Your question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the Microsoft Expression forums.

    http://social.expression.Microsoft.com/forums/en-us/categories

  • AutoPlay feature does not work when you insert a CD-ROM into the CD drive

    Original title: computer disc drive

    Download or CD extract of music reading, record music, download CD etc... Before my hard drive had to be replaced, when a disc is inserted into my computer, a window appears, asking what you want to do... Burn music, Rip, copy in folder etc... now when I insert a disk, the window no longer appears, which gives you options and you get to this site... How can I get that back?

    Hey Big-Mack,

    Try the steps of troubleshooting mentioned in the following article and check the result.
    See the enforcement function automatic or AutoPlay feature does not work when you insert a CD-ROM into the CD drive

    If the problem persists, run the Autoplay Repair Wizard and check the result.
    See Autoplay Repair Wizard

    Play functionality; New in Windows Media Player 12 makes it easy to listen to the music, video and photos from your computer to other computers, TVs or stereo on your home network.
    For more information, see play in

    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for