Show download popup and obtain path directory chosen by the user

Hello all,
I want to show a typical window for downloading a file, where the user select the directory she/he want and give the file a name. Then, save in a string attribute to the path and file name chosen by the user.
In this way, i already have the path to save the excel i created on the PC client.
Best Regards,
Jennifer Lohan.

Hello Ayyapparaj,
I used the library JExcelApi. The code I use to generate the excel is as follows, where I need to include in the PATH variable the directory where the user want to save the file.
What I need is to show the window for the user to choose where they want to save the excel file and overwrite the variable path.
How do I do? Any sample code to make the save browse and get the path?
(Example: C:\Documents and Settings\All Users...etc)
try
          //Set path
          String path = "Example.xls";
          File fich = new File(path);
                //Creating Workbook.
          WritableWorkbook workbook = Workbook.createWorkbook(fich);
          //Creating sheet.
          WritableSheet sheet = workbook.createSheet("SheetExample", 0); 
          //Fill headers columns.
          sheet.addCell(new jxl.write.Label(0,0,"Name"));
          sheet.addCell(new jxl.write.Label(1,0,"Last Name"));
          sheet.addCell(new jxl.write.Label(2,0,"Amount"));
          // Fill cells.
          sheet.addCell(new jxl.write.Label(0, 1, "John"));
          sheet.addCell(new jxl.write.Label(1, 1, "Smith"));
          sheet.addCell(new jxl.write.Number(2, 1, 1.20));
          //Enter the result in the excel file.
          workbook.write();
          workbook.close();  
          System.out.println("Complete example."); 
          catch (IOException ex)
               System.out.println("Failed to create file.");
          catch (WriteException ex)
               System.out.println("Error writing file.");
Best Regards,
Jennifer Lohan.

Similar Messages

  • Where is a good place/path/directory to create the catalogue for Lightroom 5 ?

    Hi there,
    Can I know where is the most proper/efficient and proper place/path/directory to create the catalogue for Lightroom 5?
    Thanks

    99jon wrote:
    The default is the Pictures folder but its a personal choice. Some users keep the catalog on an external hard drive so that it can be shared between desktop and laptop computers.
    Thanks 99Jon,
    I am new to Lightroom.
    Can I know what is this Catalogue folder for ?
    Do you create a new catalogue for every timelapse project or do you put the pictures of all timelapse project into the same catalogue ?
    Thanks

  • Downloads used to open after download. NOw they just end up in the download folder and I have to go to the folder to find it and open it. I did not change seettings, maybe an update changed it? I cannot find a way to change this in settings.

    Downloads used to open after download. NOw they just end up in the download folder and I have to go to the folder to find it and open it. I did not change seettings, maybe an update changed it? I cannot find a way to change this in settings.
    == This happened ==
    Every time Firefox opened
    == A week or two ago. Not sure if result of most recent update.

    Downloads used to open after download. NOw they just end up in the download folder and I have to go to the folder to find it and open it. I did not change seettings, maybe an update changed it? I cannot find a way to change this in settings.
    == This happened ==
    Every time Firefox opened
    == A week or two ago. Not sure if result of most recent update.

  • Itunes doesn't list all of my recent podcasts. My show is Black Tribbles and it only shows episodes through March 2013, however we do at least two shows a week and they aren't listed. The feed works because the show update to my computer. Help please.

    Itunes doesn't list all of my recent podcasts. My show is Black Tribbles and it only shows episodes through March 2013, however we do at least two shows a week and they aren't listed. The feed works because the show update to my computer. Help please.

    Your feed is at http://blacktribbles.podomatic.com/rss2.xml
    When subscribed to in iTunes the recent episodes show, but the Store hasn't updated for some time.
    There appears to be an issue with the feed. In the episode 'WRESTLING MARCH MADNESS: Final Bracket & Championship' of 31st March you will find in the 'description' tag the following line:
    4. KURT ANGLE
    At the end of this line is an invisible character which seems to be wrecking the feed - although it works OK when suscribing in iTunes it won't load in a browser (and I also found the feed very slow to load, which won't help matters with the Store)
    This sort of thing usually happens when you paste text in from a word processing application and manage to include one of the invisible control characters. I don't know how easy it will be do do it in Podomatic but you should delete that entire line and retype it to remove this charter.
    You should keep an eye on the time it takes the feed to be accessed - if there is a long enough delay (and it was quite some seconds when I tried) the Store may well timeout and fail to read it. At the moment it's showing a cached version from the last time it was able to read it.

  • I just recently downloaded iTunes and whenever I try to access the store It says "iTunes could not connect to the iTunes Store. An unknown error occurred (0x80096004)

    I just recently downloaded iTunes and whenever I try to access the store It says "iTunes could not connect to the iTunes Store. An unknown error occurred (0x80096004). I have windows xp and it's running on service pack 2. I have downloaded and redownloaded iTunes many times. I'm getting very frustrated!  Please help!

    I have the same error for Windows Vista.  I read all the community posts and followed the suggested fixes including numerous uninstalls and installs, clearing cache, choosing various SSL TL options, turning off all spyware and nothing has worked.  My internet works fine for all my other programs so not sure what is going on with Itunes.  I will not buy anymore products through
    Apple Itunes.

  • HT1222 Last time I did an update...I lost most of my music...thousands of songs and had to reinstall them!!!!  I am scared as **** to do another update!!  I have radio shows to do and can't afford to spend the time with this.  Help anyone?

    Last time I did an update...I lost most of my music...thousands of songs and had to reinstall them!!!!  I am scared as **** to do another update!!  I have radio shows to do and can't afford to spend the time with this.  Help anyone?

    A bit late for this advice now, but hopefully you'll know what to do next time.
    Empty/corrupt library after upgrade/crash
    Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't lose a thing or need to do any further housekeeping. In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
    See iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.
    When you get it all working make a backup!
    tt2

  • I have Elements 10 and every time I go to open a file in the editor it shows its thinking and then it just shuts down the entire program. I have a big wedding I am working on and lots of other sessions. Please PLEASE help!!!!

    I have Elements 10 and every time I go to open a file in the editor it shows its thinking and then it just shuts down the entire program. I have a big wedding I am working on and lots of other sessions. Please PLEASE help!!!!

    And you are quite persistent, Menu Boy, in offering pernickety and pointless prattle, in response to a "support page" on iPad's buggy Pages App.
    Let's summarise, for those reviewing this threadless thread for app support..
    Mobile pages works reliably for simple docs, especially creating letters and Menus for Microsoft's Kindy canteen (even on special days with nice big pictures).
    When importing more complex docs and/or working with larger creations, it is prone to randomly corrupting files upon re-opening, along similar lines as Word (running on a PC).
    So, Menu Boy, do they let you sneak into classes every now and then? What is the secret to their training? "Say after me, if any I.T. product works just some of the time, that's a job well done, and if something randomly stops working, we call that the user's fault... And if they complain, we call them names."

  • My canon sx120IS continues to show low batter and shuts off even after changing the batteries.

    My canon sx120 is  continues to show low battery and shuts off even after changing the batteries.  Any suggestions? Do I need to send it for repair somewhere, and if so, where?

    Hi LB!
    Thank you for posting on our forum!
    Try cleaning the electrical contacts on the camera and the batteries using a soft microfiber cleaning cloth.  If the same warning still displays, then the camera will need to be serviced.  To start the repair process, you'll need to complete a Repair Request on our website.
    If the camera is more than a year old, you may participate in the Canon Loyalty Program instead.  The Canon Loyalty Program option allows you to replace your current camera for a discounted fee, plus shipping.  The original non-functioning camera would then be returned to Canon USA for recycling using a prepaid shipping label that would be provided.  
    If you would like to take part in this option, please call our Sales Department at (800) OK CANON (800-652-2666) seven days a week, 8am to Midnight.  Let them know you have been working with online support and the Canon Loyalty Program was offered.  Be sure to have your serial number for your camera at the time of your call.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • HT3209 why does my movie rental download stop and reload just before it completes the download. I've tried 4 times now after waiting hours for the download. Ugh!

    why does my movie rental download stop and reload just before it completes the download. I've tried 4 times now after waiting hours for the download. Ugh!

    This Apple article might help ya out -> iTunes Store: "Error (-50)" when downloading purchased content
    Try following along with the article and deleting the cached downloads, then try again.

  • ATV doesn't show iTunes playlists and doesn't play them using the Remote app

    Hello
    Using ATV3 with the latest software version and it is connected to the iTunes library (also latest version) on my Mac Mini.
    When I go to Computers on the ATV I can see the content of the iTunes and am able to play both Music and Vidoes however I don't see the playlists on iTunes there. On the ATV configuration it is configured to Show playlists -> All but still no Playlists appearing at the top of my movie and TV show listings section.
    When I connect to the ATV using the Remote app on the iPhone and go to Computers there I do see the playlists but unable to play the ones with Vidoes just music.
    Any ideas what would cause these problems...?

    log into my library through more > computers where? on the Remote? This is exactly what i'm doing, I can see the content of my library there but I can't play movies from there.
    Re: ATV doesn't show iTunes playlists and doesn't play them using the Remote app 

  • Since installing Lion and moving to icloud, iCal won't let me click 'SHOW NOTIFICATIONS' anymore and has 'greyyed' it out on the menu :( It's important I see the notifications to see who has accepted or declined the invitations I send out. Can anyone hel

    Since installing Lion and moving to icloud, iCal won't let me click 'SHOW NOTIFICATIONS' anymore and has 'greyyed' it out on the menu It's important I see the notifications to see who has accepted or declined the invitations I send out. Can anyone help??

    I just updated to Lion and am having the same problem since moving to the cloud. iCal won't let me click on SHOW NOTIFICATIONS. It is greyyed it on the menu. Any advice is much appreciated. Thank you in advance!

  • HT1491 I've tried downloading 3 seprate songs thur iTunes on my iPhone 4S and every time it says download incomplete and ask to retry but continues the say message. I've restarted my phone, checked internet connection, closed out of the app, etc.

    I've tried downloading 3 seprate songs thur iTunes on my iPhone 4S and every time it says download incomplete and ask to retry but continues the same message. I've restarted my phone, checked internet connection, closed out of the app, etc.

    Hello Bdev15,
    I would be concerned too if the songs I purchased from iTunes were not downloading to my iPhone. You have taken some great troubleshooting steps already, and thank you for providing the details of the steps you too.  I have a few additional suggestions to get it downloaded to your iPhone.
    First, I recommend checking to see if the download was interrupted:
    If your download was interrupted using your iPhone, iPad, or iPod touch
    From the Home screen, tap the iTunes app.
    For iPhone or iPod touch, tap More > Downloads. For iPad, tap Downloads.
    Enter your account name and password if prompted.
    Tap the blue download arrow to resume.
    iTunes: How to resume interrupted iTunes Store downloads
    http://support.apple.com/kb/ht1725
    If the songs still do not download, next I recommend downloading the songs when connected to another network.  For example, if you are using the cellular network, you could switch to Wi-Fi, or you could try an alternate Wi-Fi network.  Follow the steps in the section titled "iPhone, iPad, or iPod touch > Music" in the article below to download the songs:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/ht2519
    If you are still not able to download the songs, you can report an issue with these purchases using the steps in this article:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    http://support.apple.com/kb/ht1933
    Best,
    Sheila M.

  • My iPhone was downloading iOS8 and it has been frozen on the loading screen for 5 hours

    My iPhone was downloading iOS8 and it has been frozen on the loading screen for 5 hours, I have plugged it into my iMac but the iMac can't cancel the download without me typing in my password on my phone, which conveniently isn't working
    It won't power off or on or anything, it is just stuck on the white background with black apple sign!!

    Hi esmelicious,
    Welcome to the Apple Support Communities!
    I know it can be frustrating when you run into issues updating to the new iOS. In your specific situation, I would recommend placing your iPhone in what is called recovery rode and restore it from there. Please use the steps and information located in the attached link to restore using recovery mode.
    If you can't update or restore your iOS device
    http://support.apple.com/kb/HT1808
    Have a great day,
    Joe

  • I have upgraded Apple Aperture from version 2 to version 3 and I'm having a problem with the "Highlights and Shadows" adjustment. According to the user's manual, I should have access to an advanced disclosure triangle which would allow me to adjust mid co

    I have upgraded Apple Aperture from version 2 to version 3 and I'm having a problem with the "Highlights and Shadows" adjustment. According to the user's manual, I should have access to an advanced disclosure triangle which would allow me to adjust mid contrast, colour, radius, high tonal width and low tonal width.
    If anyone has any suggestions as to how to access this advanced section, I'd be most grateful.

    Hi David-
    The advanced adjustments in the Highlights & Shadows tool were combined into the "Mid Contrast" slider in Aperture 3.3 and later. If you have any images in your library that were processed in a version of Aperture before 3.3, there will be an Upgrade button in the Highlights & Shadows tool in the upper right, and the controls you asked about under the Advanced section. Clicking the Upgrade button will re-render the photo using the new version of Highlights & Shadows, and the Advanced section will be replaced with the new Mid Contrast slider. With the new version from 3.3 you probably don't need the Advanced slider, but if you want to use the older version you can download it from this page:
    http://www.apertureexpert.com/tips/2012/6/12/reclaim-the-legacy-highlights-shado ws-adjustment-in-aperture.html

  • Adobe Creative Cloud App does not show downloaded apps and shows "download error"

    I am not a full paying member just yet, and have been using Photoshop on trial for my graphic design courses. With the app, instead of showing me that my 30 day trial is over, I get a download error and contact customer support message. I have completely deleted and redownloaded the Creative Cloud App twice already, but am not sure how to fix this problem so I am still unable to download my free trials before purchase.
    How can I fix this problem?

    Hi Willi Adelberger,
    Please refer the kb: http://helpx.adobe.com/after-effects/kb/effects-launch-mac-os-109.html.
    Regards,
    Romit SInha

Maybe you are looking for