PROBLEM IN EXCEL EXPORT. URGENT!!!!!

hi all,
I have requriment acco to which i need to download or export the content of the table UI element to excel 2003. I used the a excel export application, but facing problem like. in the below mentioned method name, how are the parameters
1) com.sap.tc.webdynpro.progmodel.api.IWDNode
2)java.util.map
has been taken, i am not able to get this in my application where i need to use this method.
or is there any other method by which i can export my table data to excel2003. please this really urgent requirment.
public void exportToExcel2003( com.sap.tc.webdynpro.progmodel.api.IWDNode
dataNode, java.util.Map columnInfos )
REGRADS
SHARAN
Edited by: saisharan kalla on Dec 20, 2007 6:01 AM

Hi Sharan,
                What exactly is the problem u r facing with those parameters??
U can use this method also for excel export
/people/subramanian.venkateswaran2/blog/2006/08/16/exporting-table-data-to-ms-excel-sheetenhanced-web-dynpro-binary-cache
U can check with this also
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/webDynproJava-ExportingTableDataUsingOn-DemandStreams-SAPNW+7.0&
regards
Sumit

Similar Messages

  • SSRS 2012 problem with excel export

    Hello
    I updated SSRS 2005 up to SSRS 2012. When I exported report in excel (xlsx)  I got following warning :
    "We found a problem with some conent in 'filnename.xlsx'.Do you want to try to recover as much as we can? if you trust the source of this workbook,click yes"
    After Pressing Yes Button
    "REpaired Recors: Cell information from .xl.worksheets.sheet1.xml port"
    15
    0.00000000000000000000 this is in string format instead decimal
    2
    0.00000000000000000000
    This heppens if i have decimal(38.20) variable in table and record value is 0.
    To avoid this problem i must change report and use this expression
    =IIF(Fields!SomeValue.Value = 0, 0, Fields! SomeValue.Value)
    for value in report, but this is not sulution for me because we have more then hundred reports.
    Is any other solution?

    Hi LashaGurgenidze,
    The issue seems to be related to the Excel 2010 or the Excel 2007-2010 rendering extension in SSRS 2012. If possible, I suggest that you keep the Office 2010 and the SQL Server 2012 up to date, and check the issue again.
    In order to solve the issue, we can enable the Excel 2003 rendering extension in SSRS 2012, and use this render when exporting to Excel. We can modify the EXCEL render extension in the rsreportserver.config file as follows:
    <Extension Name="EXCEL" Type="Microsoft.ReportingServices.Rendering.ExcelRenderer.ExcelRenderer,Microsoft.ReportingServices.ExcelRendering"/>
    Then, the Excel 2003 render extension will be available in the Export drop-down list.
    By default, the file is located in: C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer. Before we modify it please backup the rsreportserver.config file.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Problem with Excel export

    Hi!
    I am trying to export data from datagrid to Excel. Export goes just fine, but the page I make the export from stops responding. I.E. pressing the export button again won't do anything. After reload (by pressing F5) page it works normally until the next export. I made a simple code example that demonstrates the problem:
        public class ExcelTesti : System.Web.UI.WebControls.WebParts.WebPart
            Button excelButton = new Button();
            public ExcelTesti()
                this.ExportMode = WebPartExportMode.All;
            protected override void Render(HtmlTextWriter writer)
                excelButton.RenderControl(writer);
            protected override void CreateChildControls()
                excelButton.Text = "To Excel";           
                this.Controls.Add(excelButton);      
                excelButton.Click += new EventHandler(m_button_Click);
            protected void m_button_Click(object sender, EventArgs e)
                this.Page.Response.Clear();
                this.Page.Response.AddHeader("content-disposition", "attachment;filename=PIexport.xls");
                this.Page.Response.Cache.SetCacheability(HttpCacheability.NoCache);
                this.Page.Response.ContentType = "application/vnd.ms-excel";
                Page.Response.BufferOutput = true;
                this.Page.Response.Buffer = true;
                EnableViewState = false;
                this.Page.Response.Charset = "";
                StringWriter strW = new StringWriter();
                HtmlTextWriter htmlw = new HtmlTextWriter(strW);
                htmlw.RenderBeginTag(HtmlTextWriterTag.Table);
                htmlw.RenderBeginTag("tr"); //Add a row
                htmlw.RenderBeginTag("td"); // Add a cell
                htmlw.Write("Test");
                htmlw.RenderEndTag(); //End of the cell tag
                htmlw.RenderEndTag(); //End of the row tag
                htmlw.RenderEndTag(); //End <Table>           
                this.Page.Response.Write(strW.ToString());
                Page.Response.Flush();
                Page.Response.End();
    I found some threads with the same problem, but no solutions that helped me. For example
    http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=1572942&SiteID=17
    http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=1369245&SiteID=17
    There must be some way to do this. I have seen web parts that do this right.
    Can anyone help me?
    Antti

    Hi,
             I am facing with the same issue. I think it is absolutely with Response.Clear(), which removing all the events and hence page is not reepsonding to any event.
             I have a deployed a custom- webpart in to a sharepoint site, which is consisting of a summary html table, button control and Export to Excel button. Every thing is working except events are not fired after export to excel button is clicked. The code inside the export to excel is
    Export to Excel Click event code:
    Me.Page.Response.Clear() 'clear the response before writing excel stream
    Me.Page.Response.ContentType = "application/vnd.ms-excel" 'set the response contenttype as excel
    Me.Page.Response.Charset = String.Empty 'set response charset as string
    'get the filename to be displayed on the response stream
    'specifying the response stream as an attatchment in the header [to open the excel file in the seperate window]
    Me.Page.Response.AddHeader("Content-Disposition", "attachment;filename=test.xls")
    'write the content on to the screen
    Me.Page.Response.Write(sbExcelString.ToString()) 'writing excel stream in the form of string
    'end the response once done [otherwise unnecessary conent will be appended at the end of the excel file]
    Me.Page.Response.End()
    I think somewhere the issue with Response.Clear or Response.End.
    As you said there is a remedy for this, but i cant use that remedy because i cannot use a new page becauce my code is entirely in to a custom control and i should not depend on any aspx page.
    Please help out in solving this issue in the same custom control click event itself.
    I think there is a solution, only thing how to attach the events when we use Response.Clear or Response.End method [but i dont know how do i do this].
    Thanks in advance for your helpful message.
    Mukthesh.

  • Problem with CR exporting and Excel formatting/merging

    I'm currently running Visual Studio 2008 (Version 10 of CR).  We have a Winforms application that runs various crystal reports  I can't say there's anything particularly sophisticated about it.  Just slap the report in a viewer, pass in the parameters, and run.  As I've mentioned elsewhere I have not done much with CR (or Excel for that matter).
    The problem is this.  Our client is exporting certain reports to Excel, the 'full' version if that's the right term, not the data only option.  The first field on every line of the detail is a text object consisting of several fields, concatenated.  These fields combined form an ID number that we want to sort by.  Unfortunately, so they tell me, this is currently impossible because in the export, the number occupies two columns and they are not merged.  (Actually it doesn't look like any of the report columns bear any relation to any of the Excel columns.)
    I always thought Excel export was one of those black box extras. 
    Now I have to ask, is there any way to customize it, programmatically or otherwise?  (Am I overlooking any options?)
    (Digging a bit deeper, could there be something in the CrystalDecisions API that I could use?  Not sure I see anything useful in the ExcelExportOptions object yet.)
    Edited by: BChernick on Jul 8, 2011 3:09 PM

    [SAP Crystal Reports Design|SAP Crystal Reports; forum.
    - Ludek
    Edited by: Don Williams on Jul 8, 2011 11:05 AM

  • Excel export problem using craxddrt

    Hi,
    I'm using craxddrt v.11.5 in our intranet application to export rpt.reports to different formats. My code works well with PDF and text exports, but when it comes to Excel after the .Export(false) method executes the browser window just goes into idle then the session finally expires. I never catch any error. I have tried several export options with no prevail.
    I suspect the Excel export is missing some info to complete and it is trying to prompt me, but no visible prompt gets displayed/answered so it just expires.
    Could anyone help me out. I've spent several days researching and fixing the code and ran out of ideas.
    Sincerely
    Steve Komaromi

    Hi Steve, Is there some reason you are posting this question over and over again?
    Try looking at your same post: Excel export problem using craxddrt
    Also, RDC is legacy product. Look for you answer where you posted the exact same question in the legacy forum.

  • Problem with Excel output format

    Hi Guys,
    I am creating a report in XML Publisher (not standalone). I am facing some problems could anyone please help me to figure out the issues.
    Is it possible to have all three output format (PDF, HTML & EXCEL) exact (same aligned) only by creating a single RTF Template? I am facing the problem with Excel output format the output format of excel is taking excels cell formatting.
    Example Numeric fields --> Right Aligned, text fields --> Left Aligned
    One more issue with excel is -ve(negative) values are getting displayed in red and in brackets like ($13) (with red color).
    Our client want excel output on priority.
    Is there any limitation for excel output format of reports?
    It is very urgent for us please help.
    Any help would be highly appreciated.
    Thanks,
    Pragati
    Edited by: user11237443 on Aug 27, 2009 1:22 AM

    Hi Mahi,
    Thanks for your response. But i could not understand how can we write wrapper program could you please give some light on this or provide some link it would be helpful for me:-)
    I have read that blog for excel limitations but i have more question?
    1) What about the negative values?
    if any field is displaying negative amount then excel not displaying right value for that:(
    2)How can we align header or data?
    Do XMLP with EBS provide any solution for formatting in excel?
    3) If for the alignment of numeric value we concatenate them with any special character then how can we perform calculation that field?
    Here are so many formatting issues do we need to write any code in xml for that?
    Please help.
    Many Thanks,
    Pragati

  • How to freeze the columns in excel exported from SSRS report??

    We have created a report for our client. The client wants the report in excel format. As there are nearly about 30,000 rows in the excel. Client wants us to freeze the column header names in the excel so that even after scrolling down they
    will be able to see the column names.
    can anybody have idea how to achieve this in SSRS?

    Hi Shard,
    Thanks for your post, You can achive your requiremets by using the below logic. hope this will help you.
    Steps to achieve it
    1. Select the tabix and click on Tablix properties.
    2. In the General tab under Column Headers section you can see "Keep header visible while scrolling" checkbox, check it.
    3. Now the header row will be remain fixed in the report.
    OR
    1.    In the grouping pane, make sure to turn on advanced mode (click on the small black down arrow on the far right of the grouping pane) 
    2.  Select the corresponding (Static) item in the row group hierarchy
    3.  In the properties grid, set RepeatOnNewPage to true
    4. KeepwithGroup to After
    OR
    1)Freeze the header of all columns[ Freezing table header ] : To do select static member of table header row from  row groups [ Advanced Mode ] and set  FixedData to true
    2) Freeze the initial 2 columns : To do select static member of columns in column group and set fixedData to true .
    How do you freeze the tablix header row in an Excel export file in SSRS 2008
    Suhas Kudekar
    Mark as Answer if this resolves your problem or "Vote as Helpful" if you find it helpful.
    My Blog
    Follow @SuhasKudekar

  • Add columns to EXCEL exported from ALV

    Hi,
    I'm using the function module REUSE_ALV_GRID_DISPLAY, to display an ALV report. This report shows a standard text when users click on one column.
    I wanna know if its possible to add the standard text as a column into the EXCEL exported from this ALV? and if so, how can I do it?
    Regards.
    Gregory.

    Thanks again Raymond,
    With internal tables that have a type from ABAP dictionary works fine. My problem is that my internal table is declared into my program's global variables. My code bellow:
    DATA: BEGIN OF it_excel OCCURS 0,
             department  TYPE adcp-department,
             bname       TYPE usr02-bname,
             name_text   TYPE adrp-name_text,
             agr_name    TYPE agr_users-agr_name,
             text        TYPE agr_texts-text,
             from_dat    TYPE agr_users-from_dat,
             to_dat      TYPE agr_users-to_dat,
             tcode       TYPE agr_tcodes-tcode,
             ttext       TYPE tstct-ttext,
             tdesc       TYPE string,
          END OF it_excel.
    * fills the it_excel table
    perform fill_excel_data.
      CALL METHOD cl_gui_frontend_services=>file_save_dialog
        EXPORTING
          window_title         = 'File location'
          file_filter          = cl_gui_frontend_services=>filetype_excel
          prompt_on_overwrite  = 'X'
        CHANGING
          filename             = v_file
          path                 = v_path
          fullpath             = v_fpath
          user_action          = v_useraction
        EXCEPTIONS
          cntl_error           = 1
          error_no_gui         = 2
          not_supported_by_gui = 3
          OTHERS               = 4.
      CHECK sy-subrc EQ 0 AND v_useraction EQ 0.
      CREATE OBJECT v_excel 'EXCEL.APPLICATION'.
      SET PROPERTY OF v_excel 'VISIBLE' = 0.
      CALL METHOD OF v_excel 'WORKBOOKS' = v_workbooks.
      CALL METHOD OF v_workbooks 'ADD'.
      SET PROPERTY OF v_excel 'SHEETSINNEWWORKBOOK' = 1.
      CALL METHOD OF v_excel 'Worksheets' = v_sheet
        EXPORTING #1 = 1.
      CALL METHOD OF v_sheet 'Activate'.
      CLEAR v_subrc.
      CALL METHOD cl_gui_frontend_services=>clipboard_export
        IMPORTING
          data                 = it_excel[]
        CHANGING
          rc                   = v_subrc
        EXCEPTIONS
          cntl_error           = 1
          error_no_gui         = 2
          not_supported_by_gui = 3
          OTHERS               = 4.
      CHECK v_subrc EQ 0.
      GET PROPERTY OF v_excel 'ACTIVESHEET' = v_sheet.
      CALL METHOD OF v_sheet 'PASTE' NO FLUSH.
      CALL METHOD OF v_sheet 'SAVEAS'
        EXPORTING #1 = v_fpath #2 = 1.
    When calling cl_gui_frontend_services=>clipboard_export method the variable v_subrc is equal to 0 and sy-subrc is equal to 1 and the EXCEL file is not saved.
    Can you please tell me, what am I doing wrong?
    Regards,
    Gregory
    Edited by: Gregory Mayorga on Sep 7, 2010 10:56 AM

  • Problem in Excel after extracting data from SAP Report

    Hello,
    I have a problem with Excel file after extracting it from one of the SAP report.
    When my client extracted data from SAP in to excel he is coming across minus symbol on both sides of the number.
    for ex:        -447492177-
    When i extracted same SAP report in to excel i didnt face any such problem.
    Please share your inputs on what could be the problem.

    1. Make sure your client and you are using the same version of Microsoft Excel
    2. Let your client try to OPEN the exported xls file from a existed workbook instead of double-clicking the file directly.
    Atom

  • Excel export (webui crm -- excel) wrong format of house number

    Hi,
    in an excel export  (webui crm ---> Excel)  is displaying the wrong format.
    If the house number contains a special character such as "/" then the house number displayed in the date format in Excel.
    And if in the field house number is a number and a letter such as "9 a", then the house number is displayed in time format (9:00 am) instead the house number.
    Does anybody know, how can I solve this problem?
    Thank you in adance.
    Best regards, Jasmin

    Hi,
    There is no error from the CRM functionality. If you SAVE the excel,instead of opening it directly and then " open with "
    word pad or notepad, you can see the phone no.s and fax no.s are properly transported to excel.There is a default format setting of
    excel from the Microsoft, so you are getting the default format after opening the excel.
    Steps:
    1.Export to excel.
    2.Choose the BP,PHONE and FAX columns holding the 'CTRL'key.
    3.Right click on the chosen columns and choose "format cells".
    4.Under the tab "number" choose 'number' and and reduce the decimal
    place to '0' and click "OK".
    5.Now you will be able to see the expected format.
    If you are using IE then the excel file that is being generated should be an XML file which would help with the formating issue. But when there is a problem in the generation of the XML file a CSV file is created instead.
    The kind of problems that can cause this could be :
    - Wrong version of Excel (professional needed)
    - Error in encoding (note 1560243 corrects this)
    - Active X Settings on browser are not properly setup or disabled
    - Other problems (some fixed in note 1457261)
    I hope this helps.
    Br,
    Lloyd

  • InputFile, usesUpload and excel export on Glassfish

    Hello,
    I am working in an ADF application which is deployed on a Glassfish server. I use jdeveloper 11.1.2.3.0.
    I have problems with two components : the af:inputFile and the af:exportCollectionActionListener.
    Cause of af:inputFile I had to change the usesUpload property to true.
    [code]<af:form id="f1" usesUpload="true">[/code]
    In Glassfish, if usesUpload property is true, the af:inputFile component have a strange behavior where the web browser ask user to refresh the page.
    The other problem is about export excel functionality.
    [code]
    <af:commandImageLink text="" id="cil4" icon="/adf/images/excel.png">
         <af:exportCollectionActionListener type="excelHTML" exportedId="t2"/>
    </af:commandImageLink>
    [/code]
    In Glassfish, clicking on the export excel button raise a nullPointerException. This nullpointerException does not occur if the usesUpload property is set to false.
    Knowing that there is no problem in weblogic, how can I use af:inputFile and af:exportCollectionActionListener components in an application which must be deployed on Glassfish? Is there a solution? or is it an ADF Essential's limitation?

    used the same code for the export to excel on 11.1.2.3 of adf-essentials deployed to Oracle GlassFish Server 3.1.2.2 (build 5)
    <af:menu text="My Options" id="m2">
    <af:commandMenuItem text="Export to Excel"
    id="cmi1">
    <af:exportCollectionActionListener type="excelHTML"
    exportedId="t1"/>
    </af:commandMenuItem>
    Found no issues. Will give the inputfile a shot and let you know what I find.

  • Column with blank values in a excel export.

    Hello
    I Export a Report to Excel.
    That's work fine but i have a problem.
    when in a detail section one value of one column is blank, the export discard the cell.
    in result , the values after the blank do not corresponding any more with there header....
    i find this source on this bug on the web
    http://aspadvice.com/blogs/crystal/archive/2004/04/20/2199.aspx
    but the solution inside that post do not work ...
    any idea ?

    i work with VS2008 in c# with the FW 3.5
    my bug is not in design mode
    the code where i format the excel export option :
    ExcelFormatOptions b_Format = new ExcelFormatOptions();
    b_Format.ShowGridLines = true;
                            b_Format.ExcelTabHasColumnHeadings = true;
                            b_Format.ExcelUseConstantColumnWidth = true;              
                            b_Format.FirstPageNumber = p_intPageDepart;
                            b_Format.LastPageNumber = p_intPageArrivee;
                            if (p_intPageDepart != 0 && p_intPageArrivee != 0)
                                b_Format.UsePageRange = true;                                                                               
    l_ExportOptions.ExportFormatOptions = b_Format;
    the program is a .net DLL use by a VB6 program....
    The Dll is used for all Crytal works.
    i show the Rpt successfuly. but when i export the rpt to excel the bug is present in the exported file.

  • Excel export options now showing in report viewer

    HI,
            I'm workin on a project and I'm having some problems when exporting to excel using crytal reports server XI. When i try to export to excel, first the excel export options is not showing. Second, when I export to excel, the columns are correctly align. it's like exported all over the place. Please help

    Excel export options are not shown when exporting from the viewer in .NET.  You will need to set up the excel export options like you want them to be in the designer first under File|Export|Report Export Options.

  • Excel export error, in edit mode

    Hi,
    when I take an excel export of my web intelligence report in edit mode, there is  an error occurring (started after implementation of SSL) as it ws running fine earlier. And this problem is only IE specific. while if we take an excel export in view mode it works fine.
    ERROR:-
    Internet explorer can not download cdz servlet from (serverIP).
    Please suggest some solution.
    Thanks,
    Bhawna Gaur

    Hi,
    Try this option:
    1. Ensure there is no pop-up blocker option selected in IE to prevent file export.
    If the report contain hyperlinks, it is advisable to use the export feature in View mode.

  • Excel export gives csv file occasionally after multiple exports

    Hi experts!!
    I have the following problem.
    After several exports to excel from the web UI the file format turns to csv, even though the user runs MS office 2007.
    I found 2 notes describing  the issue but these are for other releases and cannot be implemented.
    (I am working on CRM 2007)
    Any ideas????
    Thank you in advance!!!

    Hi,
    for investigating this problem a short introduction to the Excel-Export function is helpful.
    On serverside JavaScript tailored for interaction with the current Table is generated. This code is invoked on the client machine and tries interfacing with Excel via ActiveX-Controls. In a third step the data is requested from the Application Server, this request is processed in the handler class CL_CHTMLB_CONFIG_TAB_EXCEL_EXP.
    I guess that the problem is caused by the JavaScript code executed on the client machen. There is a fallback, if no ActiveX-Control could be initialized a csv-File is requested from the server.
    I would try some JavaScript debugging, the function thtmlbExcelExport in library scripts.js would be a good entry point.
    Regards, Arne

Maybe you are looking for

  • The update installed 3 HOURS ago crashed my computer-I AM ON 3.6 AND CANNOT GO TO 8.01

    While I was on the internet, a box opened saying firefox needed to install some updates - I said OK - even though I rarely have luck with ANY updates, and this has proved to be no exception. After the update completed, everything froze or stopped res

  • Breakdown history ?

    Dear Guru Actually we are getting the down time report thro MCJB,MCJC . But let me one thing the system is calculating  the total hours instead of objects oper. hrs. Suppose we have some spare pumps it is running 5 hrs/day, then while breakdown analy

  • Installed 1.05.3... now I can't open "Stacks"

    Installed 1.05.3... now I can't open "Stacks"... when I try it open MY :Address Book"? I anyone else have this problem? Rick

  • Getting Objects in cubes for Query

    Hi gurus, I am using the GL Transaction Figures cube for a query and i needed to be able to filter the query with Account type object,but Account type object is not physically in the cube. I was wondering if it is possible to add account type infoobj

  • Best way for vhs to digital conversion on imac

    what is best method to convert old VHS tapes to digital format on iMAC?