To open back the save files in presentation.

I am trying to do presentation tools( that are similar to powerpoint )using Jawi....
I have facing some problem in my coding which are:
i) I cannot create a new slide
ii) I cannot open the save files in the folder i have save (such as: C:/windows/temp/)...
iii)The format is in .png format..how should i change it back to .txt format?
Can someone shown me where is the problem...Plz...
if(e.getSource() instanceof JMenuItem){
                    if("New Project".equals(actCmd)){
                         try {
                              FileDialog fileDialog = new FileDialog(mainMenu, "New Project", FileDialog.SAVE);
                              fileDialog.setDirectory("c:/");
                              fileDialog.setFile("*.kss");
                              fileDialog.show();
                              // Get and set the String file project name
                              newProj = fileDialog.getFile();
                              System.out.println("File Name :" + newProj);
                              // Open or create a random access file
                              raf = new RandomAccessFile("c:/"+newProj+".kss", "rw");
                              randomAccssFile = "c:/"+newProj+".kss";
                         catch(IOException ex) {
                              System.out.print("Error: " + ex);
                              System.exit(0);
                         System.out.println("new project:" + newProj);
                         newFolder = new File("c:\\windows\\temp\\"+ newProj +"\\");
                         newFolder.mkdir();
                         //Set the directoryName to pass in to slide show class
                         directoryName = "C:/windows/temp/"+ newProj;          
                    if("Open Project".equals(actCmd)){
                              newProj ="";
                              FileDialog fileDialog = new FileDialog(mainMenu, "Open Project", FileDialog.LOAD);
                              fileDialog.setDirectory("c:/");
                              fileDialog.setFile("*.kss");
                              fileDialog.show();
                              // Get and set the String file project name
                              String newProjFile = fileDialog.getFile();
                              int l = newProjFile.length() - 4;
                              for (int i =0 ; i<l; i++){
                                   newProj +=""+newProjFile.charAt(i);
                              System.out.println("File Name :" + newProj);
                              System.out.println("Open project:" + newProj);
                              //Set the directoryName to pass in to slide show class
                              directoryName = "C:/windows/temp/"+ newProj;
                    else if("Save Project".equals(actCmd)){
                         try {
                              FileDialog fileDialog = new FileDialog(mainMenu, "Save as png", FileDialog.SAVE);
                              fileDialog.setFile("Slide.png");
                              fileName = newProj;
                              directoryName = "C:/windows/temp/"+ newProj;
                              fileDialog.setDirectory(directoryName);
                              fileName = fileDialog.getDirectory()+"/"+newProj+TC+".png";
                              Rectangle r = pSlide.getBounds();
                              Image image = pSlide.createImage(r.width, r.height);
                              Graphics g = image.getGraphics();
                              pSlide.paint(g);
                              ImageIO.write((RenderedImage)image, "png", new File(fileName));
                              System.out.println(fileName);
                              TC += 1;
                         catch (IOException ioe) {
                         ioe.printStackTrace();
                    else if("Save As".equals(actCmd)){
                         try {
                              FileDialog fileDialog = new FileDialog(mainMenu, "Save as png", FileDialog.SAVE);
                              fileDialog.setFile("*.png");
                              fileDialog.show();
                              fileName = newProj;
                              String directoryName = "C:/windows/temp/" +newProj;
                              fileDialog.setDirectory(directoryName);
                              fileName = fileDialog.getDirectory()+"/"+newProj+".png";
                              Rectangle r = pSlide.getBounds();
                              Image image = pSlide.createImage(r.width, r.height);
                              Graphics g = image.getGraphics();
                              pSlide.paint(g);
                              ImageIO.write((RenderedImage)image, "png", new File(fileName));
                              System.out.println(fileName);
                         catch (IOException ioe) {
                         ioe.printStackTrace();
                    }

HI,
did you ur problem was solved if not check this code once.
now only i tried it my system , it opens xl file and save all data in it.
DATA: ZKNA1 LIKE STANDARD TABLE OF KNA1 WITH HEADER LINE.
SELECT * FROM KNA1 INTO TABLE ZKNA1.
CALL FUNCTION 'MS_EXCEL_OLE_STANDARD_DAT'
  EXPORTING
    FILE_NAME                       = 'C:\Documents and Settings\rajesh.NACL\Desktop\XLSSDSDS.XLS'
  CREATE_PIVOT                    = 0
  DATA_SHEET_NAME                 = ' '
  PIVOT_SHEET_NAME                = ' '
  PASSWORD                        = ' '
  PASSWORD_OPTION                 = 0
TABLES
  PIVOT_FIELD_TAB                 =
   DATA_TAB                        = ZKNA1[]
  FIELDNAMES                      =
EXCEPTIONS
  FILE_NOT_EXIST                  = 1
  FILENAME_EXPECTED               = 2
  COMMUNICATION_ERROR             = 3
  OLE_OBJECT_METHOD_ERROR         = 4
  OLE_OBJECT_PROPERTY_ERROR       = 5
  INVALID_PIVOT_FIELDS            = 6
  DOWNLOAD_PROBLEM                = 7
  OTHERS                          = 8
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
thanq,
rajesh.k

Similar Messages

  • Default for opening pdf files keeps changing back to 'save file' after I set it to open in firefox

    Since upgrading to the latest Firefox version, my options for opening adobe pdf files have changed. I set it to 'use Adobe Acrobat in Firefox', it works absolutely fine, then some time over the next few days it changes itself back to 'save file'. Then I have to open options and change it again. This happened to me some years back with a much earlier version of Firefox - I can't remember how it was resolved, I think it just stopped doing it after a while. But it is most irritating!

    I echo the request for Help! I've added Options to my Toolbar so I can more easily change "Save File" to "Use Adobe Acrobat (in Firefox)" as the default. Why does Firefox keep reverting to the save file default?

  • I get a dialogue box asking "What should Firefox do with this file" Options open with or save file. My wife selected save file and now it only opens note pad and displays the text of the file to be saved. OK in windows Internet Explorer.

    I get a dialogue box asking "What should Firefox do with this file" Options open with or save file. My wife selected save file and now it only opens note pad and displays the text of the file to be saved. OK in windows Internet Explorer.

    P.S. Site is http://www.coldwatercreek.com

  • I have Windows 98 and need Acrobat to open up the pdf files for 5.0

    I have the old system, Windows 98 and presently have the free Adobe 5.0 version on my Compaq Presario Computer, and it is a 5242 model desktop.
    I have inadvertanly switched over to Compaq Carbon Copy 32 Version 5.0 but since, have uninstalled it and now, on each of what was the pdf files initially of which I have, of which is at least 16 or more, on each of those files, an error message comes up and says "PROGRAM NOT FOUND," and states the following: "Windows cannot find CCW32EXE. This program is needed for opening the pdf files." And then it has a dialogue box with the computer operational symbol in it as C:\ and then it wants me to locate it. I cannot locate it through the "auto" because, this sytem being so old, doesn't have a magnifying glass or a "search" tool to do this in the "My Computer Icon on the Desktop as the Compaq people wanted me to do. I would have to do this manually. I have already talked to the Compaq people on their chat line and because of this, they said they couldn't help me with this problem and referred me over to you.
    I've tried to find a download for 5.0, though I really don't think I need one since it is currently installed. I believe the proper way to fix this is to just convert the CCW32EXE over to the Acrobat pdf files and have those files opened and should open up all of my 15 or so files altogether at the same time because they all converted over to something else at the same time prior.
    Are you able to help me?
    But I believe to alleviate this problem, if you could just give me the information to be able to open up the pdf files to 5.0 and find out what download I may pursue, it might be able to correct this problem. I already have the 5.0 Acrobat installed, however.

    Hi Aandi,
    I have followed your directions and I have the old system of Windows 98, so I had to go to "programs" and come up to Acrobat 5.0 and once in there, all of the Window there is greyed out, although I can still go to the tool bars above in it. I went to "file" and went to "open" and from there, I received an "open" window with a dialogue box in it and in that dialogue box as I scrolled down, it wants me to put in there, one of the following, "desktop," "my documents," "3 1/2 floppy [A:]," "[C:]," "system _save [D:]," ""[E:," "[F:]," ete; of these which do I pick in the "open" dialogue box? and down at the bottom, is the FILE NAME and what do I put in there? Just below that, it has the FILES OF TYPE which has there Adobe pdf Files, in it's dialogue box. I hit these, but I still get an error message of which basically says, "NOT FOUND, please put in proper file name given." And I don't know actually where it is given.
    So, as you see, I am a novice in all of this and you can contact me at my e mail address which is [email protected]
    and should a reply be needed, I'll come back to the forum for a reply.
    I really need to open up the Adobe 5.0 pdf files. All of the pdf files, simultaneously went over to Compaq Carbon Copy 32 of which I since, uninstalled. But I really need to get back and open the Adobe 5.0 pdf files.
    And I want to thank you for your support and eagerly awaiting your help.
    Thanks,
    Now, I did do one of the following: I went to C: which came to Acobat 3 and I hit that which came to Reader and I hit that which came to the following: ACROBAT which gave me ACTIVE X - BROWSER - FONTS - HELP - OPTIONAL - PLUG-INS

  • Download pdf = how to open and not save file

    hi
    in my app i have to download a file. at the beginning the file is called with blazeds as a ByteArray.
    var saveReference:FileReference = new FileReference();
    saveReference.save(pdfByteArray, 'Report.pdf');
    i like to open an application associated on the Operation System when the user download the file. eg download the report.pdf => the pdf reader opens.
    i tried hard but could not find a way to force this, in my app the save file dialog opens.
    the only report similar to mine i could find:
    http://stackoverflow.com/questions/569350/flex-filereference-download-is-it-possible-to-op en-associated-application/569596
    maybe you could help me. thanks
    joe

    Don't think it's possible, due to security reasons (instantly being able to run a downloaded file spells out massive problems).
    there is a topic here:
    http://www.justskins.com/forums/download-file-open-pdf-from-flex-ui-87457.html
    which seems similar to yours.
    As they say in that topic though, you could just have a link that opens a new window to the PDF.

  • How to Display the SAVE  file name dialogue in Forms 6i

    Dear All,
    Just like we use Get_file_Name to display the MS Open file dialogue..
    how do we display the SAVE file dialogue in forms..??
    whats the function name???
    regards,
    Sidhant

    hello friend,
    u can use webutill lib to open/save dialog box
    also must refer this link,
    Re: How To Call Save As Dialog?
    Regards
    Chandan

  • I saved a word file onto my imac.  when i go to open file in documents with pages the file is grey and unable to open.  the workable files are highlighted in bold.  is there a way to open this file????

    i saved a word file onto my imac.  when i go to open file in documents with pages the file is grey and unable to open.  the workable files are highlighted in bold.  is there a way to open this file????

    THis is safe for Mac's? Sorry, I have just never heard of this site before.
    And there are literally tens of thousands of sites of which I've not heard, too. Not this one.
    It's legit. There are lots of links in Apple Support Communities to the LibreOffice web site, as well as others that are legitimate open-source developers of options to buying MS Office, such as NeoOffice and OpenOffice. I have Open Office installed on one of my older Macs that can't run Office 2011 and it is rock-solid.
    I've been here too long to start posting bogus urls now.

  • Just installed CC on my PC, Windows 7, 64 bit system. Not seeing any applications on the desktop or installation folder. However, all the resource files are present in the installation folder. What am I doing wrong?

    Just installed CC on my PC, Windows 7, 64 bit system. Not seeing any applications on the desktop or installation folder. However, all the resource files are present in the installation folder. What am I doing wrong?
    I've installed three times with no luck. I downloaded the Creative Cloud Packager off the licensing site: https://licensing.adobe.com. I unpacked and choose my applications. The install seemed to be successful, but I don't so any of the applications anywhere.

    Hi,
    Creating package doesn't mean it will install the product,
    You will need to install the package now. Please follow the instructions mentioned in the below articles
    Creative Cloud Help | Creating or editing packages
    Creative Cloud Help | Deploying packages
    Please let me know if it doesn't help.
    Regards,
    Devendra

  • Upgrading to the Lion & reinstall again from iWork, the Pages 4.1 worked, however, now every time I open a Page file it keeps opening all the page files

    After upgrading to Lion the Pages didn't respond to it. So, I reinstalled the Pages 4.1 from iWork. It worked. However, eversince every time I try open a new or exsisting page file it opens all the pages files that I worked on it last several days or a week.  Suddenly many page files on the desktop!  Kind of confusing... Can someone help with this issue... Thanks

    Welcome to the iOS world of nonthinking, wherein the OS decides everything for you, whether or not that's what you want. Salient details described in http://www.apple.com/macosx/whats-new/features.html#resume

  • I have upgraded from 10.5 to 10.6 and found that all folders/files/pics have pixelated (either white or black) patterns on them. But it turns out fine when i open up the affected files/folders/pics. And this phenomenon persists after updating software.

    I have upgraded from 10.5 to 10.6 and found that all folders/files/pics in my disk drive have 'dotted' (either white or black) patterns on them. But it turns out fine when I open up the affected files/folders/pics. And this phenomenon persisted even after updating to the latest software. I proceeded to upgrade to 10.8 and updated the latest software thinking that this might resolve the problem but still stays the same way as it was. Could it be the Adobe flash player that is causing this problem? Please help.

    this posting shows how to migrate wiki. http://discussions.apple.com/thread.jspa?threadID=2205892
    I did it and it worked.

  • Location of the 'save file' for games on memory ca...

    Hey, im playing the game 'air hockey' on my nokia 5800, but its stuffing up a bit so i want to re-install it just in case it got damaged a bit from a previous update... But iv got so far into the game that i dont want to lose my progress, so does anyone know the directory of the 'save file' for this game, so i can just replace the new one with it when i reinstall the app?? The game was installed on my memory card.
    Thanks
    If iv helped in anyway, hit the kudos button

    can you give me any tips on where to look at least, like common places?
    If iv helped in anyway, hit the kudos button

  • Can i get back the backup file what i deleted on icloud?

    Can i get back the backup file what i deleted on icloud?please, help me. thanks

    You can't. iSync has been discontinued since Mac OS 10.7 Lion. iSync has no connection with iCloud anyway.

  • Have AE7; Problem importing prproj file into pc; get placeholder instead. What do I need to do to open up the video files here. They are .mov in quicktime.

    Have AE7; Problem importing prproj file into pc; get placeholder instead. What do I need to do to open up the video files here. They are .mov in quicktime.

    Please be more specific. What Premiere project? What version of Premiere? Which operating system? What CoDecs do the QT fiels use? Are all the video files in the correct folders inside the Premiere project structure? Your description sounds like you are attempting to open a Mac based project on a PC and your video files are either in the wrong location or use a Mac-specific CoDec, hence they cannot be read on a PC.
    Mylenium

  • Browser can't find a text file opened via the save as dialogue box

    Hi there,
    I have a servlet which outputs a file using the servlet output stream, with the following lines set:
    response.setContentType("application/msword");
    response.setHeader("Content-Disposition", "attachement; filename="+ fileName);
    servletOutStream.write(myBytes);
    servletOutStream.flush();
    It works fine for .doc files and it seems the mechanism is that it is saved to the Temporary Internet Folder and delivered from there when the user clicks on the 'open' or 'save' option in the browser popup dialogue box. However... when I try this with text files, (setting the content type to "text/plain") I get the open/save dialogue box up correctly but if I try to open the file it says it cannot find the file, and gives the path under the Temporary Interenet Folder. If I look in there the text file isn't present - though the .doc files are.
    So... it looks as if the problem is that for some reason it doesn't save the text files correctly to the Temporary Internet Folder.
    I can't deliver the text files inline as a solution as the filename is lost and it thinks it's an html file (which the client doesn't want).
    Any ideas?
    Alison

    At least also set the content length. Your browser may be configured be the default application to open textfiles. If the contentlength is not set, then most applications would refuse to open the file without choosing for 'Save' first and manually open it.

  • Can't open back up drive files with LR CC or save from PS CC 2014 on imac

    i receive the below statement each time i start trying to prepare a file in LR with plug ins or try to save from PS CC 2014, any ideas as previously this drive was accessible.
    "Lightroom was unable to prepare the selected file at /Volumes/Seagate Backup Plus Drive/YYMMDD/2014/2014-06-15/20140615-EUT_3970.NEF for editing.
    It will not be opened."

    i receive the below statement each time i start trying to prepare a file in LR with plug ins or try to save from PS CC 2014, any ideas as previously this drive was accessible.
    "Lightroom was unable to prepare the selected file at /Volumes/Seagate Backup Plus Drive/YYMMDD/2014/2014-06-15/20140615-EUT_3970.NEF for editing.
    It will not be opened."

Maybe you are looking for

  • Accounting Documents

    Hi Guru's, After Billing, two Accounting documents will be generated. Where do we configure for these documents to be generated and how? Som times only one Accounting document is getting generated And the other document is not getting generated. Why?

  • [SOLVED] XFCE Panel Icons

    Does anyone know why my panel icons are black? Like such: http://i.imgur.com/rhaLd.png I haven't migrated from any other DE, this started happening after I enabled Compiz on startup(https://wiki.archlinux.org/index.php/Co - icon.22.29). Any ideas on

  • How do I get the Handle of an Existing Task?

    I'm using a National Instruments board with Matlab.  This is allowing me to perform interactive command-line development.  But, I've run into an interesting problem.  I can create a task and forget the handle.  Now I cannot use the task (forgot the h

  • What is the Java default ORB implementation class?

    I have a web application deployed on the Sun Java System Application Server 8. This application will also act as a CORBA client by invoking remote methods on another CORBA server. Our first approach was to use the ORB provided by the Sun App Server.

  • Sync pictures to iphone???

    When I sync my picture folders to iphone, they come out distorted.....Do I need to resize the pictures or something??? HP   Windows Vista