Export to excel in CE : Issue with getPublicCachedWebResource

Hi Friends,
I am trying to export table data to excel. I have considered the related posts in SDN. The pproblem I am facing is due to the NWDS version I guess. I a using CE7.1 SP05.
My code is :
cachedWebResource = WDWebResource.getPublicCachedWebResource(excelCSVFile, type, WDScopeType.APPLICATION_SCOPE,
          wdThis
          .wdGetAPI()
          .getComponent()
          .getDeployableObjectPart(),
          fileName);
wdComponentAPI.getMessageManager().reportSuccess("Resource Name " + cachedWebResource.getURL());
The output is :
../../../../webdynpro/resources/demo.sap.com/jxltest/Components/com.sap.demo.jxltest.jxltestapp.comp.JxltestappComp/output81389.xls
I have no idea where from the number 81389 is appending after output. The file should be "output.xls". This is different everytime I run the program.
Need help. Any pointer will be appreciated.
Thanks,
Mickey.

HI
Are you creating content Excel file name.....before exoprting to excel as  i meintioned in below code.....this code is running on my system.
java.io.File f = new java.io.File("output.xls");
                     WritableWorkbook workbook = Workbook.createWorkbook(f);
                     WritableFont red = new WritableFont(WritableFont.ARIAL,
                                                                  WritableFont.DEFAULT_POINT_SIZE,
                                                                  WritableFont.BOLD,
                                                                  false,
                                                                  UnderlineStyle.SINGLE,
                                                                  Colour.DARK_BLUE);
                     WritableCellFormat redFormat = new WritableCellFormat(red);
                     WritableFont blue = new WritableFont(WritableFont.ARIAL,
                                                                   WritableFont.DEFAULT_POINT_SIZE,
                                                                   WritableFont.NO_BOLD,
                                                                   false,
                                                                   UnderlineStyle.NO_UNDERLINE,
                                                                   Colour.BLACK);
                  WritableCellFormat blueFormat = new WritableCellFormat(blue);
                  WritableSheet sheet = workbook.createSheet("First Sheet", 0);

Similar Messages

  • Please Help --Export to excel time out issue

    500 Connection timed out
    Hi Friends,
    We have a query which runs about 3 minutes on web and  brings bach 54000 rows  , but when the user tries to export to excel It give timeout error as below.
    Connection timed out (-5)
    Error: -5
    Version: 6020
    Component: ICM
    Module: icxxthr_mt.c
    Line: 2467
    Server: tepas0_abc_00
    Detail: Connection to partner timed out
    Please help me out.
    Thanks a lot!

    Hi,
    Check the info here:
    https://forums.sdn.sap.com/click.jspa?searchID=5203764&messageID=959490
    There are also a lot of other threads on time out issue...
    Hope this helps...

  • Financial Reporting exporting to Excel - Column Width Issue

    Hello Experts,
    We are having an Hyperion Financial reporting issue from long time. I spent so much time and still I couldn't able to make it work.
    I would like to take help you guys.
    Issue: In Hyperion Financial Reporting, if I change the columnA size 10 to 20 and saved the report.
    In work space, I have refreshed the report ( I do the latest timestamp), run the report and exported into excel. The Coloumn size is not changing. I have tried in many ways, Still it's not working for me.
    Could any one try and let me know whether it's working for you or not. and please advice me how to make this work if this is working for you.
    Thanks a lot for your help
    Thanks,

    Hi again,
    I am not sure if you can extract the formatting to Excel... I had also issues.
    Can you please try to retrieve the report into Excel via Smartview? Check page 136 of  http://docs.oracle.com/cd/E40248_01/epm.1112/smart_view_user.pdf
    Regards,
    Thanos

  • LINK Excel.Sheet has issues with Non-English Office

    In non-english office when we issue
    LINK  Excel.Sheet.12 command, the range parameter is causing "Error! Invalid Link" error (¡Error! Vínculo no válido in spanish).
    Example if we do:
    {LINK  Excel.Sheet.12 C:\\Temp\\Text.xlsx  Test!R1C1:R2C2 \a \f 4 \h}
    We get invalid link error (in spanish).
    But when we remove the range parameter:
    {LINK  Excel.Sheet.12 C:\\Temp\\Text.xlsx  \a \f 4 \h}
    It works. This of course by default links only the first sheet by default. Anyone knows if this is a bug in Office for non-english? We are using Office 2010.

    Hi V.C.A,
    Based on your description, it seems that your issue was related with the field link feature of the Word, and this forum is mainly discussing about the Word development questions related to VSTO, VBA and .etc. For your issue, I will recommend you going to
    the forum below for help:
    http://answers.microsoft.com/en-us/office​
    Thanks for your understanding.
    Best Regards,
    Edward
    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.

  • Exporting from PPro CC - Exporting using Match Sequence Settings issue with 24 bit audio

    I am having an issue exporting my sequence which contains final AIFF mix (24 bit 48 kHz) into a 'same-as-source' ProRes 422 file with 24 bit audio. I am specifically trying to export media with 'Match Sequence Settings' checked to create an identical output of what my sequence is. I wind up only creating a PR422 with 16 bit audio rather than 24 bit audio.
    My sequence contains ProRes 422 media and 24 bit AIFF final stereo mix (1 audio file) from our Sound department.
    My sequence is currently setup as "Custom" at 1920x1080, 23.976 fps, Square Pixels, Progressive, etc. Audio is 48 kHz (I don't see an option for choosing different bit rates in the 'Sequence Settings').
    Using 'Match Sequence Settings', my options to alter the audio are "greyed out" and unavailable. I'm not sure why 'Match Sequence Settings' doesn't recognize that I am cutting with 24 bit audio and, instead, only exports 16 bit audio.

    Always skip Match Sequence Settings and set up the export manually.

  • Excel 2007 compatibility issues with Essbase 7.1.6

    Our company is rolling out Excel 2007 in January, and we are running Essbase 7.1.6 (Planning 4.0.5 front end). We have numerous Excel models and are using the Essbase Spreadsheet Toolkit software, which enables the Essbase menu commands to be executed with VBA code.
    What kind of issues can we expect to encounter? Is this an upgrade emergency?

    Yes, this version is supproted with Essbase 7.1.6 according to Oracle's Hyperion System 9.3.1 Release Compatibility
    for more details go through the following doc.
    http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/hsys9_install_start_here.pdf
    Regards,
    Manmohan

  • 2013 Excel WFservlet.xls check exports to Excel and opens blank Windows 7 Ent

    HI All,
    I am trying to work through an issue involving an online check through Accounts payable downloading to a blank Excel document. If the user saves the file it opens as it should but if she chooses to open it, it opens blank. If I go to View>Arrange
    All> leave the Tile selected (basically do nothing but click OK) and click OK it opens. I have done an Office repair with no luck and also a complete uninstall then used the office removal tool then reinstalled with reboots in-between and still no change.
    This computer is on a domain and I can get the check to export to excel without any issues on another computer so I know it's not her roaming profile. I can get it to work on my machine and others as me, admin and her but on her machine no luck. I have opened
    IE settings on her machine and a working machine and matched the settings exactly as well as Excel settings. I have started Excel in safe mode and exported but no luck. I have disabled all add ins in excel and added the site to compatibility settings and trusted
    sites in IE. I reset the browser and deleted history with all options selected.
    In the beginning I was receiving the error "The file format and extension of ".xls" don't match. The file could be corrupted or unsafe. Unless you trust its source, don't open it. Do you want to open it anyway?" I checked the following
    In Windows Explorer Tools > Folder Options > View tab > made sure "Hide extensions for known file types" was unchecked.
    I also did
    Open your Registry (Start -> Run -> regedit.exe)
    Navigate to HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\OFFICE\12.0\EXCEL\SECURITY
    Right click in the right window and choose New -> DWORD
    Type “ExtensionHardening” as the name (without the quotes)
    Verify that the data has the value “0″
    No luck.
    If I log into the computer as local admin or my domain account it still opens blank.

    HI All,
    I am trying to work through an issue involving an online check through Accounts payable downloading to a blank Excel document. If the user saves the file it opens as it should but if she chooses to open it, it opens blank. If I go to View>Arrange
    All> leave the Tile selected (basically do nothing but click OK) and click OK it opens. I have done an Office repair with no luck and also a complete uninstall then used the office removal tool then reinstalled with reboots in-between and still no change.
    This computer is on a domain and I can get the check to export to excel without any issues on another computer so I know it's not her roaming profile. I can get it to work on my machine and others as me, admin and her but on her machine no luck. I have opened
    IE settings on her machine and a working machine and matched the settings exactly as well as Excel settings. I have started Excel in safe mode and exported but no luck. I have disabled all add ins in excel and added the site to compatibility settings and trusted
    sites in IE. I reset the browser and deleted history with all options selected.
    In the beginning I was receiving the error "The file format and extension of ".xls" don't match. The file could be corrupted or unsafe. Unless you trust its source, don't open it. Do you want to open it anyway?" I checked the following
    In Windows Explorer Tools > Folder Options > View tab > made sure "Hide extensions for known file types" was unchecked.
    I also did
    Open your Registry (Start -> Run -> regedit.exe)
    Navigate to HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\OFFICE\12.0\EXCEL\SECURITY
    Right click in the right window and choose New -> DWORD
    Type “ExtensionHardening” as the name (without the quotes)
    Verify that the data has the value “0″
    No luck.
    If I log into the computer as local admin or my domain account it still opens blank.
    The file will open in Chrome but I am wondering if that's because Chrome downloads the file as if I choose to save the file opens fine. I am going to run the OffCAT will post my findings.
    Thank you!

  • Error detected by Export DLL, when trying to export to excel

    Hi All
    We are having an issue that has occured recently where some of our user's are unable to export to excel. They were working ok.
    The crystal viewer was originally designed using Framework 1.1 (vs.net 2003) and we have applied the hotfix to the user's pc called:
    crnet11win_en.exe
    Which fixed the issue originally, by upgrading the ExportModeller.dll to 9.1.1.528.
    However in this case, even after running the patch, the user's pc is still unable to export to "excel", works ok for PDF and WORD, just not excel.
    Tested the report on 2 other pc's and the report is able to export to excel.
    Just not on that user's pc, is anyone able to give advice of what could be stopping the user from running the report.
    The user is on Windows XP SP3, but we been informed that other user's with XP SP3 are able to export to excel with no problem.
    Thanks in advance for any help or advice that you can give.
    Regards
    Chris
    Edited by: CMThompson on Feb 22, 2010 11:52 AM

    Thanks Ludek
    We found the issue after doing control tests, here.
    We found that our crystal viewer, developed in .NET 2003, does not work with XP SP3, even with the fix crnet11win_en.exe.
    Our control test, was:
    Ran report with XP SP2, exported ok
    Upgraded pc to XP SP3, then ran report again, Report failed to export, with error message as described.
    Had a crystal viewer set for  using .NET 2005 files, but not yet ready for deployment to users, tested and was able to export to excel using .NET 2005 with XP SP3.
    The issue seems to relate to exportmodeller.dll, which was the issue in the past when XP was upgraded and stopped the export function from working before.

  • Problem in ALV export to Excel (Local File)

    Hi guys,
    I'm using the option export data do local file, option excel, but some strange behave is happening...
    Some columns are exported without the last digit...
    Ideas?
    Regards,
    LMS

    Hi LMS,
    Use this link.
    Export to excel in ALV
    Problem with Export to Excel from ALV Grid
    Hope this will help you to resolve your problem.
    Regards,
    Vijay

  • Unknown column in the excel sheet created using Export to Excel

    Hi,
    I created an excelsheet for the table data using the below link
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/wdjava%20archive/exporting%20context%20data%20into%20excel%20using%20the%20web%20dynpro%
    20Binary%20Cache.pdf
    but problem here is when i open the excel sheet it is having some unknown columns apart from the expected like amount/#agg next to the actual column amount and it is happening only for the cloumns which have some numbers.
    I dont know where these columns are coming from.
    Send me the solution and points will be rewarded for the helpful answers.
    I want to put some name to the excel file instead of using system created file name.for this requirement where do i need to change the code

    Hi,
    You can export to excel even not relating with any libraries
    Follow this way..
    Take one singleDimensional array, arrColNames[], and one Two dimensional array, arrValues[][].
    File f=new File("Sample.xls);
    FileOutputStream fos=new FileOutputStream(f);
    for(int i=0;i<arrColNames.length;i++)
    fos.write(arrLabels<i>.getBytes());
    fos.write("\t".getBytes());
    fos.write("\n".getBytes());
    for(int j=0;j<noOfRows;j++)
    String arr[]=arrValues[j];
    for(int a=0;a<arr.length;a++)
    if(arr[a]!=null)
         fos.write(arr[a].getBytes());
        fos.write("\t".getBytes());
    fos.write("\n".getBytes());
    fos.flush();
    fos.close();
    The exported excelFile will be stored in your server. If you want to open it using FileDownLoad UI Element,
    Create value attributes resource of type Resource, behaviour of type FileDownLoadBehaviour, reso of type String, fileName of type String , Then then append this code
    FileInputStream fis=new FileInputStream(f);
    FileChannel fc=fis.getChannel();
    byte data[]=new byte[(int)fc.size()];
    ByteBuffer bb=ByteBuffer.wrap(data);
    fc.read(bb);
    fis.close();
    IWDCachedWebResource objCachedWebresource=null;
    if(data!=null)
    objCachedWebresource=WDWebResource.getWebResource
    (data,WDWebResourceType.XLS);
    objCachedWebresource.setResourceName(f.getName());
    wdContext.currentContextElement().setFileName(f.getName());
    wdContext.currentContextElement().setResource(objCachedWebresource);
    wdContext.currentContextElement().setReso(objCachedWebresource.getAbsoluteURL());
    wdContext.currentContextElement().setBehaviour(WDFileDownloadBehaviour.ALLOW_SAVE);
    Regards
    LN

  • Exporting from excel

    I am using acrobat 9 pro and when I export from excel our logo appears with a thick black line through it. Any suggestions?

    Thanks but I have changed the print quality in Adobe to "high quality" which has fixed the problem.
    Thank you
    Fran Davies
    Finance Manager
    Bardon Design Pty Limited
    Unit 3 231 Whale Beach road
    Avalon NSW Australia
    MP +61402229523
    P    +61299741299
    F    +61299741299

  • Issue with export in Excel in WAD

    Hi
    I have an issue with export to excel in WAD. I have a web template with two or more tabs.
    On the webtemplate I have two buttons to export to excel. One to export the content from the active tab and one button to export content in all tabs.
    My problem is that when I export to excel it always add the current/active content twice. I've tried with both buttons and they work as expected except that they export one table to much (the active).
    can anyone help / give a clue what to look for.
    br,
    John
    Edited by: John Dolph on Apr 15, 2010 10:50 AM

    Hi
    Sorry I has been a while but the problem still occurs,
    I've defined my export button group like this in a seperate template and I expected that it would only return the resultset from TAB_A and TAB_B but it also export the resultset from the tab I'm currently on.
    <bi:TEMPLATE_PARAMETERS name="TEMPLATE_PARAMETERS" />
                <bi:BUTTON_GROUP_ITEM name="TAB_BUTTONs" designheight="23" designwidth="300" >
                    <bi:BUTTON_LIST type="ORDEREDLIST" >
                        <bi:BUTTON type="COMPOSITE" index="2" >
                            <bi:CAPTION value="EXCEL" />
                            <bi:TOOLTIP value="Table, Graph and/or Table/Graph download to PDF" />
                            <bi:ACTION type="CHOICE" value="INSTRUCTION" >
                                <bi:INSTRUCTION >
                                    <bi:EXPORT >
                                        <bi:ITEM_REF_LIST type="UNORDEREDLIST" >
                                            <bi:ITEM_REF index="1" value="TAB_A_ANALYSIS" />
                                            <bi:ITEM_REF index="2" value="TAB_A_CHART" />
                                            <bi:ITEM_REF index="3" value="TAB_B_ANALYSIS" />
                                            <bi:ITEM_REF index="4" value="TAB_B_CHART" />
                                        </bi:ITEM_REF_LIST>
                                        <bi:EXPORT_FORMAT value="XLS" />
                                    </bi:EXPORT>
                                </bi:INSTRUCTION>
                            </bi:ACTION>
                        </bi:BUTTON>

  • Issue with SSRS Report Exporting to Excel and word

    Hi,
    When report is exporting in word and Excel getting format issue, but same report export with pdf there is  no issue.
    Regards,
    Afroz

    You need to be always careful when export format is Word and specially Excel. Sometimes report result looks good in Report Viewer and PDF too, but it may not in MS Word and MS Excel.
    You need to understand Word and Excel limitations and align all the data regions (Tablix, Rectangles, Texboxes) in correct way.
    Also, you may post the actual formatting issue that you get. (With screenshot if possible)
    Please read Limitation section in below:
    Exporting to Microsoft Word
    Exporting to Microsoft Excel
    Refer:
    Ten Common SQL Server Reporting Services Challenges and Solutions
    -Vaibhav Chaudhari

  • Issue with exporting line to excel on Crystal Report 2013

    Hi all,
    I got the issue when exporting to Excel
    I would like to export to excel with line border in cells. But it seems there is limitation when using "line" object. If I use line, in excel file, there is nothing. Then I changed to use border cells. It's exported fine to excel, but I got another issue.
    Because data is so long, so I use "can growth" function. But if I use "can growth" function. I got issue when export to excel file like the picture I attach here.
    There are a lot of empty cells when wrapping text, how can we remove empty cells? And the line was drawn incorrectly.
    Thanks so much.

    I need a report with border cell and do not merge cell or blank row/cell after exporting to Excel. Most of them are fine (using border cell instead of line object). But I got issue when using "CanGrow" option to extend height of text object automatically.
    Below is detail.
    1. If the "CanGrow" option is false
    - In preview report, the field does not extend the height to show all data if it is over
    - Then, export to Excel by "Microsoft Excel (97-2003)"=> it shows exactly what I saw in previewing (data has been truncated automatically).
    - If export to Excel by "Microsoft Excel (97-2003) Data only" => it shows all data but the formatting of cell (border, width) is missing
    2. If the "CanGrow" option is true
    - In preview report, the field extends automatically if the field is too long but other fields still remain
    - Then, export to Excel
    I expect I can see all data with the correct border cell and do not merge cell in the preview and Excel (the cell may be wrap text or not if it is over the size but the data need to be kept instead of truncating)
    Is there any solution to meet it?
    Many thanks.

  • Matrix exporting to excel with empty columns, with page break option of "Between each instance of a group" selected.

    I am working with Report Builder 3.0 I am using a matrix to produce grouped data on separate worksheets in excel.
    The select is:
    SELECT ID, Measurement, Value, [Date] FROM Measurements_Report. (please ignore the underscores they are just for formatting) 
    The contents of the Measurements_Report table:
    ID__Measurement__Value__[Date]
    1___Hot_________33_____10/1/2014
    2___Hot_________44_____10/2/2014
    3___Cold_________55_____10/2/2014
    The matrix contains a single row group based on the field "measurement". The Measurement group has the page break option of "Between each instance of a group" selected. 
    There is a column group based on the field "Date". 
    When this is matrix is exported to excel on the first worksheet (Hot) there are three columns as shown below:
    ID__10/1/2014____10/2/2014___10/2/1014
    1___33
    2_______________44
    Notice the last column doesn't have a value.
    On the second worksheet (Cold) there are also three columns as shown below:
    ID__10/1/2014___10/2/2014___10/2/1014
    3__________________________55
    This time notice there is only one row and only a value in the last column.
    I only want the columns with data for that worksheet to show up. How can I remove these empty/duplicate columns? Hopefully there is a simple fix. Thanks ahead of time.

    With the following contents of the Measurements_Report table:
    ID__Measurement__Value__[Date]
    1___Hot_________33______10/1/2014
    2___Hot_________43______10/1/2014
    2___Hot_________44______10/2/2014
    3___Cold________55______10/2/2014
    Returns on the first tab (Hot):
    ID__10/1/2014____10/1/2014____10/2/2014
    1___33
    2_________________43
    2______________________________44
    In the excel worksheet it contains a separate column for each date with a value. Thanks again!
    Why is the same date repeating on multiple columns? Do you've the time part also returned from database?
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

Maybe you are looking for

  • Premiere CC 2014.1 Blu-ray MPEG 2 export causing error in Sony DVD Architect Pro

    I've filed a Bug Report for this but wanted to post here in case it helps anyone else or on the off chance someone can give me a solution / better work around. Something has changed in the results of a Blu-ray MPEG2 export from Premiere 2014.1 vs tho

  • Ojc bug compiling simple java class

    Hi, I am trying to compile some very old Java code with JDeveloper 10.1.2.1.0 (Build 1913) and running into a very strange problem. I cannot use the "import" statement to import classes, which are stored in root without a package name specification.

  • Outer join (with (+)) does not work

    I started with a working SQL statement: SELECT DISTINCT username, r.granted_role FROM dba_users u, dba_sys_privs s, dba_tab_privs t, dba_role_privs r WHERE u.username = s.grantee AND u.username = t.grantee AND u.username = r.grantee ORDER BY username

  • Creating new admin account and deleting old one

    I am handing my MacbBook Pro to my wife I am thinking about deleting my account (which is an admin, of course). I made her an admin account and she has access to all my apps when she logs in... I WANT her to have access to my applications as if they

  • MacBook reformat issue

    Hi, apologies in advance if this is the wrong message board. I am trying to help a friend with his daughters macbook.  I am not particularly savvy with Apple products, having kept to my windows system. This particular macbook, 2010 model i believe, h