Naming the csv file exported to Excel

Hello all,
Is it possible to force an excel csv to have a different name when exporting report contents?
Currently out csv files are named: region_name[1].csv for example. How do we get rid of the "[1]"?
Thanks

You could define a form item and substitute the default name with a &item_name. so that the user can define the excel output name.... At least in standard report csv downloads..
Thank you,
Tony Miller
Webster, TX

Similar Messages

  • Chinese csv file export to excel using POI

    Dear all,
    I would like to read the csv chinese data to excel using POI in java but the character in excel is corrupted. How can I solve it? Please help me. Thank you!
    Regards,
    kzyo

    Use the correct encoding for the reading and writing streams.

  • How to export out the date into the csv file?

    Hi, I had been trying to export out the value of the date to csv file.
    This is the  script:
    $strADPath = 'LDAP://dc=test,dc=com'
    function ConvertLargeIntegerToDate([object]$LargeInteger){
    try
    $int64 = ConvertLargeIntegerToInt64 ($LargeInteger)
    if ($int64 -gt 0)
    $retDate = [datetime]::fromfiletime($int64)
    else
    $retDate = $null
    return $retDate
    catch
    return $null
    $objSearch = New-Object DirectoryServices.DirectorySearcher
    $objSearch.Filter = '(&(objectClass=user)(samaccountname=user1))'
    $objSearch.SearchRoot = $strADPath
    $objSearch.PageSize = 1000
    $objSearch.SearchScope = "subtree"
    $objResults = $objSearch.Findall()
    $dateAccountExpires = ConvertLargeIntegerToDate $objUser.accountexpires[0]
    Write-Host "date Account expires: " $dateAccountexpires
    $objResults| ForEach-Object{
    $_.GetDirectoryEntry()
    } |
    Select-Object -Property @{Name="sAMaccountName";Expression={$_.sAMAccountName}},
    @{Name="cn";Expression={$_.cn}},
    @{Name="name";Expression={$_.name}},
    @{Name="manager";Expression={$_.manager}},
    @{Name="givenName";Expression={$_.givenName}},
    @{Name="accountExpires";Expression={$_.dateAccountExpires}},
    @{Name="department";Expression={$_.department}} |
    Export-Csv -Path 'D:\test44.csv'
    This is what I get in PowerShell ISE:
    This is what I had get for the csv file for the expire date:

    hi FWN,
    the code had giving me error saying that it could not call method on a null-value expression.
    $temp = $_.Properties
    the code had gave error saying that it could not call method on a null-value expression.
    $properties | %{ $res.$_ = $temp.Item($_) }
    the code had gave error saying that it could not call method on a null-value expression.
    with lot of thanks
    noobcy

  • How to export a form that has Asian language in it to CSV file? Currently the CSV file shows [...] for Asian language characters

    How to export a form that has Asian language in it to CSV file? Currently the CSV file shows [...] for Asian language characters

    Hi George,
    Thanks! It does work in XML format. But since I would need to present the data in a spreadsheet, is there any other way I could go around it?
    Cheers,
    Su Ann

  • .csv files exported not converting to Tabular format jdev patch 6908968

    After jdeveloper patch 6908968 on 12.0.6, the data is copied into an Excel .csv file but the entire data is copied to the single cell/column.
    Developed an OAF page which has the standard Oracle Export Functionality for one of our requirements. When exporting from the OAF page, it is creating a .csv file(as expected) , but the data is not copied to individual cells. The whole data is going to one cell rather than into individual columns.
    According to Bug 4699555 you can use one of the following workarounds :-
    a. change "List separator" value from ";" to "," in the Regional Options,
    b. in Excel, after opening the .csv file, go to "Data" -> "Text to Columns ...",
    choose "comma" as the delimiter in the wizard.
    c. instead of Opening the file, Save it with .txt extension open MS Excel and open the saved file and specify delimited + comma as the delimiter during the text import process.
    The workarounds work, however this is not acceptable as there are 380,000 users. This worked as expected with 11.5.10 and not with upgraded R12. 12.0.6 with jdeveloper patch '6908968' for developing the OAF page with jdeveloper export button option.
    Is there a setup step missing or that changed for R12 and the column delimiter?

    You MAY want to think about a product that will read the output from your DVD player and convert to DV AVI
    Matt with Grass Valley Canopus in their tech support department stated that the model
    110 will suffice for most hobbyist. If a person has a lot of tapes that were played
    often the tape stretches and the magnetic coding diminishes. If your goal is to encode
    tapes in good shape buy the 110, if you will be encoding old tapes of poor quality buy
    the model 300
    Both the 110 and 300 are two way devices so you may output back to tape... if you don't
    need that, look at the model 55
    http://www.grassvalley.com/products/advc55 One Way Only to Computer
    http://www.grassvalley.com/products/advc110 for good tapes, or
    http://www.grassvalley.com/products/advc300 better with OLD tapes

  • How to include seconds and millisecon​d in the CSV file time stamp generated by the SpreadShee​t Object?

    I'm Using Lookout 6.02, in a XP Pro Windows Machine, Service Pack 3.
    I have an application that collects data at the rate of 20 samples per second. It works just fine, the CSV File contains all the samples without missing a single one.
    The problem is that the time stamp in the data file only shows hours and minutes. With 20 sample per second, there are 1200 samples per minute. It is hard to figure out in which second or sample number, occurred some events collected. These files are open with Excel and analyzed with Excel. There is no easy way to implement a search or a guidance for knowing the sample number or the exact time in Excel.  My problem is to add the seconds and if possible the milliseconds to the time stamp done by the spreadsheet object.
    Any suggestion?
    Other ways to do the same that includes the time stamp all the way down to milliseconds?

    Create another column with the Now() function, then set the calumn format to hh:mm:ss.s
    expression would be now(trigger) for the date and time or now(trigger)-today(trigger) for just time
    The trigger will cause the expression to stay updated, perhaps using the same trigger for logging the spreadsheet.
    Good luck
    Mike
    Message Edited by Mike@DTSI on 01-16-2009 04:12 PM
    Mike Crabtree - Lead Developer
    Destek of Nevada, Inc. / Digital Telemetry Systems, Inc.
    (866) 964-6948 / (760) 247-9512

  • CSV output (export to excel) don't use right code table

    CSV output (export to excel) don't use right code table. We use code table
    8859-2 (reports and forms are OK). Why export to excel don't use this code table.
    Thanks for answers

    You could also take the example from my blob that Denes mentioned and instrument it to output in either CSV or HTML. This way, you could have a single procedure that worked for both formats.
    All you would need to do is handle each field differently - pad a TD and /TD (with proper brackets, of course) if its HTML or just append a comma if it's CSV.
    Thanks,
    – Scott –
    http://spendolini.blogspot.com/
    http://sumnertech.com/

  • How to write the JTables Content into the CSV File.

    Hi Friends
    I managed to write the Database records into the CSV Files. Now i would like to add the JTables contend into the CSV Files.
    I just add the Code which Used to write the Database records into the CSV Files.
    void exportApi()throws Exception
              try
                   PrintWriter writing= new PrintWriter(new FileWriter("Report.csv"));
                   System.out.println("Connected");
                   stexport=conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
                   rsexport=stexport.executeQuery("Select * from IssuedBook ");
                   ResultSetMetaData md = rsexport.getMetaData();
                   int columns = md.getColumnCount();
                   String fieldNames[]={"No","Name","Author","Date","Id","Issued","Return"};
                   //write fields names
                   String rec = "";
                   for (int i=0; i < fieldNames.length; i++)
                        rec +='\"'+fieldNames[i]+'\"';
                        rec+=",";
                   if (rec.endsWith(",")) rec=rec.substring(0, (rec.length()-1));
                   writing.println(rec);
                   //write values from result set to file
                    rsexport.beforeFirst();
                   while(rsexport.next())
                        rec = "";
                         for (int i=1; i < (columns+1); i++)
                             try
                                    rec +="\""+rsexport.getString(i)+"\",";
                                    rec +="\""+rsexport.getInt(i)+"\",";
                             catch(SQLException sqle)
                                  // I would add this System.out.println("Exception in retrieval in for loop:\n"+sqle);
                         if (rec.endsWith(",")) rec=rec.substring(0,(rec.length()-1));
                        writing.println(rec);
                   writing.close();
         }With this Same code how to Write the JTable content into the CSV Files.
    Please tell me how to implement this.
    Thank you for your Service
    Jofin

    Hi Friends
    I just modified my code and tried according to your suggestion. But here it does not print the records inside CSV File. But when i use ResultSet it prints the Records inside the CSV. Now i want to Display only the JTable content.
    I am posting my code here. Please run this code and find the Report.csv file in your current Directory. and please help me to come out of this Problem.
    import javax.swing.*;
    import java.util.*;
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.table.*;
    public class Exporting extends JDialog implements ActionListener
         private JRadioButton rby,rbn,rbr,rbnore,rbnorest;
         private ButtonGroup bg;
         private JPanel exportpanel;
         private JButton btnExpots;
         FileReader reading=null;
         FileWriter writing=null;
         JTable table;
         JScrollPane scroll;
         public Exporting()throws Exception
              setSize(550,450);
              setTitle("Export Results");
              this.setLocation(100,100);
              String Heading[]={"BOOK ID","NAME","AUTHOR","PRICE"};
              String records[][]={{"B0201","JAVA PROGRAMING","JAMES","1234.00"},
                               {"B0202","SERVLET PROGRAMING","GOSLIN","1425.00"},
                               {"B0203","PHP DEVELOPMENT","SUNITHA","123"},
                               {"B0204","PRIAM","SELVI","1354"},
                               {"B0205","JAVA PROGRAMING","JAMES","1234.00"},
                               {"B0206","SERVLET PROGRAMING","GOSLIN","1425.00"},
                               {"B0207","PHP DEVELOPMENT","SUNITHA","123"},
                               {"B0208","PRIAM","SELVI","1354"}};
              btnExpots= new JButton("Export");
              btnExpots.addActionListener(this);
              btnExpots.setBounds(140,200,60,25);
              table = new JTable();
              scroll=new JScrollPane(table);
              ((DefaultTableModel)table.getModel()).setDataVector(records,Heading);
              System.out.println(table.getModel());
              exportpanel= new JPanel();
              exportpanel.add(btnExpots,BorderLayout.SOUTH);
              exportpanel.add(scroll);
              getContentPane().add(exportpanel);
              setVisible(true);
          public void actionPerformed(ActionEvent ae)
              Object obj=ae.getSource();
              try {
              PrintWriter writing= new PrintWriter(new FileWriter("Report.csv"));
              if(obj==btnExpots)
                   for(int row=0;row<table.getRowCount();++row)
                             for(int col=0;col<table.getColumnCount();++col)
                                  Object ob=table.getValueAt(row,col);
                                  //exportApi(ob);
                                  System.out.println(ob);
                                  System.out.println("Connected");
                                  String fieldNames[]={"BOOK ID","NAME","AUTHOR","PRICE"};
                                  String rec = "";
                                  for (int i=0; i <fieldNames.length; i++)
                                       rec +='\"'+fieldNames[i]+'\"';
                                       rec+=",";
                                  if (rec.endsWith(",")) rec=rec.substring(0, (rec.length()-1));
                                  writing.println(rec);
                                  //write values from result set to file
                                   rec +="\""+ob+"\",";     
                                   if (rec.endsWith(",")) rec=rec.substring(0,(rec.length()-1));
                                   writing.println(rec);
                                   writing.close();
         catch(Exception ex)
              ex.printStackTrace();
         public static void main(String arg[]) throws Exception
              Exporting ex= new Exporting();
    }Could anyone Please modify my code and help me out.
    Thank you for your service
    Cheers
    Jofin

  • How to align the CSV file on upload?

    Hi All,
    I have to upload a CSV file as an attachment in a mail and the data's in the internal table which has to be uploaded in the CSV file are seperated using commas which on uploading appear in the CSV file in the same column but i need the data's to be seperated in different columns and different lines...
    Pls help it is very urgent..
    Thanks in Advance...

    Hi
    For my understanding you are talking about download.
    For that you have to concatenate each fields of final internal table (gt_itab for example) using comma as below.
    TYPES: BEGIN OF ty_lines,
             line(1023) TYPE c,
           END OF ty_lines.
    DATA: l_filename TYPE string VALUE 'C:\temp\abcd.csv',
          gt_lines  TYPE TABLE OF ty_lines,
          gw_lines  TYPE ty_lines.
      LOOP AT gt_itab INTO gw_itab.
        CONCATENATE gw_itab-f1
                    gw_itab-f2 .....
               INTO gw_lines-line
               SEPARATED BY ','.
         APPEND gw_lines TO gt_lines.
      ENDLOOP.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = l_filename
          filetype                = 'ASC'
          confirm_overwrite       = 'X'
          no_auth_check           = 'X'
        TABLES
          data_tab                = gt_lines.

  • Dulicacy of field values in the CSV file

    Hi Experts
    We are configuring a file to idoc scenario in which the file is a .csv txt file.
    The format of the csv file is
    NMI,BillNo,BillAmount,ContractAcc
    There are instances where there is a duplicacy in the NMI & hence that needs to be filtered before sending it to PI.Any idea about how to filter this either at the source end or PI end.
    Please throw some light in this.
    Regards
    Sabyasachi

    Hi Sabyasachi,
    Manually you will need to open the file put it into excel remove duplicate entries , again move that back again into text file. This method is a very dumb way of doing things.
    A smarter way would be to write a module. The link given below is not a tailor made solution to your query but sufficient to get you started.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/99593f86-0601-0010-059d-d2dd39dceaa0
    Regards
    joel

  • Can you please provide the .csv files used in Power BI Getting Started Guide

    Hi Team,
    I am exploring the Power BI app developed by Microsoft on My Windows 8 machine
    For that I found the Getting started guide from the below link
    http://office.microsoft.com/en-in/excel-help/power-bi-getting-started-guide-HA104103589.aspx?CTT=5&origin=HA102835634
    Power Query and Power Pivot are totally new to me and I am trying to learn more on it
    While trying to execute the steps given in the starting guide I found that it requires 2 csv files (NYSE Daily 2009 and same for NASDAQ) for mashing up data agaist S&P 500 
    I tried to get from web, but unfortunately not getting the required data
    Can you please provide the test data (the 2 csv files NYSE Daily 2009 and NASDAQ daily 2009) using which I will resume my work in Power BI?
    Thanks in advance
    Rajendra
    InfoCepts( Specialists in Onshore and Offshore BI)
    Rajendra Kitukale InfoCepts(Specialists in Onsite and Offshore BI)

    Hi, all -- here are links to the CSV files.
    NYSE sample data:
    http://go.microsoft.com/fwlink/?LinkID=389692
    NASDAQ sample data:
    http://go.microsoft.com/fwlink/?LinkId=389693
    Hope that helps!
    Maggie Sparkman

  • How can I have a csv file read from excel to labview.

    Hi,
    I would like to read multiple csv files from excel to labview, creating a duplicate of the tables in excel, which would allow me to then draw some graphs for data analysis and comparison between the two.
    Are there any examples that could be useful to what I am trying to do?
    Thanks

    Patel33 wrote:
    From one of the csv files, I only require 3 of the columns. Is there a way to only read that part of the csv file?
    No. The characters in a file are just one long string and delimiters and linefeeds are special characters that defined where fields and lines start and end. As such, columns are interlaced into the file and consists of many small sections, where the position depends on the number of characters in each field, which is typically variable. You really need to read the entire file, then only look at the interesting columns later.
    LabVIEW Champion . Do more with less code and in less time .

  • How to asssign output value in the CSV file for the specific header

    Hi,
    I am using OpenScript 9.10. The problem I am facing is that, to Write the Output value captured from the application, When i am trying to use the methods "Appen String to File" i am unable to write / assign the out put value below the specific header. Can any one please look into this and post the methods related to Write the output vaues in to the CSV files under specific headers.
    Thanks in Advance.
    Thanks.,
    Siva

    Hi Alex,
    Thanks for your reply.I need to write the output value under specified parameter name.
    for example after creating the sales order,the order number have to write in the CSV file under
    OrderNumber column.I tried with appendStringtofille() method,by using this able to write the value under
    first column.But i need to write output value under specified columnname(means Header name in the cSV
    file).can u please give a reply for the above problem.
    Note: In that Csv file i am taking the input vales and also need to write the output values under
    specified column(header)
    Thanks,
    Siva Thota.

  • How to write the char value as is in the CSV file

    Hi Everyone,
    I am creating csv files which contains inventory details for all the products. I am able to create the csv file with utl file concepts. My problem starts after the csv file is being created.
    some of the product numbers(Though I am saying Product number, it is varchar2 data type in the table) is like this 3E-12, 3E-54 and so on. I have totally 23 product numbers like this.
    When the user opens the csv file it is changing to numbers like this 3.00E-12, 3.00E-54. I want to keep the product number as it is like char value. I tried many quoting and concat methods.
    But none of them works for me.
    I am using oracle 9i.
    Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.7.0 - Production
    Please help me to solve this problem.
    Thanks in advance,
    Vimal...

    Hi Friends,
    Thanks for the immediate response. Here is my code.
    CREATE OR REPLACE PROCEDURE DATA_TO_CSV_FILE
    IS
    l_file_ptr UTL_FILE.file_type;
    l_hdr_text VARCHAR2 (4000);
    l_dynamic_sql_str VARCHAR2 (4000);
    TYPE l_dynamic_sql IS REF CURSOR;
    l_dynamic_cursor l_dynamic_sql;
    l_org_id_select VARCHAR2 (200);
    l_master_org_id NUMBER;
    l_category VARCHAR2 (40);
    l_itemno VARCHAR2 (40);
    l_description VARCHAR2 (240);
    l_brand VARCHAR2 (240);
    l_organization_id NUMBER;
    l_oh NUMBER;
    l_status apps.mtl_system_items.inventory_item_status_code%TYPE;
    BEGIN
    l_file_ptr := UTL_FILE.fopen ('CSV_DIR', 'inventory.csv', 'w');
    l_dynamic_sql_str :=
    'SELECT mc.segment2 CATEGORY, itm.segment1 itemno '
    || 'itm.description description, LOG.brand brand,'
    || 'NVL (m.oh, 0) oh'
    || '(select msi.inventory_item_status_code from apps.mtl_system_items msi'
    || ' where msi.inventory_item_id = itm.inventory_item_id'
    || ' and msi.organization_id = '
    || l_master_org_id
    || ' ) status '
    || ' FROM xxx_custom_table m,'
    || ' apps.mtl_item_categories ic,'
    || ' apps.mtl_categories_b mc,'
    || ' apps.mtl_system_items itm,'
    || ' xxx_custom_table1 LOG,'
    || ' xxx_custom_table2 cap'
    || ' WHERE m.item_id(+) = itm.inventory_item_id'
    || ' AND m.org_id(+) = itm.organization_id'
    || ' AND itm.segment1 = cap.itemno(+)'
    || ' AND itm.inventory_item_id = ic.inventory_item_id'
    || ' AND itm.organization_id = ic.organization_id'
    || ' AND ic.category_id = mc.category_id'
    || ' AND mc.segment2 IS NOT NULL'
    || ' AND itm.inventory_item_id = LOG.inventory_item_id'
    || l_org_id_select
    || ' GROUP BY mc.segment2,'
    || ' itm.segment1,itm.inventory_item_id,itm.description,'
    || ' LOG.brand,LOG';
    OPEN l_dynamic_cursor FOR l_dynamic_sql_str;
    LOOP
    FETCH l_dynamic_cursor
    INTO
    l_category, l_itemno, l_description, l_brand, l_status,l_oh;
    EXIT WHEN l_dynamic_cursor%NOTFOUND;
    UTL_FILE.put_line (
    l_file_ptr,
    l_CATEGORY
    || ','
    || l_itemno
    || ','
    || l_description
    || ','
    || l_status
    || ','
    || l_brand
    || ','
    || l_oh
    END LOOP;
    UTL_FILE.fclose (l_file_ptr);
    END;
    Hey damorgan,
    Can you please give me little more detail about your workaround method. I think I did the ODBC Connection Once for MS ACCESS database. I
    hope you are taking about the same method.
    Thanks
    Vimal....

  • To read the csv file using collections

    i am able to retrieve each row of the csv file which is in table format But in some columns the data entered is in two or three lines while retriving the row, the program is taking The second line of that column as the second row of that file
    how could i display the entire row of that file in a single line.
    i have done this program could u please help out in this program
    package fileReading;
         import java.io.BufferedReader;
         import java.io.FileReader;
         import java.util.*;
         import java.util.Vector;
    public class FileReading
         public static void main(String args[]){
         try{
         String line;
         int startInd,endInd;
         char FieldSeparator = ',';
    //       List recordset;
         Map recordset;
         Vector record;
         int recordNumber=0;
    //       recordset = new ArrayList();
         recordset = new HashMap();
         BufferedReader in = new BufferedReader(new FileReader("c:\\GEMSBBtest.csv"));
         line = in.readLine();
         line = in.readLine();
         do{
         int len = line.length();
         record = new Vector();
    //       System.out.println(line);
         for(startInd = -1, endInd = 0; endInd >=0; ){
         endInd = line.indexOf(FieldSeparator,startInd+1 );
         if (endInd < 1){
         record.add(line.substring(startInd+1,len));
    //       System.out.println(line.substring(startInd+1,len));
         else{
         record.add(line.substring(startInd+1,endInd));
    //       System.out.println(line.substring(startInd+1,endInd));
         startInd = endInd;
         recordNumber++;
    //       recordset.add(record);
         recordset.put(Integer.toString(recordNumber),record);
         line = in.readLine();
    if (recordNumber<3)
         System.out.println(line);
         }while(line!=null);
         System.out.println(recordset.size());
         //System.out.println(recordNumber);
         }catch(Exception e){
         System.out.println(e.toString());
         }

    No there is no such special characters.Actually the file which there in xls format is being converted to csv format
    Now in each cell there r multiple lines and i need to print each row in a single line including that multiple line column or cell

Maybe you are looking for

  • IPad messages no longer works after ios7 upgrade

    After upgrading to ios7 on my iPad messages no longer works. After I enter To: I am unable to get to the message field to enter the message. Reboot does not solve the issue,

  • How do you turn pages in iBooks with VoiceOver on?

    Need text to speech in iBooks and am having trouble navigating pages any suggestions?

  • ITunes 10.2 not syncing some podcasts

    iTunes 10.2 tells me that episodes of Derren Brown's Science Of... were not copied to my iPhone because they "cannot be played on this iPhone", However the last build had copied these over happily and they played just fine... A further weirdness was

  • Report for Special pricing condition than Std discount???

    Hi Everyone, Is there a standard report in SD where I can track all the sales orders where in a special pricing condition was given to the customer instead of the standard discount structure? if not, how do I create one? Thanks a lot! Swapna

  • When updating my ipod...HELP!!!!!

    I have many songs on my iTunes but they're taking up space on my computer, if i delete them, will those songs also delete from my ipod when i update it? Am i stuck with all those songs on my computer?