Downloading file - MS WORD FORMAT

hi.
I am trying to make a download on user request in MS-WORD format. I have already downloaded the file in CSV format successfully. What i want to know is how to arrange data in word file ... i.e there should be some tags, or keywords which will help me to make table in word file, bold specific font, alignment ... and such stuff.
can you tell me how can i?

You can try setting the content type.
Search for the appropriate type and use it.
- Subramanyam V

Similar Messages

  • When I convert a pdf file to word format, it show the error "Save As failed to process this document

    Hi,
    I have just upgrade the creative cloud CC version and upgrade the acrobat pro to XI version.
    when I convert a pdf file to word format, it show the error "Save As failed to process this document. No file was created."
    Actually, I have delete the image, use other pdf file and download a sample pdf file to test it. Same error is shown. I have try all the other format , like the excel, rtf, text, powerpoint, still same thing happen.
    Please show me what else I can do to fix this problem.
    Thx.
    Alfred Li

    alfredadli wrote:
    Please show me what else I can do to fix this problem.
    Fisrt step would be to ask in the proper forum.
    http://forums.adobe.com/community/acrobat

  • Download files in excel format

    Hi,
    Can anyone help me for downloading file in excel format? I have scheduled a job repeated everyday at a particular time, but it dumps a text file, NOT in excel format. My programme is an ALV.
    Code snippet would be verymuch helpfull.
    Thank,
    Thushara.

    Hello Thushara,
    here is a code i am giving you . It will take the data from a database , and download it into the excel format..
    You just can customize this program to download the data from an ALV ....
    Here is the sample code...
    REPORT  ZKUN_FILE4                              .
    TABLES: USR03,DD02L.
    DATA: ZX030L LIKE X030L.
    DATA BEGIN OF ZDFIES OCCURS 0.
         INCLUDE STRUCTURE DFIES.
    DATA END OF ZDFIES.
    DATA: BEGIN OF FLDITAB OCCURS 0,
          FLDNAME(11) TYPE C,
          END OF FLDITAB.
    DATA ITABUSR03 LIKE USR03 OCCURS 0 WITH HEADER LINE.
    DATA TNAME LIKE DD02L-TABNAME.
    SELECT * FROM USR03 INTO TABLE ITABUSR03.
    TNAME = 'USR03'.
    PERFORM GETFIELEDS.
    PERFORM SHOW123.
    FORM GETFIELEDS.
         CALL FUNCTION 'GET_FIELDTAB'
          EXPORTING
              LANGU              = SY-LANGU
              ONLY               = SPACE
              TABNAME            = TNAME
              WITHTEXT           = 'X'
          IMPORTING
              HEADER             = ZX030L
          TABLES
              FIELDTAB           = ZDFIES
          EXCEPTIONS
              INTERNAL_ERROR      = 01
              NO_TEXTS_FOUND      = 02
              TABLE_HAS_NO_FIELDS = 03
              TABLE_NOT_ACTIV     = 04.
         CASE SY-SUBRC.
            WHEN 0.
              LOOP AT ZDFIES.
                   FLDITAB-FLDNAME = ZDFIES-FIELDNAME.
                   APPEND FLDITAB.
              ENDLOOP.
            WHEN OTHERS.
                 MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  with  SY-SUBRC.
          ENDCASE.
    ENDFORM.
    FORM SHOW123.
    CALL FUNCTION 'EXCEL_OLE_STANDARD_DAT'
         EXPORTING
              FILE_NAME                 = 'C:\USR03.XLS'
              DATA_SHEET_NAME           = 'USER LIST'
        TABLES
             DATA_TAB                  =  ITABUSR03
             FIELDNAMES                =  FLDITAB
        EXCEPTIONS
             FILE_NOT_EXIST            = 1
             FILENAME_EXPECTED         = 2
             COMMUNICATION_ERROR       = 3
             OLE_OBJECT_METHOD_ERROR   = 4
             OLE_OBJECT_PROPERTY_ERROR = 5
             INVALID_FILENAME          = 6
             INVALID_PIVOT_FIELDS      = 7
             DOWNLOAD_PROBLEM          = 8
             OTHERS                    = 9.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.
    Hope this solves your problem.
    Regards,
    Kunal.
    Note : Reward points if found useful.

  • Problems exporting file to Word format

    When trying to convert PDF file to Word format I get an error saying "An error occurred while signing in? I am signed into my Adobe account. Why does this happen?

    Hi,
    Please login at https://exportpdf.acrobat.com/signin.html with your Adobe ID and password if you tried to signin in Adobe Reader X or Reader XI.  If you tried in a browser using the site please try to use other browsers.
    Thank you.
    Hisami

  • Download file in txt format

    Hi,
    Im using Forms 6i,
    The output data is not spliting into lines by line .in between the lines there is a small box.If i open the same file in word itis spliting line by line.
    PROCEDURE do_based_customers (p_org_id in number,p_user_id in number,p_inv_org in number,p_location in varchar2,
              p_route in varchar2, p_dodatefrom in date,p_dodateto in date, p_dofrom in number, p_doto in number) is
    l_path varchar2(100) := '/export/home/loadman';
    l_filename varchar2(20000) := 'hht_cust_'||sysdate||'.txt' ;
    l_buffer varchar2(80) := 'this is a test';
    l_outfile utl_file.file_type;
    cursor c1 is
    select * from table;
    begin
    l_outfile := utl_file.fopen(l_path, l_filename, 'w');
    for rec1 in c1
    loop
         l_filename := rec1.cust_code||'~'||rec1.cust_name||'~'||rec1.ROUTE_CODE||'~'||rec1.LOCATION_CODE;
              utl_file.put_line(l_outfile, l_filename);
    end loop;
    utl_file.fclose(l_outfile);
    exception
    when others then
    utl_file.fclose(l_outfile);
    dbms_output.put_line(sqlerrm);
    end do_based_customers;
    Thsi is the code to download the data.Itis saving in a TEXT FORMAT.
    Can any one help me in this to get reslove my problem.

    Maybe you need ot issue unix2dos -ascii oldfile newfile on the os.

  • Issue while downloading file in .CSV format

    Hi,
    I need to download the file in .CSV format.
    I hade used FM SAP_CONVERT_TO_CSV_FORMAT  and then used GUI_Download.
    Now when I am opening file which is downloaded, it gives all the data in a single column. If there are 5 fields in my table, the generated file gives the data of all the 5 fields in a single column.
    Could you please help?

    Hi try wi th the following code.
    TYPE-POOLS : truxs.
    DATA: t_file TYPE STANDARD TABLE OF type_file.
    data:t_conv_data TYPE truxs_t_text_data.
    CALL FUNCTION 'SAP_CONVERT_TO_TEX_FORMAT'
      EXPORTING
        i_field_seperator          = ', '
      TABLES
        i_tab_sap_data             = t_file
    CHANGING
       i_tab_converted_data       = t_conv_data
    EXCEPTIONS
       conversion_failed          = 1
       OTHERS                     = 2.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename                = 'C:\TESTCSV.CSV'
        filetype                = 'ASC'
        write_field_separator   = '  '
      TABLES
        data_tab                = t_file
       fieldnames              = names
      EXCEPTIONS
        file_write_error        = 1
        no_batch                = 2
        gui_refuse_filetransfer = 3
        invalid_type            = 4
        no_authority            = 5
        unknown_error           = 6
        header_not_allowed      = 7
        separator_not_allowed   = 8
        filesize_not_allowed    = 9
        header_too_long         = 10
        dp_error_create         = 11
        dp_error_send           = 12
        dp_error_write          = 13
        unknown_dp_error        = 14
        access_denied           = 15
        dp_out_of_memory        = 16
        disk_full               = 17
        dp_timeout              = 18
        file_not_found          = 19
        dataprovider_exception  = 20
        control_flush_error     = 21
        OTHERS                  = 22.

  • Download file in different formats(its urgent)

    Hi experts,
    I have a problem when downlaod a file in different formats.
    File should be downloaded 3 Formats.
    1. DWG
    2. DXF
    3. PDF
    this file is used for CAD Drawings.
    So i required a Functional Modules to generate a file in 3 different formats.

    Hi,
    You can download an internal table data (of report format) into PDF
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    * BIN_FILESIZE =
    filename = i_pfad
    filetype = 'BIN'
    * IMPORTING
    * FILELENGTH =
    TABLES
    data_tab = i_att_cont
    EXCEPTIONS
    file_write_error = 1
    no_batch = 2
    gui_refuse_filetransfer = 3
    invalid_type = 4
    OTHERS = 5.
    But DWG DXF are third party specific, i think in SAP we don't have functional modules to download in these
    aRs
    Points are always welcome

  • Download File In Csv Format

    Hi all,
        I want to create a file on the presentation server with csv format. i used gui_download function. The file is created but it is not csv format.
    it is urgent please can you help e out in this
    I used filetype as 'ASC' then CSV but in vain
    GV_ERR_FNAME = '
    SAM\ERRORFILE.CSV'
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        FILENAME                        = GV_ERR_FNAME
        FILETYPE                        = 'ASC'
        WRITE_FIELD_SEPARATOR           = 'X'
      TABLES
        DATA_TAB                        = GT_ERROR_TAX
    THANKX IN ADV

    Please check out this sample program.
    report zrich_0001.
    data: begin of itab occurs 0,
          fld1(10) type c,
          fld2(10) type c,
          fld3(10) type c,
          end of itab.
    data: begin of iout occurs 0,
          rec(1000) type c,
          end of iout.
    parameters: p_file type localfile default 'C:test.csv'.
    data: file type string.
    start-of-selection.
    * Build the ITAB
      itab-fld1 = 'A'.
      itab-fld2 = 'B'.
      itab-fld3 = 'C'.
      append itab.
      itab-fld1 = 'D'.
      itab-fld2 = 'E'.
      itab-fld3 = 'F'.
      append itab.
      itab-fld1 = 'G'.
      itab-fld2 = 'H'.
      itab-fld3 = 'I'.
      append itab.
    * Build the output internal table from ITAB
    * Concatenate all fields into IOUT-REC
      loop at itab.
        concatenate itab-fld1 itab-fld2 itab-fld3 into iout-rec
                    separated by ','.
        condense iout-rec no-gaps.
        append iout.
      endloop.
    * Now Download
      file = p_file.
      call function 'GUI_DOWNLOAD'
           exporting
                filename = file
           tables
                data_tab = iout
           exceptions
                others   = 22.
    Regards,
    Rich Heilman

  • Download file in particular format

    I want to download a file. The downloaded file should open in its corresponding application. A �.DOC� file should open in MS Word and �.XLS� file should open in MS Excel. What should be set in HttpRequest and/or HttpResponse objects to achieve this?
    thx in advance

        String      objectName = "whatever_you_like.doc";
        response.setContentType( "application/octet-stream" );
        response.setHeader( "Content-Disposition", "attachment; filename=\"" + objectName + "\";" );
        OutputStream        out = response.getOutputStream();
        //....

  • Downloading files in mp3 format

    I am a novice at this. I have an mp3 player, but not an ipod. Can I download files from the itunes store in mp3 format so that I can play them on my mp3 player?
    I downloaded one file from the itunes store. However, It won't work in the format that it is in. Please help. I really want to buy music but I need it in the format that i require.

    Sorry, songs downloaded from the iTunes store are available in Protected AAC format only, which means that they are only playable on your PC and iPods. Another alternative would be to burn the downloaded song to a CD and then re-rip it as an MP3. You'd lose some quality, but at least it would be playable on your player.

  • Please, I need help - How can I generate a text file with Word format?

    Hello friends at www.oracle.com ,
    is it possible for me to create a text file - that is, with TEXT_IO.fopen, and so on - that's already formatted as a Word document?
    We have a Forms program here, where it's needed to generate a text file with .RTF format, 8 centimeters margin, Times New Roman font, with size 7.
    Best regards,
    Franklin Goncalves Jr.

    Hello Shay,
    sincere thanks for your answer. And, to answer your last question, I'm using client-server model.
    Since I couldn't create this .RTF file by using built-ins like TEXT_IO, I tried to generate an .RTF file using Reports, passing the parameters DESTYPE, DESNAME and DESFORMAT, as shown below.
    add_parameter (pl_id, 'DESTYPE', text_parameter, 'FILE');
    add_parameter (pl_id, 'DESNAME', text_parameter, 'c:\franklin.rtf');
    add_parameter (pl_id, 'DESFORMAT', text_parameter, 'RTF');
    However, the just generated .RTF file is uncomprehensible. After opening the file at Microsoft Word, I can see the following message at the top of file:
    This file was created by Oracle Reports. Please view this document in Page Layout mode.
    ... and informations doesn't appear as desired.
    If I can't generate such text format by using TEXT_IO, and if generating an .RTF file through Reports shows me an incomprehensible result, how can I export the selected result to an .RTF file?
    When Reports is opened, choosing Generate to file -> RTF doesn't export anything.
    Thanks, and best regards,
    Franklin Goncalves Jr.

  • How to convert adobe/acrobat downloads in to word format

    How to convert adobe/acrobat files in to a word format

    Hi UNWLA,
    Adobe Reader XI uses Adobe Export PDF online to convert the file into Word.
    You can go to File > Save As > Word or Excel Online
    You can even use Acrobat XI to convert a pdf to word document.
    Go to File > Save as other... > Microsoft Word > Word document / Word 97-2003 document
    You can even make a selection of any table in the pdf document and right click and select 'export as ' > Word document.
    Or,
        Open a file in Acrobat XI.
        Choose Tools > Content Editing > Export File to Word document.
        Name the Word file and save it in a desired location.
    You might want to refer :
    > http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/products/acrobat/pdfs/adobe- acrobat-xi-convert-pdf-to-microsoft-office-word-tutorial_ue.pdf
    > http://tv.adobe.com/watch/i-didnt-know-acrobat-xi-could-do-that-tutorials/convert-export-p df-file-for-editing-in-microsoft-word-excel-powerpoint-converter/

  • I TRY TO CONVERT A PDF FILE TO WORD FORMAT FOR EDITING, WHICH I HAVE PAID, IT SAYS SUBSCRIBE NOW WHY

    WHEN I TRY TO CONVERT PDF TO WORD FORMAT OR TO EXCEL UP POPS A BLOODY SIGN
    ASKING TO SUSCRIBE NOW, I HAVE ALREADY DESCRIBED AND PAID MY MONEY WHAT THE HELL ARE ADOBE
    PLAYING AT HERE, TIME ADOBE GOT THIS SORTED SO THAT I AND OTHERS CAN START DOING WHAT WE
    ARE TRYING TO DO,
    STOP WAISTING OUR TIME ADOBE SUPPORT TEAM, GET THIS FIXED A.S.A.P. I AM NOT A BLOODY HAPPY BUNNY.
    DATA2410

    Hi Paul,
    Welcome!
    I'd like to help!
    What type of document was it prior to becoming a PDF? Is it a scanned document? Perhaps a secure document?
    Please provide more detail so we can troubleshoot together.
    Also - here is a 'getting started' guide that may assist.
    Looking forward to hearing back from you!
    Kind regards, Stacy

  • Converting a PDF file to Word format issue

    I am using Adobe Reader XI 11.0.09 with the paid side bar to convert the pdf file to an editable Word 2007 format. The problem is that the formatting after conversion is really bad and getting worse, example of the most recient: "I n  a cont ingent circumstance, an effect  results  from  clearly definable causes, t hough t he effect could be  different, given an entirel y  possible and  different interrelation of  causes. In   short, a  contingent  event   or thi ng is a nonnecessa ry event or thi ng tha t either might  not  exist or could  be other than it is."
    The conversion in the past was never this bad and I was hoping it was some setting but I have not found a way to tweak the settings in the converter. I have converted many pdf files and had no problems with the outcome of the conversion until recently.
    Any help in this matter would be greatly appreciated.
    Ken
    Windows 7 professional

    Moved to Adobe ExportPDF (read only)

  • Downloading file in xls format

    Hi All,
    I have a program that downloads data from a server to the local machine in xls format, via a JSP. The data comes from a ResultSet which I read and convert to csv format, but using ";" as the separator (it works..) and "\n" for each new line I require. I then set the response to download the file. Eveything works fine when I run the web application locally, the file downloads and opens in Excel, BUT when I do the same accessing a remote server running on Solaris, I have a problem opening the downloaded xls. Everything works fine until I try to open the file, Excel tells me that it can't read the first record.
    Here's my code:
    String path = servlet.getServletContext().getRealPath("/");
    PrintWriter printWriter = new PrintWriter(new OutputStreamWriter( new FileOutputStream( path+ "upload/excel.csv" )));
    String data;
    String fileName; // a filename set when I read the data
    // read data, put ";" and "\n" where required
    printWriter.println(data);
    printWriter.close();
    response.setContentType("application/binary");
    response.setHeader("Content-Disposition","attachment" + ";fileName=\"" + filName + ".xls" + "\"");
    RequestDispatcher rd = request.getRequestDispatcher("destination.jsp");
    rd.include(request, response);
    It works from Windows to Windows, but something's amiss when I try it from Solaris to Windows.
    Any help is greatly appreciated!!

    Most probably it has to do with line.separator system property which is different between windows and unix.
    I noticed you using a printWriter.
    The println method will use the appropriate line separator for the platform it is running on. (from the System properties)
    I would try saving the file to disk rather than opening, to see if you can discern the differences.
    Also - what does the included jsp do? does it just include the newly created file?
    Do you need that file? Could you just stream it straight out to the user?
    ie instead of sending it to a FileOutputStream, send it to the ServletOutputStream.
    Hope this helps some,
    evnafets

Maybe you are looking for