Save an excel file by OLE2 object

Hi everybody,
I wanna save an excel file generated bye ole2 objects just same as the SaveAs dialog prompt. But SaveAs prompt is not working....

Hi,
Before calling 'SaveAs', free all the reserved OLE objects.
Now Save excel spreadsheet to particular filename and quit the excel application. 
CALL METHOD OF sheet 'SaveAs'              
   EXPORTING
       #1 = 'c:\your_excel.xls'     "name of excel                                 
       #2 = 1.                                   "file format              
Regards,
Rajesh

Similar Messages

  • No column heading in second page in alv report when save in excel file

    Hi Expert,
    How can i remove the column header from Alv report when program execute in background and save in excel file right now
    its comming column header in each page. Client dont want header column in excel from second page. is this possible?
    with regards
    chandan_viji

    Hi Ravi,
    thanks for reply i have solved this problm throug line count and NEW-PAGE LINE COUNT 10000 bcoz client want output in excel file only one page header.
    with regards
    chandan_viji

  • How to save an excel file as CSV with semi-colon as data separator?

    We are creating a flat data file to load the flat file data to our BW system with Excel.  When we save the file, there are three kinds of CSV types for selecting from the "Save as type" list box:
    CSV (Comma delimited)
    CSV (Macintosh)
    CSV (MS-DOS)
    There is no CSV (semi colon delimited) type.  If we pick CSV (Comma delimted) as the type, then when clicking the "Preview ..." picture icon under the "DataSource/Trans. Structure" tab of the InfoSource for this flat file (with the CSV radio button checked the Data separator default is ";"), the File Upload Preview window shows the data is messed up that some columns of the excel flat file are combined into one column.
    Since the save type we picked is "CSV (Comma delimited)", then we try to change the default Data separator from ";" to "," in the preview selection screen, but still not helpful!
    How to resolve the above problem?
    Thanks

    Hi Kevin,
    This "," is defined in your windows setting. If you want to have ";" as separator then go to control Panel, select Regional Options, go to Numbers Tab and define the List separator as ";". After that when you will save your excel file as CSV(MS-DOS) it will have ";" as separator. This will make sure that the amounts are not broken in to two different fields while loading.
    Else if you keep "," as separator then you can also go into the Excel and define all number fields as Number without thousand separator.
    Let me know if you have any doubts in this.
    Regards,
    Rohit

  • How do I save a excel file to be compatible...

    How do I save a excel file from a pc to be compatible with my Mac?

    Hi juicebars,
    iWork is a productivity suite for Macs running OS or iThings running iOS. With a MacBook Pro you will need the OS version.
    iWork consists of:
    Pages, a word processor and page layout app (page layout mimics a drawing app). Pages can import Microsoft Word documents and you can edit and save them. Also Export as MS Word, PDF, plain text, RTF or ePub.
    Numbers, a spreadsheet app that mimics a database. Numbers can import Microsoft Excel or CSV documents and you can edit and save them. Also Export as MS Excel, CSV or PDF.
    Keynote, a presentation app. Keynote can open Microsoft Powerpoint. I don't use Keynote, so I can say no more.
    You can buy the iWork suite from the App Store, or buy Pages, Numbers and Keynote separately.
    There are some minor conversion glitches when converting between MS Office and iWork. If you are continually converting, it is best to buy Office or LibreOffice for Mac.
    iWork does not take kindly to huge documents.
    However, I find that Numbers and Pages for Mac OS to have a sweetly intuitive way of doing what I want.
    Regards,
    Ian.

  • How to save an Excel file to the desk top

    How can I save an Excel file to the desk top?

    Hi Tim!
    There's a whole bunch of entries that come up when I open terminal and key in the command you gave; here's what is shown:
    Davids-Mac-Pro:Desktop pdf3$ ls -ale ~
    total 38384
    drwxrwxrwx+  41 pdf3  admin      1394 Nov  2 09:12 .
    0: group:everyone deny delete
    drwxr-xr-x    6 root  admin       204 Sep 19 14:58 ..
    -rw-rw-rw-    1 pdf3  admin         3 Jan 24  2012 .CFUserTextEncoding
    -rw-rw-rw-@   1 pdf3  admin     39940 Nov  3 10:48 .DS_Store
    drwx------    2 pdf3  admin        68 Nov  6 09:02 .Trash
    drwxrwxrwx    3 pdf3  admin       102 Feb  1  2012 .adobe
    -rw-rw-rw-    1 pdf3  admin       302 Nov  6 09:20 .bash_history
    drwxrwxrwx    6 pdf3  admin       204 Dec 31  2013 .blurb
    drwxrwxrwx    3 pdf3  admin       102 Oct 21  2012 .config
    drwxrwxrwx    3 pdf3  admin       102 Jan 27  2012 .cups
    drwx------    7 pdf3  admin       238 Jul 26 20:36 .dropbox
    drwxr-xr-x    4 pdf3  admin       136 Dec  7  2013 .fontconfig
    drwxrwxrwx    3 pdf3  admin       102 Mar 17  2012 .nchsoftware
    -rw-rw-rw-@   1 pdf3  admin        17 Oct 21  2012 .vbftpxmn
    -rw-r--r--@   1 pdf3  admin   1315548 Sep  3  2013 2014 Bellevue SW Collection Contract 04 15 2013 draft for RFP.pdf
    drwxrwxrwx    2 pdf3  admin        68 Sep 21 11:04 Applications
    -rw-r--r--@   1 pdf3  admin    326665 Aug 30  2013 Bellevue Reliability Report 2012 042613 Final-1.pdf
    -rw-r--r--    1 pdf3  admin      6737 Sep 25  2013 Bellevue Reliability Report 2012 042613 Final.txt
    -rw-r--r--@   1 pdf3  admin     35892 Oct 30 22:15 Bellevue Utility Bills, 2015-16.xlsx
    drwxrwxrwx@   3 pdf3  admin       102 Aug 16 14:52 Burn Folder.fpbf
    -rw-rw-rw-@   1 pdf3  admin     25989 Jun 18  2012 Concerns Expressed to City of Bellevue Regarding Approval of.pdf
    -rw-r--r--@   1 pdf3  admin    165592 Sep  5  2013 David's Autobiography copy.pdf
    -rw-r--r--@   1 pdf3  staff     34836 Jul 26 21:21 Deck Repair, 2014.xlsx
    drwx---rwx@  35 pdf3  staff      1190 Nov  5 12:54 Desktop
    0: group:admin allow list,add_file,search,add_subdirectory,readattr,writeattr,readextattr,writeextat tr,readsecurity
    -rw-r--r--@   1 pdf3  admin    111548 Nov 15  2013 Document2.pdf
    drwx------+  18 pdf3  staff       612 Nov  5 11:43 Documents
    0: group:everyone deny delete
    drwx------+ 494 pdf3  staff     16796 Nov  2 22:09 Downloads
    0: group:everyone deny delete
    drwxr-xr-x    2 pdf3  admin        68 Nov  1 11:54 Excel Work Book
    drwxr-xr-x    2 pdf3  admin        68 Oct 31 20:42 Excel Workbooks
    -rw-rw-rw-@   1 pdf3  admin  16862554 May 29  2012 Group Shot.psd
    drwx------@  53 pdf3  staff      1802 Sep 19 15:17 Library
    0: group:everyone deny delete
    drwx------+   6 pdf3  staff       204 May 28  2013 Movies
    0: group:everyone deny delete
    drwx------+   8 pdf3  staff       272 Feb 24  2014 Music
    0: group:everyone deny delete
    -rw-rw-rw-@   1 pdf3  admin    117444 Jul 21  2008 P6M-2 In Close copy.jpg
    -rw-r--r--@   1 pdf3  admin     46473 Aug 16 14:50 PW-M-1 Overlay Budget.xlsx
    drwx------+  65 pdf3  staff      2210 Nov  5 11:43 Pictures
    0: group:everyone deny delete
    drwxr-xr-x+   5 pdf3  staff       170 Jan 24  2012 Public
    0: group:everyone deny delete
    drwxr-xr-x    6 pdf3  admin       204 Mar 10  2014 Sound Transit Bel-Red Cost Estimate
    drwxr-xr-x   34 pdf3  admin      1156 Sep 21 09:24 WW II Songs & Opera #1
    -rw-r--r--@   1 pdf3  admin    172859 Feb 25  2014 photo 1.JPG
    -rw-r--r--@   1 pdf3  admin    172859 Feb 25  2014 photo 3.JPG
    Davids-Mac-Pro:Desktop pdf3$
    I have no idea what all this stuff means, but I've done a 'disk verify' for both my drives, and the results indicated they were both 'OK'.Dave P.

  • How to save and retrieve an excel file as an object into lob column?

    Hi ,
    I need to save and retrieve the whole excel file with 3 or more sheets as an object into the lob column of table.
    For example:
    t_docments
    (doc_id number,
    excel_data clob
    All excel files need to be saved to excel_data column.
    What should I do?
    Thanks

    Did you check the asktom thread posted by Jens?
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P1
    1_QUESTION_ID:232814159006
    There's example of varies file types.Yes, I did try some examples.
    Those work for .doc/.pdf/.jpg files, BUT NOT for excel file.
    The following error happened when retrieving excel file(retrieving .doc/.pdf are OK)
    ORA-29285: file write error
    ORA-06512: at "SYS.UTL_FILE", line 18
    ORA-06512: at "SYS.UTL_FILE", line 375
    ORA-06512: at "SYS.UTL_FILE", line 990

  • Save as Excel file

    Hi!
    Why when I save a report as excel file the columns are united??
    It not respect the layout of report? 
    Thank you
    Bye

    Hi,
    Following information might help you to resolve the issue.
    Open the Business Objects full client report.
    Click on the Headers,Sections and all the tables at a time with the help of Ctrl key from the keyboard.
    From the Alignment menu bar click on Align Left.
    Save the report as Excel.
    Regards,
    Sarbhjeet Kaur

  • Is there a method to write a ROW @ once to Excel file using OLE2?

    Hi
    I need some help on exporting data from a table to an Excel file. It's
    possible to write values to file cell by cell using Ole2 functions. But
    I prefer if there's a method to write a row at once rather than writing
    cell by cell.
    Please let me know if anyone's aware of a method..
    I guess DDE package has some methods, but since we have already used
    OLE2, would like to know whether any method available in that.
    We can set values to the row at once, using the following
    ole2.set_property(row1, 'Value',1);
    but it will be always the same value in every column
    the above will set '1' for each column in the row..
    Please let me know if there's a method to set different values to
    each column in a row such as
    ole2.set_property(row1, 'Value',1,2,3,4) (not an actual, just an
    example) which will assign '1' to column 1, '2' to column 2 etc..
    We can't TEXT_IO and CSV files since we want to create different multiple tabs in the same work sheet
    It's required to have multiple tabs in the same excel file.
    So using CSV files is not possible
    Regards
    Channa
    Edited by: Channa on Apr 5, 2010 1:59 AM

    Other than importing them into your Mail / Address Book app, no.

  • Upload and save an Excel file from a local machine to SAP

    I am looking for a transaction which allows me to upload an Excel file from a local machine to SAP and save this file (the users should be able to edit the file in SAP afterwards).
    Then I would like to open and read the data from the file with the help of a function module which works as a background job.
    Unfortunately, I cannot use the application server because our users do not have the authorization to save files on it. Besides, the application server is not able to process Excel files.
    Thank you in advance.
    Stephan Klumpp

    Hi Stephan,
    You can do this using OLE technology. Bu you will have performance issues.
    Can you check the below demo programs? It has similar functionality. I am able to create excel sheet from sap and also able to save the data in the sap.
    SAPRDEMOEXCELINTEGRATION
    SAPRDEMOEXCELINTEGRATION2
    Please also check the below rograms for more help.
    SAPRDEMOACTIVEXINTEGRATION
    SAPRDEMODOCUMENTCONTAINER
    SAPRDEMODOCUMENTCONTAINER2
    Thanks
    Ramakrishna

  • I save my Excel file as .PDF then send it out by email. What program is best for my use?

    I want to send my Excel files as .pdf by email.  I need to know if Acrobat program is best for me.  I purchased a PDF file this morning and I don't think I need that.  From what I have seen, The Acrobat file is more what I need.  If so, then I would like to cancel the PDF file I ordered this morning and replace it with the Acrobat program.  I already have the Adobe Reader XI installed.

    Fay it isn't clear what you are referencing by "PDF file" and "Acrobat file".
    Yes there is the file format "PDF".
    No there's no file format "Acrobat file".
    Anyway, there are a number of ways to create a PDF file from an Excel file.
    From Adobe -
    You can purchase ("perpetual" license or subscription) Acrobat (Standard or Pro).
    After install of Acrobat you will have the Adobe PDF virtual printer which you can use to print to PDF (instead of print to paper).
    After install of Acrobat you will have the PDFMaker which integrates with Office applications.
    You can create a PDF from Excel using the PDFMaker.
    Or
    You can subscribe to Adobe's online service "PDF Pack".
    As a subscriber you go online, point the browser to the service's site, sign in, upload the Excel file and then save the output PDF to your computer.
    With the PDF in hand you originate the email and attach the PDF.
    Be well...

  • How to save as Excel file type?

    There were no Excel file type under the "Save As" function.  Is there anyway to include Excel file type under this list?  Snapshot attached. 
    Solved!
    Go to Solution.
    Attachments:
    Export_file_types.png ‏28 KB

    Hi NiCoder,
    You have a numer of different options to get data from the DIAdem Data Portal to Excel:
    1)  Save to TDM or TDMS file and use the free TDM Excel Importer to load the data into Excel
    2)  Save to CSV file and use Excel's built-in ASCII file import feature to load the data into Excel
    3)  Load the gfsexcel.dll GPI-DLL and use the "File >> Save as..." option to export an *.xls data file
    4)  Use a custom VBScript to automate any of the above 3 options
    5)  Use a custom VBScript to directly send each Data Portal data channel to a column of values in Excel via ActiveX
    Options 1) and 2) are easiest if you want a purely interactive solution.  Option 1) will export all the data values as well as all the properties.  Option 2) will export all the data values and the name of each channel in the Data Portal, but none of the other properties.  If you choose to use option 3), know ahead of time that this feature is limited to 255 columns and will not export any custom properties, just the properties that existed back in DIAdem 8.1.  Option 4) can add in all the custom properties that are missing in option 2).  Option 5) can export all the data and all custom properties, but it is also the slowest option and involves the most programming.
    Let me know what sounds best to you,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Save an OBJ file without 3d object

    Is there any way to save an OBJ file in photoshop without a 3D object?
    I'm trying to do this so I can use the OBJ file in pixologic sculptris to get a glossy skin effect. Alternatively if you know of a straight forward way I can get a glossy skin effect I'd appreciate it!

    I'm not sure what you are exactly trying to do here. Sounds like an oximoron - a model without geometry. Are you perhaps trying to save a points-only OBJ or any of that? If so, the answer is no. PS will always save the mesh. If you're trying to save the textures, then nothing stops you from doing just that liek you woulds save any other image file....
    Mylenium

  • How do I save an excel file as XML using applescript.

    I set display alerts to false, but excel will not save.  I get error -1708.
    My code looks as such:
    set theFile to "Macintosh HD:Users:Dustin:Documents:products.xlsx"
    tell application "Microsoft Excel"
      activate
      open theFile
              set display alerts to false
              tell active sheet
      save as filename "products.xml" file format XML spreadsheet file format
              end tell
      close active workbook without saving
              set display alerts to true
    end tell
    end
    If I remove the code to set the display alerts, excel pops up an display alert to continue or cancel the save.
    I'll take anything at this point....

    Are you sure you want to do a "SAVEAS" to create the PDF?  What version of MS Office are you using?
    One of the best ways to figure out how to do something with ActiveX in Excel is to first do it in Excel by recording a Macro.  See what code Excel generates, then try to model that in LabVIEW.
    I don't see .pdf as an option you can save Excel as a filetype to (Excel 2007).  But when I go to the Excel 2007 button, Save As, then PDF or XPS while recording a macro, I get this code.
    ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
    "C:\Documents and Settings\CurrentUser\Desktop\FILENAME.pdf", Quality:= _
    xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, _
    OpenAfterPublish:=True
       This shows me you should be usingthe ExportAsFixedFormat method on the worksheet as opposed to trying to use the SaveAs method on the workbook.  (But the workbook object as that same method as well.)

  • How to save an excel file as .txt on a mac?

    I am trying to upload products for sale on Amazon. They have an Excel template that you use to do the upload. The problem is that you have to save the file as tab delimitated .txt. How do I do that on my Mac??

    If you're going to be doing this on a regular basis, consider Numbers from the App store for $15, which is the Apple program equivalent to Excel.

  • Error "document not saved" when want to save Word/Excel files on NAS server

    Hello everybody!
    I have a NAS server (QNAP storage).I want to have some folders with these permissions : 
    1.nobody can create or delete folders in first parent folders (blue folder and red folders )
    2.everybody can create/save folders,docs... in it. (Black folders)
    when I set permission like picture below,people can not save documents in Excel or Word format in folders ( I have this problem just for Word and Excel).they face with errors : document not saved / access denied,contact your administrator.
    special permission for blue folder (domain users) 
    (include inheritable permission) and (replace all child subfolders...) are unchecked.
    traverse / execute files
    List folders/ read data
    Read attribiutes
    Read extended attribiutes
    Read permission
    special permission for red folder :
    (include inheritable permission) and (replace all child subfolders...) are unchecked.
    traverse / execute files
    List folders/ read data
    Read attribiutes
    Read extended attribiutes
    create files / write data
    create folders / append data
    write attributes
    write extended attributes
    delete subfolders
    delete
    Read permission
    special permission for black folder :
    these folders inherit permissions from parents.
    (include inheritable permission is checked.
    (replace all child subfolders...) is unchecked.
    when I uncheck "delete" permission in red folders and save it,"modify" permission in main permission will uncheck,too.I dont know why?in this situation,people can save docs, but they can rename/delete folders,too ( I dont want they delete
    or rename parent folders).
    what I must do?
    regards,
    atiye moghaddam

    Hi.
    How are the rights configured to be inherited? Could you do a "icacls <folder>" on each level and post it back.
    Also worth considering is that this is a Linux Samba system, so it might not work as a regular windows system.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. Even if you are not the author of a thread you can always help others by voting as Helpful. This can
    be beneficial to other community members reading the thread.
    Oscar Virot

Maybe you are looking for

  • Crystal Report That Uses Stored Procedure Errors when connecting to the DB

    We had developed reports a few years ago, including one that calls a Stored Procedure on an iSeries AS400 DB2 database.  We upgraded our environments to Crystal Reports 2008 and BO XI 3.1.  Now, the existing report that previously ran in the old envi

  • What format must the html be in for the link to my form work?

    Does the form created in my account named 80th Celebration work in a webpage created with the criteria below? I cannot get it to work in my website. Not by just the link or embedding the script. Have the form shows up with script and the link will no

  • Cancel runnning SQL in SQL*Plus Worksheet?

    Hi, can I Cancel a runnning SQL in SQL*Plus Worksheet? Thanks Markus

  • VBScript that traps error "Access Denied"

    I am newbie in VBScript. I have been trying a script where my requirement is, if the "ACCESS DENIED" error is coming, I need a prompt "Do you still want to continue?". My question is how can we trap the "ACCESS DENIED" error and as user ""Do you stil

  • ASSIGN MATCHCODE ON TX.IW32

    Hi, could you please help me to resolve a problem? I have to assign a matchcode (Z table) in a Standard transaction. In transaction IW32 in the "Operation" tab, i have to asign a matchcode to the field "unloading point" that is in the table control.