(BSO) export for lev0 member in column format

Hi there,
Today I have made a (BSO) export for lev0 member in column format.(Choosed this options with the export routine)
What maked me wonder was that not only lev0 member are in the export file but also lev1 member.
Can someone explain why this happened.
I'm on 9.2.1 on win32.
Regards
Andre

Hi Glenn,
Thank you for your response,
As you can see from the ess_lev0_exp_1.JPG outlined in the screen shot
that this >lev0-member has 18 children. So impl shared should not matter.
As as you can see from the ess_lev0_exp_2.JPG also these members are included in the export.
However, the dim "Konten" (Account) is set to dense.
The export options you can see in ess_lev0_exp_options.JPG.
I find that strange anyhow. Hmm...
http://fotoalbum.web.de/gast/andre.ml/Essbase
Regards
Andre

Similar Messages

  • EXport Data to Excel with Columns format

    Dear All,
    This may  be a basic question, however, I just need a tip to conclude my issue. 
    I have a Report that displays Financial Budget data (AFE).  I am able to download to the Excel sheet.  However, I need to conclude it with the column formatted at code itself and not given to the user.
    That is I want to set couple of column to Numeric, and Set Colum width defined at Code level itself.
    I am already using the Function module : MS_EXCEL_OLE_STANDARD_DAT
    Regards,
    Venkat

    data: go_excel       type ole2_object,
              Go_CELL        TYPE OLE2_OBJECT,
              go_workbooks   TYPE OLE2_OBJECT,
              go_workbook    TYPE OLE2_OBJECT,
              go_sheet       type OLE2_OBJECT,
              go_application type OLE2_OBJECT,
              go_activesheet type OLE2_OBJECT,
              go_text        type OLE2_OBJECT.
        gv_EXTRD = sy-datum.
        gv_EXTRT = sy-uzeit.
        concatenate pfile gv_EXTRD gv_EXTRT  'check.xls' into gv_file.
        clear: gt_export, gs_export.
    ****INITIATE EXCEL
    Create object Excel
        create object go_excel 'EXCEL.APPLICATION'.
        set property of go_excel 'Visible' = 0.
    Create workbook object
        call method of go_excel 'WORKBOOKS' = go_workbook .
      Add workbook
        call method of go_workbook 'Add' = go_workbook.
        lv_line = 0.
        loop at gt_collect ASSIGNING <collect>.
          lv_line = lv_line + 1.
          move-corresponding <collect> to gs_export.
          clear: gs_export-ZALDT.
          concatenate <collect>-ZALDT4(2) '-' <collect>-ZALDT6(2) '-' <collect>-ZALDT+0(4)
               into gs_export-ZALDT.
    Populate cells
          call method of go_excel 'Cells' = Go_CELL
            EXPORTING
              #1 = lv_line
              #2 = 1.
    **************SET UP PROPERTY WIDTH ****************************
          SET PROPERTY OF GO_CELL 'ColumnWidth' = '11'.
          SET PROPERTY OF GO_CELL 'Value' = gs_export-BANKL.
    ***********SET PROPERTY CELL NUMBER**************************************
          call method of go_excel 'Cells' = Go_CELL
            EXPORTING
              #1 = lv_line
              #2 = 4.
          SET PROPERTY OF go_cell 'NumberFormat' = '@'.     "PROPERTY NUMBER
          SET PROPERTY OF GO_CELL 'ColumnWidth' = '10'.
          SET PROPERTY OF GO_CELL 'Value' = gs_export-ZALDT.
    endloop.
    **CLOSE EXCEL**********
        CALL METHOD OF go_workbook 'SaveAs'
          EXPORTING #1 = gv_file
          #2 = 1.
        "file format
        CALL METHOD OF go_workbook 'close'.                                    "file format
        call method of go_excel 'QUIT'.
    ****OPEN CREATED EXCEL FILE ****************************
        call method of go_excel 'Workbooks' = go_workbooks.
        call method of go_workbooks 'Open'
          EXPORTING
            #1 = gv_file.
        set property of go_excel 'Visible' = 1.

  • Final Cut Exp - Working with HDV format & exporting for web in 16:9 format

    I'm working with SONY HVR-A1U prosumer camcorder which captures footage in 1440x1080resolution. My goal is to produce movies fro web in 16:9 size and upload them on "Brightcove" website
    After editing this footage in Final Cut Express I'm trying now to export my movie using "File-Export-Using Quick Time Conversion" option ... and I ran into the big issue with video size settings and how the video gets squezed when uploaded on Brightcove website.
    To get 16:9 size out of FCE, I need to:
    Set the "custom" size 640x360 and set "preserve aspect ration" - use letter box
    Then the resulting movie plays as 16:9 in Quicktime ... however after uploading it on Brightcove it chages the aspect again ... and becomes squashed.
    I would appreciate any advice how to overcome this "squashing" of export when working with HDV footage.
    Thanks
    Peter

    hI(Bonjour)!
    Try this link:
    http://www.kenstone.net/fcphomepage/qt_movies_fromfcp.html
    May be it's a problem with the web interface programation on your upload site?
    Michel Boissonneault

  • Export in column format

    Dear Gurus,
    What if i check the option export in column format while export the database?
    Thanks,
    Sekhar

    Hi,
    Adding to the John comments,
    If you export the database in the column format the size of the export file will be much more than the data in the cubes.
    I had an experience where I used to export the data in column format which results in a file which was
    twice the size of the file without the column format.
    If you have a lot of data in essbase cubes, I advice you to export data in non columnar format in order to save the disk space.
    Thanks,
    Sourabh

  • Column format export for chosen members only (Essbase 7.1.6)

    Hi,
    I need to pull column-format looking level 0 export from Essbase cube, that:
    * must only contain single month for single year, other months in export file are to be either #Mi (pre) or non-present (post);
    * must only be for chosen account branches (so account->month->year carving);
    Main database must stay untouched by this, so if clearing/restructure is needed it must be done on a copy.
    The quest is to find a simple way to set this up to run without any human interaction. My idea is to:
    1) copy of current database structure without data (batch: shutdown both db's, clear copy, copy essbase files, start dbs),
    2) populate it with newest level 0 export (esscmd script),
    3) carve out needed data using calcscripts+variables set up for this occasion (esscmd scripts on top of calc scripts),
    4) export in column format (esscmd script).
    Point one is kind of problematic since I need to copy essbase structure related files (otl and friends). Carving with CLEARBLOCK script takes about 2-3h per run (clearing unwanted months and years, needs to be split into three account sets later on).
    Is there an easier way to do this kind of carving? Column format compliance is a must here, so ,,column format alike'' report script might not be the way to go. Anybody?
    Cheers,
    S.
    Edited by: uEssbaser on 2009-01-28 02:53

    Jason, so far I haven't got the chance to write any usable report scripts and trying to modify one of examples given in man brought me to 10GB of tmp files blowing off servers C: drive. What I need is data at zero level for (chosen accounts -> single chosen frequency -> single chosen time member -> single chosen year member -> all other dimensions). Export must be identical to level 0 column extraction from database in which everything else beyond listed dataset was cleared (so full time dim header, but for 100 in Feb and 200 in Mar you'll get #Mi 100 while extracting Feb, and #Mi #Mi 200 when doing Mar extraction). Any ideas?
    Glenn, I'm still trying to get Jexport function to run over my chosen data, but I'm unsure about essbase column format compliance when extracting single month (header + added #Mi's?). Will retry and get back on this.
    Doug, yeah I could do that, but Outline modifications are done mainly by other people and quite often too, so this may be a single point of failure in the future.
    Anyway I'm half way to fully-automated process of getting outline structure (with OU OE) along with full column format level 0. I think I'm just going to parse this outside Essbase, as part of repacking and uploading to a remote site process. I need this to be ,,fire and forget'' process, so anything coupled too much with essbase (variables, UDAs, minor setting changes in structure) may become a hard to trace breaking point later.
    Still -- any help and suggestions appreciated.
    Cheers,
    S.

  • PDF export for  columns formatted as HTML

    Hello,
    I've created a report having some columns formatted as HTML .
    in the PDF file exported from BI Answers dashboard, HTML tags are shown instead of formatted value.
    (for example : "div style="width:100%;background-color:#FF3300">89.12%</div" instead of 89.92%)
    Any ideas how to fix this ?
    BI version : 10.1.3.3.3
    Thank you.

    Hi dragosv,
    I've also encountered similar problems to that. The OBIEE process does not first evaluate the code before it exports to other tools like PDF and Excel.
    Here are two options:
    1) Submit an SR to Oracle and have them declare it a bug
    2) Print to HTML first, then print the HTML to PDF. It adds a step but at least you can download your document the way you want.
    Best regards,
    -Joe

  • EAS data export in column format question

    I am trying to export data in column format and import back to replace 0 with #Missing. I want to see if it will reduce any blocks. When I export I am getting data header members from a different dimension other that Period. It is getting tricky to map these many data rows in rule file as oppose to 12 from Period.
    What determines this behavior. I know I have tried in the past (different app) and Period came through as data header record.
    Any help is appreciated.

    You can't directly control which dimension is selected (at least, not without changing your cube) in a native export.
    However, for what you are doing, you do not need a load rule - you could just find-and-replace in the file.
    You can also try converting zero to #Missing with a calc script (see Re: BSO Level 0 Block Analysis Advice) although it's going to be slow and you'd need to defrag with a dense restructure afterward.

  • Export Of Data In The .CSV Format With Column Headings On Top

    I'm trying to export data in the .csv format from a report (Crystal Reports XI Release 2).  When I export the data, the heading appears in the first few columns on the left hand side (i.e. columns "A" thru "G") for every row, rather as a column heading on top.  These header describe the data beneath it.  I tried various combinations of export options.  The file needs an extension .csv (or .xls) for the tool that uses the data.  Any suggestions how I can accomplish this ?

    Abhishek,
    I tried to apply your solution, but forgot that the Crystal Reports support desk updated my version of Crystal Reports XI to Release 2 for a previous problem.  My CDs are Crystal Reports XI Release 1.  Now I can't export at all until I figure out how to turn on the export option.  I do have access to older version (version unknown) that came with one of business system.  The options it has are "Character", "Tab", and "Delimeter" for "Separated Values (CSV)".  It does not have the option that you mentioned.  Is there a similar option with this older version ?  Lastly, How can I turn on the "Export" for "Crystal Reports XI Release 2" ?  Thanks ! ! !

  • What video format to export for Ipad Apps

    Hi,
    I am new in export flash to ipad. I tried to export my video as FLV for my ipad apps, it plays but its lagging or jerky.
    I had tried other formats like mp4, f4v, m4v or mov it just doesn't play
    Wonder if anyone knows what video format to export for my ipad apps?
    Bruce
    http://www.vmw.com.sg

    [email protected], on an iPad, here's what I did to get the FLV loading and taking up (most) of the screen. You can't use the FLV Component skins so you have to use the UI Components as markc888 suggested below your comment. My only gripe with this solution is that I can't get the fullScreen button to make the video go full screen.
    This is starts from a playVideo button on my stage.
    playVideo.addEventListener(MouseEvent.CLICK, playVideoClick);
    function playVideoClick(event:MouseEvent):void {
    var flvPlayback:FLVPlayback = new FLVPlayback();
    flvPlayback.x = 62;
    flvPlayback.y = 62;
    flvPlayback.width = 900;
    flvPlayback.height = 506;
    flvPlayback.fullScreenTakeOver = true;
    flvPlayback.autoPlay = true;
    flvPlayback.source = "yourMovie.flv";
    flvPlayback.bufferTime = .1;
    addChild(flvPlayback);
    flvPlayback.playPauseButton = playPauseBtn_mc;
    flvPlayback.stopButton = stopBtn_mc;
    flvPlayback.seekBar = seekBar_mc;
    var closeMovie:yourMovieClip = new yourMovieClip();
    addChild(closeMovie);
    closeMovie.x = 977;
    closeMovie.y = 77;
    closeMovie.addEventListener(MouseEvent.CLICK, closeMovieClick);
    function closeMovie(event:MouseEvent):void {
    flvPlayback.stop();
    removeChild(flvPlayback);
    removeChild(closePres);
    Hope it helps...

  • Column format for Describe

    Hi guys,
    I got a small question here.
    The question is regarding the column formating in SQL prompt.
    basically we can use DESCRIBE <table_name> to see the columns existed in a table.
    the column headers appear are "Name", "Null", and "Type"
    if you don't do any linesize and pagesize setting, the result of the describe is good enough, but the thing is when you set both linesize and pagesize to 1000, in linux you'll get a really screwed result of that DESCRIBE syntax.
    in windows of course this might not happen if you set the screen buffer size to 1000 as well.
    so, come to the real question:
    How can I format the column header for DESCRIBE syntax?
    Regards,
    Adhika

    the column NAME in the view v$tablespace is already of datratype varchar2(30). So when you set the sql*plus printing of this column to format a30, there would be no change.
    test the command with format a5 and you'll see some difference.Actually you won't...
    SQL> desc v$tablespace;
    Name                                      Null?    Type
    TS#                                                NUMBER
    NAME                                               VARCHAR2(30)
    INCLUDED_IN_DATABASE_BACKUP                        VARCHAR2(3)
    BIGFILE                                            VARCHAR2(3)
    FLASHBACK_ON                                       VARCHAR2(3)
    ENCRYPT_IN_BACKUP                                  VARCHAR2(3)
    SQL> col name format a10
    SQL> desc v$tablespace;
    Name                                      Null?    Type
    TS#                                                NUMBER
    NAME                                               VARCHAR2(30)
    INCLUDED_IN_DATABASE_BACKUP                        VARCHAR2(3)
    BIGFILE                                            VARCHAR2(3)
    FLASHBACK_ON                                       VARCHAR2(3)
    ENCRYPT_IN_BACKUP                                  VARCHAR2(3)But setting linesize does effect the output column size.
    SQL> set linesize 100
    SQL> desc v$tablespace;
    Name                                                  Null?    Type
    TS#                                                            NUMBER
    NAME                                                           VARCHAR2(30)
    INCLUDED_IN_DATABASE_BACKUP                                    VARCHAR2(3)
    BIGFILE                                                        VARCHAR2(3)
    FLASHBACK_ON                                                   VARCHAR2(3)
    ENCRYPT_IN_BACKUP                                              VARCHAR2(3)
    SQL>

  • DataExport in Column Format

    Hi All
    i am exporting BSO cube in column format . how can i change the column . for eg in sample basic when we do export in column format we get header as
    "Sales" "COGS" "Marketing" "Payroll" "Misc" "Opening Inventory" "Additions" "Ending Inventory"
    i want to changes these header to other dimension . can i do that ?
    thanks

    This is a theory, I haven't seen it in writing in any official docs: Essbase seems to pick the smallest dim that is either time or measures for the data column headers. Again, a theory, and like any theory, could be full of holes.
    Ultimately what I think you should strive for is to have the most dense dim in the columns.
    As far as massaging the resulting file into a format you need for another system, you have your choice of a variety of ways, string mangling scripts, ETL tools, etc. Whatever is easier for you based on your skills is probably ok.
    Robb Salzmann

  • [BPC 10] Member/property specific formatting

    Hi,
    I am trying to use specific member/property formatting in an input form in BPC 10. My account dimension has a property called format and I have used 3 different indicators, T,R and P.
    In my input form I have activated the EPMFormattingSheet and under the dimension member/property formatting I have activated column formatting on specific member/property.
    If I add one rule on my account dimension (such as FORMAT = P) the formatting is applied. However, I would like to have two different formats, once for FORMAT = R and one for FORMAT = P.
    However, irrespective of the order, the second format is ignored.
    Does anyone know how I can get two such formats working?
    Thanks,
    Arnold

    Apparently property formatting only works for one member per property ...

  • SSIS 2008 R2 Excel Destination Error, "An OLE DB error has occurred. Error code: 0x80040E21.", cannot export to the new Excel (.xlsx) format

    Hello.
    I've been attempting to do a very simple task that just isn't working.  For a Data Flow Task action in SSIS, I am trying to export data from a single SQL Server (2008 R2) database table to an Excel spreadsheet (.xlsx).  No matter what I do, it
    just keeps failing.  The columns in the table match the column header names (in the first row) in the tab I select.  Here is the output I get.
    SSIS package "Package.dtsx" starting.
    Information: 0x4004300A at Data Flow Task, SSIS.Pipeline: Validation phase is beginning.
    Warning: 0x80049304 at Data Flow Task, SSIS.Pipeline: Warning: Could not open global shared memory to communicate with performance DLL; data flow performance counters are not available.  To resolve, run this package as an administrator, or on the system's
    console.
    Information: 0x40043006 at Data Flow Task, SSIS.Pipeline: Prepare for Execute phase is beginning.
    Information: 0x40043007 at Data Flow Task, SSIS.Pipeline: Pre-Execute phase is beginning.
    Error: 0xC0202009 at Data Flow Task, Excel Destination [52]: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E21.
    Error: 0xC0202025 at Data Flow Task, Excel Destination [52]: Cannot create an OLE DB accessor. Verify that the column metadata is valid.
    Error: 0xC004701A at Data Flow Task, SSIS.Pipeline: component "Excel Destination" (52) failed the pre-execute phase and returned error code 0xC0202025.
    Information: 0x40043008 at Data Flow Task, SSIS.Pipeline: Post Execute phase is beginning.
    Information: 0x4004300B at Data Flow Task, SSIS.Pipeline: "component "Excel Destination" (52)" wrote 0 rows.
    Information: 0x40043009 at Data Flow Task, SSIS.Pipeline: Cleanup phase is beginning.
    Task failed: Data Flow Task
    SSIS package "Package.dtsx" finished: Success.
    I kick-off the action and sometimes is hangs for a few seconds (20+ seconds) and sometimes it doesn't, but either way it fails.  I tried this on a 32-bit machine, 64-bit machine, and still it fails.  I tried an OLE DB connection to Excel and
    that doesn't work either.  I made sure that the connection string for the Excel spreadsheet is Provider=Microsoft.ACE.OLEDB.12.0;Data Source=[filepath\excelfile].xlsx;Extended Properties="EXCEL 12.0 XML;HDR=YES"; and still it doesn't work.  
    Now, when I switch it over to export to an Excel 2003 spreadsheet (.xls) it works!  But I don't want it to go to the old Excel spreadsheet format, my requirement is to export the data to the new format.  Is there a bug in the Access 2010 Database
    Engine that won't allow me to export to the new Excel format?  Otherwise, what can I be doing wrong?  I set the Run64BitRuntime property to False and it still doesn't work.  
    My solution (so far) is to export it to Excel 2003 and then via the Script Task action use the Excel COM API (Microsoft.Office.Interop.Excel.dll) for 2010, open the file and save it in the new format (.xlsx) and that works great!  However, the client
    doesn't want to install Excel on the database server!  So what can I do when the Excel Destination or OLE DB Destination (to connect to Excel) actions don't work!?  Please help!!!
    Like I mentioned, if this is a bug, that would be great to know so I can stop wasting my time.  Thanks again.

    Alright, so you mean to say is that the driver is not installed.  Isn't version 12 the 2010 Access Database Engine Driver?  I did install that, and I also tried the 2007 Access DB Engine driver, and both don't work.  What driver am I missing? 
    The connection string is correctly formatted, yes?
    Also, when setting up the OLE DB Destination action and I have it point to the Excel spreadsheet, and I specify as the provider "Microsoft Office 12.0 Access Database Engine OLE DB Provider" and click on Test Connection, the connection is
    successful.  Wouldn't that mean the 12.0 version driver is installed?
    Thanks in advance.

  • How To Set Excel Column Format Latebinding

    private void WriteToExcel(ref System.Data.DataTable dtExcel)
    //Microsoft.Office.Interop.Excel.Application oXL = null;
    //Microsoft.Office.Interop.Excel._Workbook oWB;s
    //Microsoft.Office.Interop.Excel._Worksheet oSheet;
    //SaveFileDialog SFD = new SaveFileDialog();
    //SFD.Filter = "Excel 97-2003 Workbook(*.xls)|*.xls|Excel Workbook(*.xlsx)|*.xlsx|Excel Binary Workbook(*.xlsb)|*.xlsb|" +
    //"Excel Macro-Enabled Workbook(*.xlsm)|*.xlsm";
    //SFD.ShowDialog();
    /*Cell Format Text,
    Format Excel cells to store values as text
    Formating Excel cells to text format will solve the problem of losing leading zeo values when you export data from other data sources to excel.
    Excel.Range formatRange;
    formatRange = xlWorkSheet.get_Range("a1", "b1");
    formatRange.NumberFormat = "@";
    xlWorkSheet.Cells[1, 1] = "098";
    if (dgvData.RowCount == 0)
    MessageBox.Show("GridView is Empty.");
    return;
    tlsStatus.Text = "Export To Excel Strats.... ";
    tlsStatus.ForeColor = System.Drawing.Color.DeepPink;
    prbExcelGen.Value = 0;
    prbExcelGen.Minimum = 0;
    prbExcelGen.Maximum = dgvData.RowCount;
    prbExcelGen.Step = 1;
    prbExcelGen.Refresh();
    object objApp_Late;
    object objBook_Late;
    object objBooks_Late;
    object objSheets_Late;
    object objSheet_Late;
    object objRange_Late;
    object[] Parameters;
    string[] headers = new string[dgvData .ColumnCount];
    string[] columns = new string[dgvData.ColumnCount];
    int i = 0;
    int c = 0;
    for (c = 0; c <= dgvData.ColumnCount - 1; c++)
    headers[c] = dgvData.Rows[0].Cells[c].OwningColumn.Name.ToString();
    //Convert Cell Names To A,B,C...Z , 65+C=CHR(C)=>A WHEN C=0
    i = c + 65;
    columns[c] = Convert.ToString((char)i);
    try
    // Get the class type and instantiate Excel.
    Type objClassType;
    objClassType = Type.GetTypeFromProgID("Excel.Application");
    objApp_Late = Activator.CreateInstance(objClassType);
    //Get the workbooks collection.
    objBooks_Late = objApp_Late.GetType().InvokeMember("Workbooks",BindingFlags.GetProperty, null, objApp_Late, null);
    //Add a new workbook.
    objBook_Late = objBooks_Late.GetType().InvokeMember("Add",BindingFlags.InvokeMethod, null, objBooks_Late, null);
    //Get the worksheets collection.
    objSheets_Late = objBook_Late.GetType().InvokeMember("Worksheets",BindingFlags.GetProperty, null, objBook_Late, null);
    //Get the first worksheet.
    Parameters = new Object[1];
    Parameters[0] = 1;
    objSheet_Late = objSheets_Late.GetType().InvokeMember("Item",
    BindingFlags.GetProperty, null, objSheets_Late, Parameters);
    //if (true)
    // Create the headers in the first row of the sheet
    for (c = 0; c <= dgvData.ColumnCount - 1; c++)
    //Get a range object that contains cell.
    Parameters = new Object[2];
    Parameters[0] = columns[c] + "1";
    Parameters[1] = Missing.Value;
    objRange_Late = objSheet_Late.GetType().InvokeMember("Range",
    BindingFlags.GetProperty, null, objSheet_Late, Parameters);
    //Write Headers in cell.
    Parameters = new Object[1];
    Parameters[0] = headers[c];
    objRange_Late.GetType().InvokeMember("Value", BindingFlags.SetProperty,
    null, objRange_Late, Parameters);
    // Now add the data from the grid to the sheet starting in row 2
    for (i = 0; i < dgvData.RowCount - 1; i++)
    prbExcelGen.PerformStep();
    prbExcelGen.Refresh();
    for (c = 0; c <= dgvData.ColumnCount - 1; c++)
    //Get a range object that contains cell.
    Parameters = new Object[2];
    Parameters[0] = columns[c] + Convert.ToString(i + 2);
    Parameters[1] = Missing.Value;
    objRange_Late = objSheet_Late.GetType().InvokeMember("Range",
    BindingFlags.GetProperty, null, objSheet_Late, Parameters);
    //Write Headers in cell.
    Parameters = new Object[1];
    Parameters[0] = dgvData.Rows[i].Cells[headers[c]].Value.ToString();
    objRange_Late.GetType().InvokeMember("Value", BindingFlags.SetProperty,
    null, objRange_Late, Parameters);
    //if (i == 0)
    // BoldRow(i, c, (EXL._Worksheet)objSheet_Late);
    tlsStatus.Text = "Exporting Records...." + i;
    //Return control of Excel to the user.
    Parameters = new Object[1];
    Parameters[0] = true;
    tlsStatus.Text = "Exporting Completed.";
    objApp_Late.GetType().InvokeMember("Visible", BindingFlags.SetProperty,
    null, objApp_Late, Parameters);
    objApp_Late.GetType().InvokeMember("UserControl", BindingFlags.SetProperty,
    null, objApp_Late, Parameters);
    * oWB.SaveAs(fileName, Excel.XlFileFormat.xlOpenXMLWorkbook,
    missing, missing, missing, missing,
    Excel.XlSaveAsAccessMode.xlNoChange,
    missing, missing, missing, missing, missing);
    //oWB = (Microsoft.Office.Interop.Excel._Workbook)objBook_Late;
    //oWB.SaveAs("file", EXL.XlFileFormat.xlXMLSpreadsheet, Type.Missing, Type.Missing, Type.Missing, Type.Missing, EXL.XlSaveAsAccessMode.xlNoChange, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);
    //oWB.Save();
    catch (Exception theException)
    String errorMessage;
    errorMessage = "Error: ";
    errorMessage = String.Concat(errorMessage, theException.Message);
    errorMessage = String.Concat(errorMessage, " Line: ");
    errorMessage = String.Concat(errorMessage, theException.Source);
    MessageBox.Show(errorMessage);
    finally
    using the above code i am writing to excel sheet can some one help me to tell how can i set a column type as text 

    Thanks Forum,
    i got the answer here
    https://social.msdn.microsoft.com/Forums/windows/en-US/36340ada-e13b-41cb-a31d-fb76121aa0d2/c-exporting-text-file-to-excel-and-column-formatting-problem?forum=csharpgeneral

  • Crosstab column formatting

    I'm creating a crosstab report with a Current Year & a Last Year column.  I've added 2 calculated columns to show a variance $ and a variance % between current & last year.
    I have no problem coming up with the results.  My dilemma is to format the 2 added columns as currency and percentage.  When I try to change the percentage column's format to percent, all other columns in the crosstab also change to percent.
    Can someone out there tell me if there's a way to create 2 different formats for the 2 added columns?  I'd really appreciate it.  Thank you very much for your help.  I've been struggling with this issue for quite sometime.

    Hi Fione,
    Here's what you need to do:
    1) Assuming that the datatype of the field used in the 'column' of the Crosstab is 'Date', right-click the 'Variance $' header cell > Select Calculated Member > Edit ColumnValue Formula and use this code:
    Cdate(1890,01,01)
    2) To the same for the % column however, use this code:
    Cdate(1890,01,02)
    3) Right-click one of the summary cells in the 'Variance $' column > Format Field > Number tab > Customize > Currency Symbol tab > Check 'Enable Currency Symbol' > Click the formula button beside 'Position' and use this code:
    if GridRowColumnValue("Date_Field_used_in_column") = cdate(1890,01,01) then
    crLeadingCurrencyInsideNegative
    else if GridRowColumnValue("Date_Field_used_in_column") = cdate(1890,01,02) then
    crTrailingCurrencyOutsideNegative
    4) Click the formula button beside 'Currency Symbol' and use this code:
    if GridRowColumnValue("Date_Field_used_in_column") = cdate(1890,01,01) then
    "$"
    else if GridRowColumnValue("Date_Field_used_in_column") = cdate(1890,01,02) then
    else ""
    Note: In both the formulae above, replace "Date_field_used_in_column" with the database field you've used in the crosstab's column. The double quotes ARE NEEDED and make sure to remove any parenthesis that CR automatically addds when you add a database field in the formula editor.
    Let me know how this goes.
    -Abhilash

Maybe you are looking for

  • Regarding downlaod the output from ALV grid format

    Hi  i want to download the output ALV grid format into excel sheet . but condition is when ever user press the button (&ZDL) the should be downloaded. and also how to convert the output into CSV format.

  • Table & Field Name Problem

    Hi Mentors, I am creating a z report in that one perticular field i want new value, old value details. Field is in MMR - Foreigh trade import - CAS numner (pharma) this field we are using for material status.( ex. A,B,C) Table Name - MARA Fiels name

  • Chroma key effect in as3.0

    Hi , How to make chroma key effect in as3.0. I am building an application in that while recording a video user can remove the solid background and inserts some other image it is done by chroma keying.. Any ideas please Thanks

  • Preventing html text from downloading before image

    Hi. I am so NEW to this. I just created my first web site ever! It's mine. Problem: If anyone goes to see the site for the first time and clicks on the links--my html text downloads before my images, and this looks weird for a second. What can I do t

  • No values found in FS02 t code

    Hi experts, In fs02 t code i have give the company code and in the gl account i try to select the account number but it showing that no values found. pls advice. Regards arun