Automatically save excel file

hi ,
if i set
response.setContentType("application/vnd.ms-excel");
     response.setHeader("Content-disposition","attachment;filename=\"excelform.xls\";");
I get the popup menu saying open or save...
how can i make the excel file save to a directory i specify without poup open/save(Just make it save to a dir say c:\)

Replace
response.setHeader("Content-disposition","attachment;filename=\"excelform.xls\";");
by
response.setHeader("Content-disposition","fffff;filename=\"excelform.xls\";");
and remember to put the correct path where you want to save the file.

Similar Messages

  • Open and Save Excel Files

    Hi All,
    I need code of How to open and save excel file in local system in Oracle forms.
    With Regards,
    Chandra Shekhar

    Hello Chandra,
    Webutil can be used to achieve this functionality.
    STEPS TO FOLLOW
    ================
    1. Install and configure Webutil following instructions in the webutil manual
    and the readme file.
    2. Create a form with a block Eg. DEPT
    3. Create a button, and in that button put the following code -
    DECLARE
    application Client_OLE2.Obj_Type;
    workbooks Client_OLE2.Obj_Type;
    workbook Client_OLE2.Obj_Type;
    worksheets Client_OLE2.Obj_Type;
    worksheet Client_OLE2.Obj_Type;
    args Client_OLE2.List_Type;
    cell ole2.Obj_Type;
    j INTEGER;
    k INTEGER;
    BEGIN
    application := Client_OLE2.create_obj('Excel.Application');
    workbooks := Client_OLE2.Get_Obj_Property(application, 'Workbooks');
    workbook := Client_OLE2.Invoke_Obj(workbooks, 'Add');
    worksheets := Client_OLE2.Get_Obj_Property(workbook, 'Worksheets');
    worksheet := Client_OLE2.Invoke_Obj(worksheets, 'Add');
    go_block('dept');
    first_record;
    j:=1;
    k:=1;
    while :system.last_record = 'FALSE'
    loop
    for k in 1..3 /* DEPT has 3 columns */
    loop
    If not name_in(:system.cursor_item) is NULL Then
    args:=Client_OLE2.create_arglist;
    Client_OLE2.add_arg(args, j);
    Client_OLE2.add_arg(args, k);
    cell:=Client_OLE2.get_obj_property(worksheet, 'Cells', args);
    Client_OLE2.destroy_arglist(args);
    Client_OLE2.set_property(cell, 'Value', name_in(:system.cursor_item));
    Client_OLE2.release_obj(cell);
    End If;
    next_item;
    end loop;
    j:=j+1;
    next_record;
    end loop;
    /* For the last record */
    for k in 1..3
    loop
    If not name_in(:system.cursor_item) is NULL Then
    args:=Client_OLE2.create_arglist;
    Client_OLE2.add_arg(args, j);
    Client_OLE2.add_arg(args, k);
    cell:=Client_OLE2.get_obj_property(worksheet, 'Cells', args);
    Client_OLE2.destroy_arglist(args);
    Client_OLE2.set_property(cell, 'Value', name_in(:system.cursor_item));
    Client_OLE2.release_obj(cell);
    End If;
    next_item;
    end loop;
    Client_OLE2.Release_Obj(worksheet);
    Client_OLE2.Release_Obj(worksheets);
    /* Save the Excel file created */
    args := Client_OLE2.Create_Arglist;
    Client_OLE2.Add_Arg(args,'d:\test.xls');
    Client_OLE2.Invoke(workbook, 'SaveAs', args);
    Client_OLE2.Destroy_Arglist(args);
    /* release workbook */
    Client_OLE2.Release_Obj(workbook);
    Client_OLE2.Release_Obj(workbooks);
    /* Release application */
    Client_OLE2.Invoke(application, 'Quit');
    Client_OLE2.Release_Obj(application);
    END;
    4. Save the form and compile it.
    5. Run the form.
    6. Execute the query in the block.
    7. Click on the button.
    8. An excel file will be created in the d:\ directory by the name test.xls.
    Kind regards,
    Alex
    If someone's answer is helpful or correct please mark it accordingly.

  • HT6114 Since I have updated to Maverick, every time I download anything, it automatically saves the file on my desktop.  I do not want it saved on the desktop

    Since I have updated to Maverick, every time I download anything, it automatically saves the file on my desktop.  I do not want it saved on the desktop.

    Download how?  If you are downloading via Safari, see Safari Preferences, General.

  • Can't save excel files

    Getting an error when trying to save files in excel: "Someone lese is working in 'Network path' right now please try again later.
    All PC's are Windows 7 and Office 2013. I can confirm that the file is not open by anyone else.
    This is becoming very frustrating and I can see other threads on this issue with no resolution.

    If you just can't save Excel file located in shared drive normally, it should not a Office product issue, maybe there are some other applications in the server causes these issue. Check permission and try to disable the preview and detailed
    view to test this issue.
    http://forums.cnet.com/7723-6129_102-591602/excel-problem-saving-documents/

  • Can/How do you save excel files to the cloud?

    How, if at all, can you save excel files to icloud?

    I think you need to upgrade your MacOS.  Mine is running MacOS X 10.8.4. 
    I am running Numbers '09 v2.3.
    Need to sign on to iCloud under Mac Preference Settings.
    When I start Numbers, I can view files stored on iCloud, or locally on the Mac harddisk.
    Hope it helps.

  • Run report in Backround and Save it automatic as Excel File

    I've created a report program that uses the alv grid. I run it in background, then i want to save it automatic as an excel file.
    can y help me
    Thanks

    Hi,
      When you run a report in background, irespective of the type of report, let it be Normal or ALV report, we have to use JOB FM's, such as JOB_OPEN, JOB_CLOSE. When you run a report in background, the data to be displayed is stored in the spool. So firt, you need to hold the spool data into an internal table, and then pass that internal table to GUI_DOWNLOAD, by hardcoding a path in the local system to download.
    Use this FM to hold the spool output in a internal table , RSPO_RETURN_SPOOLJOB.
    Hope this is helpful to you. If you need further information, revert back.
    Reward all the helpful answers.
    Regards
    Nagaraj T

  • Why does Apple say that Numbers can open and save Excel files, when in actuality, it can only open .XLSX files and only Export to Excel (not save-as excel)?

    When attempting to open .XLS files in Numbers, the format is not recognized. When the format is .XLSX, the format is recognized. Why is it this way? It's still much more common for folks to have the .XLS file format on their excel files. Why would Numbers not be backwards-compatible?
    Additionally, to state in the benefits of this program that one can save to 'Excel' is a little misleading. You can't save to anything except .numbers. Sure, you can export to Excel (with file extension .XLS, I might add), but you can't save or save-as.
    Does anyone else see the irony in being able to export to .XLS but not be able to open an .XLS?
    There is something to be said for clarity.
    You can't expect folks to have Numbers and Excel on their systems, so how else are they supposed to open .XLS files in Numbers?
    And I don't need to see another advertisement for NeoOffice or OpenOffice here, thanks. I'd actually like Numbers to be a little more sensible.
    That is all.

    When the advertisements were written, there was no Lion so we were able to Save As Excel.
    At thiqs time there is no longer Save As command under Lion but the feature is always available.
    When your editing task is ended, you are free to use this scheme:
    File > Duplicate
    File > Save and in the dialog you will have the option save as Excel.
    Numbers isn't and I hope that it will not become an Excel editor.
    Its resources contain a flag defining it this way.
    I posted several times a script editing this resource.
    This morning I'm not in a mood allowing me to do your duty.
    Search by yourself in existing threads with a keystring like
    viewer AND editor
    Yvan KOENIG (VALLAURIS, France) jeudi 27 octobre 2011 09:40:23
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • Can I automatically save a file and backup at the same time?

    My financial files are held in the cloud which means time machine does not back them up. Is there a way I can automatically backup the files whenever I save them?

    Anyone? Even if only to say it can't be done.

  • IUploader Issue, not letting me save excel file from within email, as it shows in directions, why not?

    I have been researching for hours how to be able to browse to and select an excel file to upload, when on a website that has an upload button.
    From my research, it stated in iUploader, a user should be able to download an excel file and store it in iUploader's app, and then visit website in iUploader's browser and then select the file from there in order to upload it.
    Well, I can't even get the stupid app to save it as it shows in screen prints directions within the apps home page.
    Anyone else having this issue and did you figure out how to do this?

    No, that doesn't work for me.  And things seem to be inconsistent.  Where it lets you vary the file size (small/medium/large/actual) when large and actual are the same, it doesn't send the actual jpeg file for windows to open.  When large and actual size files are different when you toggle between the two, the file seems to go through to my windows pc ok.  When I tried this through preview, that's when I noticed this difference, not through just email or Aperture yet.  Help!

  • How to save excel file as *.csv

    Hi.
    I must upload excel file and next save as *.csv.
    How can i do it?

    Hi,
    USe the code given in the link
    http://www.sapdevelopment.co.uk/file/file_upexcel.htm
    Cheers
    VJ

  • How do I save excel file with password for read only access ?

    Hi
    I am trying to save an excel file with a password to make it read only when opened
    using OLE2 . I am having a problem with the parameter list. This is my code that does
    work.
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'C:\Reports\Excel\File.xls');
    ole2.add_arg(args, 0);
    ole2.add_arg(args, 0);
    ole2.add_arg(args, 'TEST');
    ole2.add_arg(args, 0);
    ole2.add_arg(args, 0);
    ole2.add_arg(args, 1);
    I also have the following code at the beginning of the program to suppress dialogs.
         OLE2.SET_PROPERTY(application,'DisplayAlerts', 'FALSE');
         ole2.set_property(application,'Visible', 'false');

    Hope it help.
         -- Begin : Protect your worksheet
         args := OLE2.CREATE_ARGLIST;
         OLE2.ADD_ARG(args,yourpassword); -- choose your password
         OLE2.INVOKE(worksheet, 'Protect', args);
         OLE2.DESTROY_ARGLIST(args);
         -- End : Protect your worksheet
         -- Begin : Save and close worksheet
         OLE2.INVOKE(workbook, 'Save');
         OLE2.INVOKE(workbook, 'Close');
         -- END : Save and close worksheet

  • How do I save excel file with new name?

    Returning to using a Mac after 20 years - so not familiar with many things.
    I have an existing Excel file that I am using and making changes to... how do I save it as a new file name?
    I click on the 'disk' icon on the top ribbon but that just saves it as the same file-name with an updated time-stamp... that won't work for me.
    Much appreciate any help!

    Top of screen: FILE -- Save as... Name it - top rectangle and pick a place to save it. DONE.

  • Save Excel file

    Hope sombody can help me!
    I want to save an excel file everytime I make a new measurement with an CString from a textfield. At the moment I want to do it as follows:
    book.saveas(COlevariant("c:\\file\\file\\*.*"..)
    At *.* I want to add the new adress. How ist it Possible?
    regards
    Stefan

    If you want to save the whole project as a new name each time this should work.
    CString String1;
    CString String2;
    int file_count=0;
    String1.Format("C:\\file\\file\\basefilename");
    while(keep_taking_measuremnts == true)
    if(measurement_taken == true)
    String2.Format("%s%d.xls",String1,file_count);
    file_count++;
    book.saveas(COlevariant(String2,....
    measurement_taken = false;
    //rest of code in measurement loop
    This would give you basefilename0.xls, basefilename1.xls,basefilename2.xls etc.
    Grant
    Grant M. Johnson
    Project Engineer
    LECO Corporation

  • How to save excel file on iphone

    how do i save an excel file on my iphone

    Hi Suraj,
    Welcome to Apple Support Communities.
    Take a look at Numbers for iOS, it will allow you to view and work with Excel files on your iPhone.
    Apple - Numbers for iOS
    https://www.apple.com/ios/numbers/
    Teaming up with someone who uses Microsoft Excel? Numbers makes it a great working relationship. You can save Numbers spreadsheets as Excel files. Or import and edit Excel spreadsheets right in Numbers. Most popular Excel features are supported, too. Now it’s no problem to work on the same project. Even if you use different apps.
    Learn more about Microsoft Excel compatibility
    -Jason

  • Where XXL_FULL_API saves excel file?

    I need to export internal table in Excel file in background and send it by e-mail. FM succesfuly exports internal table, but i don't know where the FM stores a file.
    Where the FM stores a file???

    Hi,
    Please, have a look at this :
    and maybe try to use the search option of the forum
    Rgd
    Frédéric

Maybe you are looking for

  • WRT54GS won't connect my static IP computer to internet

    My goal is to get completely connected to a torrent site. Their instructions were to configure a static address for my computer, forward a port and life will be good. My current setup is my computer is wired to a WRT54GS which in turn is wired to an

  • XQuery many to one in an XML document ??

    I have XMLType tables with xml documents that have data like the sample below. There are one to many InvoiceLineRet to one InvoiceRet, how do I return this data in an XQuery? I have tried many iterations but cannot get data to return correctly. It is

  • In smartform folder's size appears smaller than main window

    Hi all, I used folder and table in main window. table takes the width of main window but folder does not takes. in print preview folder's size appears small then table. please suggest how to increase the size of folder. regards shahid

  • Uninstalled Roboform, but can't get rid of Roboform Lite icon in toolbar.

    I uninstalled the Pro version of Roboform. I was told that some files were still on the pc under a file called "siber". I deleted the siber folder. I can't get rid of the Roboform Lite icon in the tool bar

  • Download 9i Client release 2

    I am using a laptop with XP, trying to download 9i client R2. It downloads to 99% and freezes, can't get past this point. Contacted Support, told me to download Getrigth, that worked but now when I try to down load the Oracle server never connects An