Convert csv to Excel

Not sure if this is a Java or an MS Excel issue, but here it goes.
In a web application I constructs an CSV file and open in Excel, the point is that I want automatically to apply an Excel template when the file is open in the client.
How can I do this? In the response setHeader method I can set the template? Can I use VBMacros? How?
Thanks,
Carlos Dias

Text############ Script name############# AD search$AD = "OU=STF,OU=Staff,OU=Accounts,DC=Domain,DC=ac,DC=uk"$Fields = "sAMAccountName","physicalDeliveryOfficeName","Displayname","GivenName", "Surname","Mail","Manager","Title","Department","Description","telephoneNumber","Departmentnumber","PostOfficeBox","Company","Postalcode"$PersonCode=@{Name="Person_Code";Expression={$_.postofficebox[0]}}$FirstName=@{Name="First_Name";Expression={$_.GivenName}}$Surname="SurName"$Username = @{Name="UserName";Expression={$_.sAMAccountname}}$Email=@{Name="EMail";Expression={$_.Mail}}$Manager=@{Name='Manager';Expression={(Get-Aduser -Identity $_.Manager -properties DisplayName).Displayname}}$Title="Title"$Dept="Department"$Team=@{Name="Team";Expression={$_.Company}}$Ext = @{Name="Ext";Expression={$_.telephoneNumber}}...
This topic first appeared in the Spiceworks Community

Similar Messages

  • Powershell Convert CSV TO Excel showing Wrong Data

    Turns out Cduff was right it was a UFWE been a long day!! thanks guys especially for the other bits also

    Text############ Script name############# AD search$AD = "OU=STF,OU=Staff,OU=Accounts,DC=Domain,DC=ac,DC=uk"$Fields = "sAMAccountName","physicalDeliveryOfficeName","Displayname","GivenName", "Surname","Mail","Manager","Title","Department","Description","telephoneNumber","Departmentnumber","PostOfficeBox","Company","Postalcode"$PersonCode=@{Name="Person_Code";Expression={$_.postofficebox[0]}}$FirstName=@{Name="First_Name";Expression={$_.GivenName}}$Surname="SurName"$Username = @{Name="UserName";Expression={$_.sAMAccountname}}$Email=@{Name="EMail";Expression={$_.Mail}}$Manager=@{Name='Manager';Expression={(Get-Aduser -Identity $_.Manager -properties DisplayName).Displayname}}$Title="Title"$Dept="Department"$Team=@{Name="Team";Expression={$_.Company}}$Ext = @{Name="Ext";Expression={$_.telephoneNumber}}...
    This topic first appeared in the Spiceworks Community

  • Change CSV to Excel in the Receiver Comm Channel

    Is there a way to insert custom code to change the FCC comma delimited (.csv) into an Excel file in the receiver communication channel file adapter? If so, how do I do this in XI? Thanks.

    Kristine Tiongson wrote:
    > GUI Mapping -> Adapter Module 1 that converts XML to CSV -> Adapter Module 2 that converts CSV to Excel -> File Adapter (FTP)
    >
    > Questions:
    > 1. Is there a standard SAP XI adapter module that can do Module 1?
    > 2. Is there a standard SAP XI adapter module that can do Module 2? 
    >
    > Please give me more information about the modules because I haven't used them before. Thank you for all your help!
    >
    > Kristine
    You flow should ideally be
    GUI Mapping (XML) -> Adapter Module -> File adapter
    Note modules are extensions to file adapter.
    Ref:
    How to create modules -
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3bdc14e1-0901-0010-b5a9-a01e29d75a6a
    XI JAVA User Module Development using NWDI -
    /people/community.user/blog/2007/12/21/xi-java-user-module-development-using-nwdi

  • Converting contacts to CSV or Excel issue

    Does anyone know how to convert the Z10 contacts to CSV or Excel, the ONE app in apworld doesnt do it.
    I want to get rid of my z10 and go to a different manufacturer, Ive used Blackberry for years and now want to take my contacts with me, this Z10 is a nightmare. The facebook app doesnt work properly, I cant tag photos. The camera is horrible indoors and always so grainy. The browser is annoying as I cant simply close out of something I have to make a bunch of swipes. I really wish I hadnt of traded in my old BB it just worked and was a message powerhouse. Accessing messages on this is to complicated and everything is so jumbled with all the accounts BEHIND everything else. Anyways theres more but really i just want to take my contacts and leave BB behind.

    Address Book only exports vCards. You can use a third-party utility for your task:
    Address Book to CSV Exporter 1.3a
    Export Address Book - 1.5.1
    You will find them at VersionTracker or MacUpdate.

  • A tool can convert HTML to Excel

    Hi All , Are you using report 6i and want to out put report in excel format? If you are , a free software which can convert HTML to Excel is available .
    The software is designed to print very large report , Now a wonderful function is added to software , Thru which you can convert HTML to Excel easily . But the function is still basal , It will do better in the future .
    For more information, Please visit
    http://repbrowser.freewebpage.org/
    Thank you ,
    Regards

    Hi,
    the only other ways (as I know), if you really want to convert is
    a) write a parser to convert html into csv(xls)
    b) use a html2csv script on the os level
    like:
    http://sebsauvage.net/python/html2csv.py (or just google html2csv)
    c) use excel (data source web; local file: "file:///C:/test.htm"
    Kind Regards,
    Dirk

  • Macro to compare CSV and Excel file

    Team,
    Do we have any macro to compare CSV and Excel file.
    1) In Excel we should have two text boxes asking the user to select the files from the path where they have Stored
    2) First Text is for CSV file
    3) Second Text box is for Excel file
    4) We Should have Compare button that should run the Macro and Show the Differences.
    Thanks!
    Kiran

    Hi
    Based on my understanding, we need to convert the 2 files into the same format before comparing two different formats files. 
    Here are the options:
    1. Convert the CSV file and Excel file into 2-dim Arrays, then compare them, about how to load a CSV file into VBA array, you can search it from
    internet or ask a solution in VBA forum.
    VBA forum:
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=isvvba
    2. Also you can import CSV file to Excel sheet, and then compare them.
    Here is the sample code for your reference:
    ‘import csv file
    Sub InputCSV()
    Dim Wb As Workbook
    Dim Arr
    Set Wb = GetObject(Application.GetOpenFilename("csv file,*.csv", , "please choose a csv file", , False))
    Arr = Wb.ActiveSheet.Range("A1").CurrentRegion
    Wb.Close False
    Range("A1").Resize(UBound(Arr), UBound(Arr, 2)) = Arr
    End Sub
    ‘compare sheet
    Sub CompareTable()
    Dim tem, tem1 As String
    Dim text1, text2 As String
    Dim i As Integer, hang1 As Long, hang2 As Long, lie As Long, maxhang As Long, maxlie As Long
     Sheets("Sheet1").Select
    Columns("A:A").Select
    With Selection.Interior
    .Pattern = xlNone
    .TintAndShade = 0
    .PatternTintAndShade = 0
    End With
    Range("A1").Select
    Sheets("Sheet2").Select
    Rows("1:4").Select
    With Selection.Interior
    .Pattern = xlNone
    .TintAndShade = 0
    .PatternTintAndShade = 0
    End With
    Range("A1").Select
    MaxRow = 250
    MaxColumn = 40
    For hang1 = 2 To maxhang
    Dim a As Integer
    a = 0
    tem = Sheets(1).Cells(hang1, 1)
    For hang2 = 1 To maxhang
    tem1 = Sheets(2).Cells(hang2, 1)
    If tem1 = tem Then
    a = 1
    Sheets(2).Cells(hang2, 1).Interior.ColorIndex = 6
    For lie = 1 To maxlie
    text1 = Sheets(1).Cells(hang1, lie)
    text2 = Sheets(2).Cells(hang2, lie)
    If text1 <> text2 Then
            Sheets(2).Cells(hang2, lie).Interior.ColorIndex = 8
    End If
    Next
    End If
    Next
    If a = 0 Then
    Sheets(1).Cells(hang1, 1).Interior.ColorIndex = 5
    End If
    Next
    Hope this will help.
    Best Regards
    Lan
    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.

  • Converting .csv to .ics

    Is there an easy way to convert a .csv excel spreadsheet to .ics for easy importation to iCal?

    The page says the "Convert CSV to SQL" action is in the standard Automator library, but I didn't find it and it doesn't seem to be on my system.
    However, since this page you referenced is on the developers site, I'd suspect the actions it lists would be available if you installed the developer tools from you system disks that came with your computer (or the OS upgrade if you've upgraded since then). You'll likely also want to log in and download any updates to the developer tools from the ADC site.
    Just guessing since I don't have the developers tools installed, though it seems the most plausible excuse for it saying it's there when it isn't.
    However, I'm quite convinced it would be so, since one of the actions listed is "Build Xcode Project". Xcode is only available once you've installed the developer tools, so it makes since the Automator actions wouldn't be available unless you had it installed. Other actions in that list appear to be the same in that way. And I do remember seeing the "Build Xcode Project" action when I used to have the developer tools installed, so I'm quite confident this is the case for the other actions, too.

  • A tool for Oracle Report , It can convert HTML to Excel

    Hi All , I suggest you a freeware which can convert HTML to Excel . It can also split HTML file into each page and print partly you can download it from http://repbrowser.freewebpage.org/
    Regards

    Hi Albiz,
    try this:
    # Defaults to comma delimiter
    $Drives | Select PSChildName, PSDrive, PSprovider, PSIsContainer | Export-Csv "output.csv" -NoTypeInformation
    # Add custom Delimiter
    $Drives | Select PSChildName, PSDrive, PSprovider, PSIsContainer | Export-Csv "output.csv" -NoTypeInformation -Delimiter ";"
    Depending on your region you may want to change the delimiter, so your Excel automatically detects the format and presents it as a table. By Adding just the names of the properties you want in the Select Block you can cut down on total data and chose the
    order in which they are exported.
    Cheers,
    Fred
    There's no place like 127.0.0.1

  • Import row based complex csv or excel to DB using SSIS

    What is the best approach to deal with complex row based object hierarchy in CSV or Excel file in importing into DB?
    eg. We have the following CSV or Excel data (Pipe delimited and \r\n separate a new row):
    START|\r\n
    MEMBER|Mr|John|Lee|\r\n
    INSURANCE|2015-1-15|LIFE|\r\n
    END|\r\n
    START|\r\n
    MEMBER|Ms|Mary|Scott|\r\n
    INSURANCE|2015-1-10|LIFE|\r\n
    END|\r\n
    Here each START/END marks one record. The final goal is to transform it into an XML like this:
    <Members>
       <Member>
         <Title>Mr<\Title>
         <FN>John<\FN>
         <LN>Lee<\LN>
         <Insurance>
             <Join_Date>2015-1-10<\Join_Date>
             <Category>Life<\Category>
         <\Insurance>
       <\Member>
       <Member>
       <\Member>
    <\Members>
     Thanks for any input.

    Hi awlinq,
    There is no direct option for converting Excel to XML. There are two common methods to achieve this requirement:
    Create a schema defines the structure of the XML file based on the requirement as XML Source, then use this it to format the excel file to XML file in Microsoft Excel. For more details, please refer to the following blog:
    http://www.excel-easy.com/examples/xml.html
    Store data into a SQL table and then convert it into XML by using bulk copy utility (BCP) and FOR XML syntax with T-SQL query. The following links are for your references:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/bbc70f56-1421-4970-a3c8-c03e990e0054/convert-ms-excel-file-to-xml-using-ssis?forum=sqlintegrationservices
    http://www.codeproject.com/Tips/239156/Export-data-from-SQL-Server-as-XML
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • How can I convert an entire excel workbook to pdf?

    How can I convert an entire excel workbook to pdf?  I have the box in the preferences for converting excel files marked to convert the entire workbook.  I am using Abobe Acrobat 11 Statndard.  This previously worked fine when I was using Adboe Acrobat 10 Statndard.  Now in order to convert the entire workbook I have to open the excel file, Highlight all the workbook tabs and then save the file.  Any ideas?

    In Acrobat click Edit | Preferences | Convert to PDF: select Microsoft Office Excel, then click on Edit Settings.  Make sure that 'Convert entire Excel workbook' is checked.

  • Error message when I try to convert pdf to excel, after three attempts I could only convert one file.

    Error message when I try to convert pdf to excel, after three attempts I could only convert one file.

    Hi pdf to excel,
    What is the error that you're receiving when you try to convert? Is it the "Conversion Failure" message? Can you tell me more about the files you're unable to convert? What application created the PDFs? Are there many pages in these these files, or a complex mix of text and graphics?
    It'll also be helpful to know whether you're converting via the ExportPDF website (and what browser you're using), or through Adobe Reader.
    I look forward to hearing back from you, so we can get to the bottom of this!
    Best,
    Sara

  • How to read a .csv file(excel format) using Java.

    Hi Everybody,
    I need to read a .csv file(excel) and store all the columns and rows in 2d arrays. Then I can do the rest of the coding myself. I would like it if somebody could post their code to read .csv files over here. The .csv file can have different number of columns and different number of rows every time it is ran. The .csv file is in excel format, so I don't know if that affects the code or not. I would also appreciate it if the classes imported are posted too. I would also like to know if there is a way I can recognize how many rows and columns the .csv file has. I need this urgently so I would be very grateful to anybody who has the solution. Thanks.
    Sincerely Taufiq.

    I used this
    BufferedReader in = new BufferedReader (new FileReader ("test.csv"));
    // and                
    StringTokenizer parser = new StringTokenizer (str, ", ");
                    while (parser.hasMoreTokens () == true)
                    { //crap }works like a charm!

  • I need to convert PDF to Excel, however, columns and tabs make many merged cells and many blank columns. In addition to not separate the columns correctly, I see many not separate lines together in the same cell. I'm even thinking that Adobe Acrobat Pro D

    I need to convert PDF to Excel, however, columns and tabs make many merged cells and many blank columns. In addition to not separate the columns correctly, I see many not separate lines together in the same cell. I'm even thinking that Adobe Acrobat Pro DC has limitations. There is no way to define what points in columns to force break column? Nor create many columns that are useless? How does text to column in Excel, fixed size when we import text, and define where the breaks have columns?
    Google Tradutor para empresas:Google Toolkit de tradução para appsTradutor de sitesGlobal Market Finder
    Desativar tradução instantâneaSobre o Google TradutorCelularComunidadePrivacidade e TermosAjudaEnviar feedback

    PDF does not contain columns, rows, formats, styles, or other aspects of word processing or spreadsheet file formats.
    This is because PDF is decidedly not a word processing or spreadsheet file format or something "like" one of those.
    (see ISO 32000 for what PDF "is")
    What can optimize the export of PDF page content is to start with a well-formed tagged PDF (ISO 14289-1, PDF/UA-1 compliant).
    Without that export is what it is and one performs whatever content cleanup is needed using the native application for the export file (MS Word or Excel).
    Be well...

  • I've uploaded 4 pdf documents. Now how do I convert them to Excel format?

    I've uploaded 4 pdf docs. Now how do I convert them to Excel format so I can manipulate the data?
    linda93790

    Hi linda93790,
    If you uploaded your files to http://cloud.acrobat.com, simply click on one of the PDF files, then click 'ExportPDF' from along the top-bar in your browser.  This will automatically load that PDF into the ExportPDF system.  From there, you can configure any options you may need and convert the file to an .xlsx file.
    Please let us know if you have any questions!
    Thanks,
    David

  • "Can I select only one page from a PDF document to convert to an excel doc. ?"

    "Can I select only one page from a PDF document to convert to an excel doc. ?"

    No, so extract one page, then convert.

Maybe you are looking for

  • Capturing Video from a Camera that only has a USB port

    I have read a number of posts from people who have been frustrated because they can not 'capture' video from a video camera that only has a USB port on it.  Unfortunately, Premier wants to see a Firewire connection; otherwise, it won't connect to a c

  • Wrong link on deployment page (Flash Player)

    Hi all, I think there's a malformed link on the Flash Player distribution / deployment page (Weiterverteilung von Adobe Flash Player | Adobe): when I click on the FP 15 ActiveX link, it downloads the correct version 15.0.0.239 the link for the FP 15

  • How to drag songs onto iPod in iTunes7? Where's the list?

    Honestly, iTunes 7.. thank you Apple. You've added some visual elements, but where the **** did you put my iPod songs list? If I click on my iPod under "devices" (on left), I am greeted with a fancy iPod settings page.. Where did the iPod song librar

  • RoboHelp Output

    I'm not sure if my posts are getting to the right people, but I'll try again. Since .chm files cannot be accessed via a network, it's a major problem for us since we cannot "install" these help file(s) on our clients' machines.  What information we h

  • Is it worth buying an iBook these days?

    Hi! I will in all likelihood make a MAC laptop my own in a few weeks and am torn between the MacBook Pro and the iBook. The MacBook is obviously much more powerful but plagued by many problems that I would rather stay away from. In light of that, is