Issue in Win7 when opening the XLS with OLE

HI,experts:
I find a issue in Win7:
when I opening the XLS with OLE,
CALL METHOD OF go_workbooks 'Open' EXPORTING #1 = 'D:\1.xls'.
the sy-subrc = 2,
but this issue is not exist on PC which run Win XP.
How to resolve the issue in Win7?
Thanks.
below is the whole code of func:
FUNCTION zrms_cshtin_chckrpt_me_print_t.
  TYPE-POOLS ole2 .
  INCLUDE ole2incl.
  DATA:
    go_excel TYPE ole2_object,
    go_workbooks TYPE ole2_object,
    go_workbook TYPE ole2_object,
    go_sheet TYPE ole2_object,
    go_cell TYPE ole2_object.
  CREATE OBJECT go_excel 'EXCEL.APPLICATION'.
  SET PROPERTY OF go_excel 'Visible' = 0.
  CALL METHOD OF go_excel 'Workbooks' = go_workbooks.
  CALL METHOD OF go_workbooks 'Open' EXPORTING #1 = 'D:\1.xls'.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
ENDFUNCTION.
Edited by: zongqian guo on Mar 11, 2011 10:23 AM

Hi
Can you try prefixing the string "file://" before the file path and try. Something like,
CALL METHOD OF go_workbooks 'Open' EXPORTING #1 = 'file://D:/1.xls'.
Regards
Ranganath

Similar Messages

  • Error when opening the database with resetlogs

    ORA-00603: ORACLE SERVER SESSION TERMINATED BY FATAL ERROR
    WHEN I open the database with RESETLOGS

    Well you definitely need to post more information here.
    Looking at what you have posted, all that I can reply is
    ORA-00603: ORACLE server session terminated by fatal error
    Cause: An ORACLE server session is in an unrecoverable state.
    Action: Login to ORACLE again so a new server session will be created

  • OpenDocument - Parameters is lost when opening the report with token

    Hello,
    we want to migrate our BO Enterprise (XI R3) from Tomcat to IIS.
    We developed an application in which you can open reports by using the opendocument-url.
    It was no problem with our old BO-Enterprise Server (tomcat/jsp), but with our new BO-System (IIS / aspx) the parameter is not passed, so that you have got to fill out the parameter mask, before the report is opened.
    http://servername/OpenDocument/opendoc/openDocument.aspx?iDocID=1926&lsSParameter=307&token=....2082J38Mfsg5PvRXmk002080JuLfwCe5XZw0T0sT
    Any suggestions?
    Thanks,
    Peter

    So does it still prompt for the parameter even if you don't pass the token and you manually log on?
    If so, you're asking in the wrong forum - you'd ask in the report-type-specific forum.
    Sincerely,
    Ted Ueda

  • Intermittent APPCRASH when opening a form with CrystalReportViewer

    We have an application that, as part of the functionality, allows users to generate and preview a report. It uses CR for VS 2010. The report preview dialog is a Windows Form that includes a CrystalReportViewer.
    This functionality works, most of the time, but we are observing intermittent APPCRASH/Stackhash crashes when this form is opened of this nature:
    Problem signature:
      Problem Event Name:  APPCRASH
      Application Name:      ****
      Application Version:    ****
      Application Timestamp:           4dd40fa4
      Fault Module Name:    StackHash_7698
      Fault Module Version:  6.1.7600.16385
      Fault Module Timestamp:         4a5be02b
      Exception Code:         c0000374
      Exception Offset:        00000000000c6cd2
      OS Version:    6.1.7600.2.0.0.256.48
      Locale ID:       1033
      Additional Information 1:          7698
      Additional Information 2:          7698c42b9ee8da1ebad3b3c9521cacfd
      Additional Information 3:          ad41
      Additional Information 4:          ad418ba72161d4cd11d7688fd368f113
    This crash occurs intermittently. We have an automated script that tests the GUI and it may run for 5 minutes or several hours before encountering this error, with a handful, to tens, perhaps over a hundred report generated successfully.
    As we understand it, the error code c0000374 means:
    // MessageId: STATUS_HEAP_CORRUPTION
    // MessageText:
    // A heap has been corrupted.
    CR is not the only part of our application that uses unmanaged memory, but this crash consistently happens when opening the dialog with a CR component in it (which renders a report).
    I realize I've left out a lot of potential information, but will add more upon request. This problem is causing us quite some headaches and I just wanted to see if anyone else has experienced something similar.
    Any ideas?

    Hello Zamir.
    Many thanks for the great answers (I wish I could post this thread as an example to all ).
    Same to you. Debugging issues like this is never fun, but I know from experience that clarity from both sides helps us get to a resolution
    Let's start with SP1. You may already be using it. Check the version of the crpe32.dll (C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64). It should be 13.0.1.220, if it is, we're on SP1. If it is not, understanding your concerns, going to SP1 will still be the DE thing to do. E.g.; I will not do any testing unless you are on SP1 (sounds bad I know, but just laying the cards on the table - face up )...
    I checked both my development machine and a production system that I have access to in-house (which is able to reproduce the problem via a script). Luckily for me, both are at version 13.0.1.220.
    The fact that you are not able to reproduce the issue on your development system my actually be quite encouraging and perhaps a starting place for us (given the SP1 conundrum). It will be interesting to compare the dlls (both Crystal and database client). Normally the Modules utility is very useful for comparing dlls loading on a computer that works and one that does not. As this is a 64 bit app, it will be a bit trickier. Modules works really well on 32 bit apps. On 64 bit apps it does not save the log. You can still see it, but not save it. Anyhow, I am attaching a 64 bit version of Modules. You will have to check the versions of the CR DLLs and database client DLLs by looking at the logs and writing the info down
    I'm having a bit of trouble with the Modules utility. I launched it and when I get it to generate a list, I cannot see the process for our application in the list. It is running and appears in the task manager, but it is not listed under the list of processes, nor do I see any of it's loaded DLLs. Any ideas?
    Re. apps compiled as "Any CPU". These should work - as long as only the correct "bitness" CR runtime is deployed. E.g.; On a 64 bit OS, do not deploy both a 32 bit and a 64 bit runtime. This may cause issues. My recommendation in the previous post was a rather blanket recommendation that quickly eliminates all kinds of confusions for many people.
    Thanks for the clarification. I am going to stick with 'Any CPU' because I know that we only deploy the x64 runtime and if I switch to explicit x64 compilation, Visual Studio reports some false-positive warnings that I'd rather not have (it's a bug in Visual Studio).
    Re. the database - SQL Server CE v3.5 SP2, OLE DB. Make absolutely sure the db client is the same on the problem computer as it is on your development computer. Use Modules for that. If htere is a later SP, apply that. I can not overstate the importance of this.
    As above, I could not use modules, but I did confirm the DLL versions in their respective Program Files location on both machines and they were the same (3.5.8080.0).
    It will be important for these users to let us have screen shots of the issue as they get it. I realize this may be an inconvenience to the customer, but what is essentially a hearsay evidence from what is typically a non technical user is always something to take with a grain of salt.
    I just talked to one of our field engineers and he has seen screenshots to confirm it is the same issue as the one we can reproduce in-house.
    One thing to be absolutely sure of is that you are using .Close and .Dispose on the report objects as the user is done with them.
    We do, in general, make these calls and recently have gone through our code for memory leak possibilities, so this was recently checked for by developers.
    One other possible source of issues; printer drivers. Specifically printer drivers not designed for the particular OS. Ensure that the printer driver(s) used by the customer on that WIN 7 are designed for WIN 7 - even if they are only viewing and or exporting. CR has a large dependency on printer drivers.
    We use the Samsung CLP-320 and the driver package it installs are "Win 2000/XP/2003/Vista/2008/Win 7(32,64bit)", so I assume the correct version gets installed on our Win 7 x64 system.

  • I am unable to open files on amything!!! a box pops up that asks me what do i want to open the file with..every time!! I want files to open when i click on them!! This happens with emails, websites, everything

    I try to open attachments in emails and they will not open! A box comes up asking 'what do I want to open the file with', and it wants me to select from a list of options like - Firefox, IE, Word, Yahoo Browser. When I make a selection (usually Firefox) a new tab opens with a blank page! This always happens on attachments, links, websites......everything!

    These files were lost two years ago.
    That's not consistent with what you wrote in your first message. I can't help you unless I know what's going on. Either you do, or do not, have backups of all the data you want to keep. If you do not, then the first thing you need to do is back up those files. It makes zero sense to do anything else. In order to back up, you'll need either of two things: another Mac, in working order, with a FireWire port and enough space on its internal drive to hold your files; or an external drive, also with enough space.
    On the other hand, if you do have backups, or if you simply don't care about any of the data, then the solution to your problem may be quite simple. All you have to do is boot from your installation disc (your profile says you're running Mac OS 10.5), erase your internal drive, reinstall the Mac OS, then restore your data from backup. You will need to be selective in restoring software, because incompatible software may be what caused the issue.
    But it's also possible that you have a hardware failure, in which case you can't get your computer working again until it's repaired.

  • I am using a Photoshop cs2, and I wonder if it is possible to keep the settings of the guidelines when closing an image, with the actual document ? It would be nice to have the guidelines locked down, I find it than when opening the same or another image,

    I am using a Photoshop cs2, and I wonder if it is possible to keep the settings of the guidelines when closing an image, with the actual document ? It would be nice to have the guidelines locked down, I find it than when opening the same or another image, the guidelines are not locked, it is annoying to have to lock them down again. and it would actually be nice, to ba able to give specific directions when placing the guidelines. Thanks

    Then why are the guides unlocked when I reopen a document that I saved with the guides locked ?
    Thanks.

  • Mail will not display images with .jpeg extension. .jpg works fine. (displays in place when opening the email. What plug-in would correct this?

    Mail will not display images with .jpeg extension. .jpg works fine. (displays in place when opening the email. What plug-in would correct this?

    If you think you're insane now, try maintaining those pop up menus.
    As far as I know, these menus have not been updated since FW 8, so 
    they are at least two versions old.
    Save yourself a lot of grief by avoiding those menus. There are many 
    other products on the market which do a much better job of creating 
    and maintaining this type of navigation structure.
    Read this link before you climb any higher on this slippery slope:
    http://apptools.com/rants/jsmenu.php
    There was another blog post by the fellow who originally wrote the pop 
    up menu feature, but I can't seem to locate it. Even he says stay away 
    from them.
    Not the answer you probably want, but I hope it helps, nonetheless.
    Jim Babbage

  • Hello. I have a new Computer and import my mediathek with an externe storage. When opened the new Mediethek in front of every song there is a explanation mark: original song could not been found. I try everything. Whats the Problem??

    Hello. I have a new Computer and import my mediathek with an externe storage. When opened the new Mediethek in front of every song there is a explanation mark: original song could not been found. I try everything. Whats the Problem??

    But it seems the OP has a setup where the media is on the external drive, and the library files are on the internal. This is what I refer to as a split library, Migrating such from one computer to another is not straightforward. Often iTunes will have some definite idea about where the files should live, and updating the setting of the media folder won't change that. If it requires a drive letter change that is usually not too hard, but sometimes there is another preference file that needs tweaking to indicate which of the old & new layouts for the library is being used. In more extreme cases I have a script for automatically making track by track repairs.
    tt2

  • When opening the Calendar app, I am greeted with a box that says "This calendar can not be refreshed."  After clicking on "OK" another box pops up saying "The server responded with an error."  How can I get rid of these?

    When opening the Calendar app, I am greeted with a box that says "This calendar can not be refreshed," and after clicking ok there is another box saying "The server responded with an error."  How do I get rid of this.  The calendar functions all right, but just have to close both of those boxes after doing any action in the calendar app.

    Please take each of the following steps that you haven't already tried, until the problem is resolved. Back up all databefore making any changes.
    Step 1
    From the Calendar menu bar, select
    Calendar ▹ Preferences ▹ Accounts
    Choose the affected account from the list on the left and uncheck the box marked
    Enable this account
    Then check the box again. Test.
    Step 2
    Make a note of the account settings, then delete the account and add it back with the same settings.
    Step 3
    If you can't add the account, the settings may be invalid. Verify them. How you do that depends on what kind of account it is. If it's a Google calendar and you've activated 2-step verification, you need to generate an application-specific password in your Google account and enter it in place of your old password.
    Step 4
    Quit Calendar. Triple-click the line below on this page to select it:  
    ~/Library/Calendars/Calendar Cache  
    Right-click or control-click the highlighted line and select
    Services ▹ Reveal
    from the contextual menu.* A Finder window should open with a file named "Calendar Cache" selected.
    Move the selected file to the Trash. There may be one or two other files in the same folder with names that begin in "Calendar Cache". If so, delete those files too.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard (command-C). In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar, paste into the box that opens (command-V). You won't see what you pasted because a line break is included. Press return.

  • I think in the iOS 7.1 it's will be very nice if you will make system in iPhone 5s that when you open the iPhone with your finger Siri will say welcome back [name you can choose] it's will be very nice.

    I think in the iOS 7.1 it's will be very nice if you will make system in iPhone 5s that when you open the iPhone with your finger Siri will say welcome back [name you can choose] it's will be very nice.
    In the options before you click on add finger you will be able to choose your  name
    And if you don't want it so you will click on i don't want it
    and it won't say your name

    We are all users here, just like you. Apple does not follow these discussions.
    But you can tell Apple about your wishes here:
    Apple - iPhone - Feedback

  • Firefox gets slower with every upgrade & now crashes every time I open a PDF, made worse when opening the next time, by reopening the PDF & crashing again

    Firefox gets slower with every upgrade & now crashes every time I open a PDF, made worse when opening the next time, by reopening the PDF & crashing again

    If you have submitted crash reports then please post the IDs of one or more crash reports that have this format:
    *bp-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    You can find the IDs of the submitted crash reports on the <i>about:crashes</i> page.
    *You can open the <b>about:crashes</b> page via the location bar, like you open a website.
    See:
    *http://kb.mozillazine.org/Mozilla_Crash_Reporter
    *https://support.mozilla.org/kb/Mozilla+Crash+Reporter

  • I've read a lot of comments/suggestions about camera issues that it turns black when opening the phone camera but nothing is worked for me. I'm so frustrate on my iPhone 5s im using it like for a month, I thought its more better than Samsung but I failed.

    I've read a lot of comments/suggestions about camera issues that it turns black when opening the phone camera but nothing is worked for me. I'm so frustrate on my iPhone 5s im using it like for a month, I thought its more better than Samsung but I failed. Please help!!! I hope apple has something to do about this. Thanks.

    I would have had the phone looked at long before a month of problems.
    First thing to try is to reset your device. Press and hold the Home and Sleep buttons simultaneously until the Apple logo appears. Let go of the buttons and let the device restart. See if that fixes your problem.
    If that doesn't help Make an appointment at an Apple Store to have your device examined by a technician. Or contact Apple Support. You phone is under warranty and someone at an Apple store can help you.

  • I use an iPad 3 with IOS6. When opening the calendar and strolling to march 2013, calender always shuts down.

    I use an iPad 3 with IOS6. When opening the calendar and strolling to MARCH 2013 calender shuts down...
    Anybody with same problem or having a solution?

    Try removing any all-day events from the calendar for the 1st April 2013 e.g. if you are syncing the calendar from somewhere else (e.g. Outlook on a PC or iCal/Calendar on a Mac) then change it to a timed event instead of all-day - it seems that there is a problem with all day events on that date which is when the clocks change due to daylight saving.

  • Problem with opening the xls file

    I am getting this message while opening the xls file.
    type Status report
    message /report/eltc/timeplan_mjain_200708301147.xls
    description The requested resource (/report/eltc/timeplan_mjain_200708301147.xls) is not available.The file has been created successfully but not opening. whever i refresh the entire application in the tomact then its been recognized.the code below is used to open the file after creating it.
    BaseAction action = new IndicativeTimePlanAction();
                   action.execute(objReq, objRes);               
                   TreeMap map=(TreeMap)objReq.getAttribute(LTCConstant.LTC_TIME_PLAN_MAP);
                String strFilename = TimePlanUtil.downloadTimePlan(objReq,objRes, map);    
                //String strFilename="vsblt_mjain1.xls";     
                objRes.setContentType("application/octet-stream");
                objRes.setHeader("Content-Disposition","attachment;filename=\""+strFilename+"\"");
                objRes.setHeader("Cache-control","must-revalidate");
                RequestDispatcher dispatcher = objReq.getRequestDispatcher("/report/eltc/"+strFilename);
                dispatcher.forward(objReq, objRes);No exception is thrown at the console.
    Any suggestions plz.
    Message was edited by:
    bobz
    Message was edited by:
    bobz

    whever i refresh the entire application in the tomact then its been recognizedMaybe you're creating and downloading it asynchronously so that the creation of the file isn't finished yet while you're about to download it.

  • Please a solution against crashes when opening a file with Acrobat XI pro?

    Hello,
    Am a member of Adobe Creative Cloud.
    Am also constantly having crashes when opening a file with Acrobat XI pro.
    Am running on Windows 7 Home Premium, Service Pack 1, 64 bit - RAM 20 GB -
    The crash happens systematically after the installation of the update. Within one day I uninstalled and reinstalled the program 4x! It takes of a lot of my time.... Thank you for providing a definitive solution!
    Best regards

    I've been having the same issue!  I try to open it and it crashes - says re-open, it crashes...  I re-installed it yesterday and it opened and worked fine.  Closed it out at the end of the day thinking everything was finally fine but this morning the same crashes it had yesterday...  HELP!!!

Maybe you are looking for