Excel file is not deleting from server

Hello expert,
                   I am creating excel file using jxl and in that file i am inserting table data. now the problem is that file is not deleting from the server.please give some suggestion so that i can delete from server .
Thanks and Regards
Kumar Rakesh.
IWDCachedWebResource cachedExcelResource = null;
      try
          String date = DateConvert(new Date(System.currentTimeMillis()).toString());
          String user_ex_form= wdContext.currentContextElement().getUser_excel_cfrom();
          String fileName = "CFormStatus"dateuser_ex_form+".xls";
          File f = new File(fileName);
          WritableWorkbook workbook =     Workbook.createWorkbook(f);
          WritableFont red = new WritableFont(WritableFont.ARIAL,     WritableFont.DEFAULT_POINT_SIZE, WritableFont.NO_BOLD, false, UnderlineStyle.SINGLE, Colour.RED);
          WritableCellFormat redFormat = new WritableCellFormat(red);
          WritableFont blue = new WritableFont(WritableFont.ARIAL, WritableFont.DEFAULT_POINT_SIZE, WritableFont.NO_BOLD, false, UnderlineStyle.NO_UNDERLINE, Colour.BLUE);
          WritableCellFormat blueFormat = new WritableCellFormat(blue);
          WritableSheet sheet = workbook.createSheet("C Form Status", 0);
workbook.setColourRGB(Colour.LIME, 0xff, 0, 0);
          workbook.write();
          FileInputStream excelCSVFile = new FileInputStream(f);
          cachedExcelResource =getCachedWebResource(excelCSVFile,fileName,
                                    WDWebResourceType.getWebResourceType("xls","application/ms-excel"));
          wdContext.currentContextElement().setRESOURCE(cachedExcelResource);
          workbook.close();
          f.delete();

Hi,
I just worked on same functionality where i used a button to create excel file with context data and save in local system.
Use the following code under a button, So on click of button you can directly get the excel file saved in to your desktop without saving on the server
String ordcaeno="000"sysdate".XLS";
String str = "";
for(int j = 0; j< wdContext.nodeZflash_File().size(); j++)
str =str"\n" wdContext.node<<ABC_File().getABC_FileElementAt(j).getRecord();
try
IWDCachedWebResource resource = WDWebResource.getWebResource
  str.getBytes("UTF-8"), WDWebResourceType.UNKNOWN
resource.setResourceName(ordcaeno);
IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(resource.getUrl(WDFileDownloadBehaviour.ALLOW_SAVE.ordinal()),
resource.getResourceName()); 
window.show();
catch(Exception ex)
wdComponentAPI.getMessageManager().reportException( new WDNonFatalException(ex), false );
Regards
Raghu

Similar Messages

  • Deleted pop mail not deleted from server

    mail retrieved from pop acct & deleted, and trash emptied, is not deleted from server, so it gets re-retrieved.
    settings>delete from server> when removed from inbox, but the msgs are still on the server as viewed from the isp's web interface.

    been there, done that;-}
    Incoming mail server (POP3): pop.verizon.net
    Incoming Server Port Numbers: 995
    Outgoing mail server (SMTP): smtp.verizon.net
    Outgoing Server Port Numbers: 465
    it seems mail.app is designed for imap, in that msgs can't be deleted when d/l'd by default, but must be config'd "when moved from inbox"

  • IMAP option to not delete from server OR recommend alternate mail app?

    Using POP in Windows computer and IMAP on iphone.
    In the iphone, POP has the opton to "delete from server: never"
    There seems no way to accomplish this in the stock mail app when using IMAP ?
    Using POP on the iphone is not an option due to the longstanding issue of the Apple mail apps not sending a  proper termination signal back. The mailbox remains locked until the server times it out for inactivity and cleans up the stale lock after 10 minutes. The result is "wrong password" on the computer if it then tries to retrieve during that period. It's a feature of POP by design to use a lock to prevent corruption caused by simultaneous access to the mailbox. BUT, BB,Android,Windows all handle this correctly so that their POP transaction (and the mailbox lock) only lasts seconds! Only ever see this persistent lock with Apple mail clients
    The user likes to keep his phone inbox clean, he will delete messages as he deals with them as well as messages he is postponing to deal with on computer later.
    Moving messages to a 'later' folder won't help, as that 'later' folder will not be available thru POP (for the computer)
    They also don't want to use IMAP on the computer because they don't want their communications stored on the server any longer than necessary.
    Can anyone recommend:
    - Windows IMAP client which downloads all and keeps a local copy of inbox which does not synch with server inbox.
    - Alternate mail app for iphone which allows "delete from device only // never delete from server "

    That's not how IMAP works. If you want to keep the inbox clean, but not delete the messages, create folders and move the messages into them for later review.

  • HT2480 email not deleting from server when deleted from ipad

    messages are not being deleted from server when deleted from ipad

    Hello,
    You need to tell us what the email service is. BES? BIS -- and, if so, what email provider? If BES, then see your BES admins. If BIS, then expect it to function in accordance with this KB.
    Otherwise, you can try the following steps, in order, even if they seem redundant to what you have already tried (steps 1 and 2 each should result in a message coming to your BB):
    1) Register HRT
    Homescreen > Options > Advanced Options > Host Routing Table > (it does not matter which line is current) > Register Now
    2) Resend Service Books
    KB02830 Send the service books for the BlackBerry Internet Service
    3) Batt Pull Reboot
    Anytime random strange behavior or sluggishness creeps in, the first thing to do is a battery pop reboot. With power ON, remove the back cover and pull out the battery. Wait about a minute then replace the battery and cover. Power up and wait patiently through the long reboot -- ~5 minutes. See if things have returned to good operation. Like all computing devices, BB's suffer from memory leaks and such...with a hard reboot being the best cure.
    Hopefully that will get things going again for you! If not, then you should try deleting and re-adding your BIS conduits for the affected email accounts.
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Some messages not deleted from server after downloading

    We have about 1,000 mail users, all of whom use Apple's Mail app to retrieve their mail using POP. We've seen users' mailboxes on the server where not all messages have been deleted after downloading, even though the user's app has been configured to delete messages immediately after downloading. The strange thing is, undeleted messages appear in large non-contiguous blocks of time. Like there will be 100 messages from January, then 250 from July, and so forth.
    Has anyone seen this behavior? Can anyone help me a) understand why this is happening and b) how to fix it? Thanks in advance to whoever can help.

    Thanks- but I don't want the messages deleted when they are deleted from my Mac, I want them deleted when I download them. However, I just found the setting so I'm fine.
    Thanks, again!
    set delete from server when deleted from my mac in mail preferences
    And if you want you could tell us a little more - like what type of account, what settings, etc

  • Datafiles, logfiles, control files, etc. not deleted from OS

    Hello,
    I used the Database Configuration Assistant to create a database(v9.2) and at a later time deleted the database also using the DBCA. Why aren't the datafiles, control files, logfiles, etc. deleted from the Windows OS files. Doesn't the DBCA delete most of the files associated with the database being deleted. Do I have to restart the Windows OS for the deletion of the OS files to take effect. Thank you in advance.

    the Windows OS files. Doesn't the DBCA delete most
    of the files associated with the database being
    deleted. Do I have to restart the Windows OS for the
    deletion of the OS files to take effect. Thank you
    in advance.Yes, the DBCA is supposed to remove the various files. It sounds like an ownership/permissions problem.

  • Spam/Junk not deleting from server

    Up until recently I have been using Entourage 2004 to view my half dozen different email accounts (some POP, some IMAP). I have a work desktop G5, a traveling MacBookPro and a PowerBook G4 at home. On one particular account the junk has begun flooding in.
    In Entourage, I simply clicked on the envelope icon, clicked "delete from server" then deleted it from whichever computer I was running, and never again saw the offending email.
    I switched to Mail in Leopard because I felt iSync would be a major help in bringing all computers together. I would have copies of sent mail as well as received mail, and so on.
    The problem is: when I delete junk from one computer - it's still there waiting for me on another computer. I know this because if I run Entourage again, all the junk comes pouring back down the line.
    How can I delete selected stuff from the servers?
    Cheers,
    SNaP!

    I think more of a Mail application issue or a Mail application issue only.
    This doesn't resolve the problem, but although a POP account can be accessed with more than one email client, a POP account is designed to be accessed with a single email client only. This isn't a problem with an IMAP account which is designed for this very thing.
    Which Comcast app are you referring to? Is there a Comcast app via the iTunes app store? If so and you want to ensure messages are deleted from the server after being accessed with your iPhone, you need to use the Comcast app.

  • Project Files Not Deleted From Server

    Thank you in advance if you can help.
    Application: Robohelp6/Server6 and earlier versions. Don't
    know about 7 or 8.
    Output: Webhelp Pro
    Background: Whenever I delete a topic from the publisher and
    publisher a project to our server, the htm file for that topic is
    not deleted. I started calling them "ghost" files because they
    should be dead and gone. Some users access these files following a
    direct URL hence providing them with outdated information. They
    don't normally appear in the application search results but
    hyperlinks to them work until the file is removed.
    I've tried different publishing options to get them removed.
    Check for delete files and republish entire project. The only way I
    found to get rid of them is to delete the file from the server
    manually. Another option is to delete the project from the server
    and republish everything.
    Question: Can anyone explain what is going on and if there is
    something I can to make sure they are automatically deleted when
    publishing.

    Welcome to our community, David
    I don't believe anything in RoboHelp publishing will actually
    ever delete files. It's my experience that any file that needs to
    be removed from the server has to be accomplished manually.
    So I know this calls into question what exactly does the
    option "Check for deleted files" actually DO?" Am I right?
    Here's the deal. Upon publishing, a list is created. The
    first round takes longest as it is also creating the list. When you
    publish again, files are compared to the list.
    Need updating? Nope. Skip it and move on.
    Need updating? Yes. Copy and replace the file.
    The option to check for deleted files slows the process. The
    process then becomes:
    Need updating? Nope. Does it still exist on server? Yes. Skip
    it and move on.
    Need updating? Yes. Copy and replace the file.
    Need updating? Nope. Does it still exist on server? Nope.
    Copy the file and move on.
    Hopefully that helps you better understand what is happening.
    Cheers... Rick

  • IPad Mail not deleting from server

    Does anyone else have this problem? I have my mail accounts set so that they should delete emails from the server as soon as they are deleted from ipad. It doesn't seem to work though.. as I just came back home after a trip and all the dozens of email messages came flooding into my Mac inbox
    Does anyone have any suggestions? Do I also need to delete the mail on the ipad's mail trash perhaps...

    SO SORRY for not responding.... For some reason I have not been getting emails saying there are replies to this topic.
    As it happened, I thought I had solved the problem, but I haven't...
    In the settings for my email accounts, I am offered the option of my emails being deleted from their server as soon as I delete them from the iPad email inbox. However, when I choose this option, they are not deleted.
    DAVID I do not have the setting that you describe available for my email accounts either... It seems that different setting options appear according to the nature of the email account that is being set up.
    It is clear to me that the way I have set things up is correct for what I want though, as it's very clearly stated in Settings... It's just not happening....

  • Comcast email not deleting from server

    Under the "advanced" section I have my email set to remove from server when removed from inbox. Well, this does not happen! Is this an ATT issue or a Comcast issue?
    If I use the Comcast app and delete email, it IS deleted from the server.
    Thanks!

    I think more of a Mail application issue or a Mail application issue only.
    This doesn't resolve the problem, but although a POP account can be accessed with more than one email client, a POP account is designed to be accessed with a single email client only. This isn't a problem with an IMAP account which is designed for this very thing.
    Which Comcast app are you referring to? Is there a Comcast app via the iTunes app store? If so and you want to ensure messages are deleted from the server after being accessed with your iPhone, you need to use the Comcast app.

  • Thunderbolt-email not deleting from server

    I checked my settings and the box is checked to delete messages from the server once they are deleted off of my phone.  This problem is just in the past week or so.  I delete them and as soon as email refreshes again they are back.  HELP!

    ok I deleted and reinstalled the email account and that did not work.  I then logged into web mail and deleted the items from the server.  I then went to the TB and under settings deleted all data from the mail app.  I then set the email account back up and no longer seem to be experiencing the issue.  If you are having this issue and need a clearer explanation please let me know.  Thanks!

  • Reading the data from excel file which is in application server.

    Hi,
    Iam trying to read the data from excel file which is in application server.
    I tried using the function module ALSM_EXCEL_TO_INTERNAL_TABLE. But it didn't work.
    I tried just reading using open data set and read data set it is giving junk characters.
    Please suggest me if you have any solution.
    Best Regards,
    Brahma Reddy

    Hi Narendra,
    Please see the below code I have written
    OPEN DATASET pa_sfile for INPUT in text mode ENCODING  DEFAULT MESSAGE wf_mess.
    CHECK sy-subrc = 0.
    DO.
    READ DATASET pa_sfile INTO wf_string.
    IF sy-subrc <> 0.
    EXIT.
    else.
    split wf_string at wl_# into wf_field1 wf_field2 wa_upload-field3
    wa_upload-field4 wa_upload-field5 wa_upload-field6 wa_upload-field7 wa_upload-field8
    wa_upload-field9 wa_upload-field10 wa_upload-field11 wa_upload-field12 wa_upload-field13
    wa_upload-field14 wa_upload-field15 wa_upload-field16 wa_upload-field17 wa_upload-field18
    wa_upload-field19 wa_upload-field20 wa_upload-field21 wa_upload-field22 wa_upload-field23
    wa_upload-field24 wa_upload-field25 wa_upload-field26 wa_upload-field27 wa_upload-field28
    wa_upload-field29 wa_upload-field30 wa_upload-field31 wa_upload-field32 wa_upload-field33
    wa_upload-field34 wa_upload-field35 wa_upload-field36 .
    wa_upload-field1 = wf_field1.
    wa_upload-field2 = wf_field2.
    append wa_upload to int_upload.
    clear wa_upload.
    ENDIF.
    ENDDO.
    CLOSE DATASET pa_sfile.
    Please note Iam using ECC5.0 and it is not allowing me to declare wl_# as x as in your code.
    Also if Iam using text mode I should use extension encoding etc.( Where as not in your case).
    Please suggest me any other way.
    Thanks for your help,
    Brahma Reddy

  • How to retrieve data from an Excel file which is located on server

    hi everybody,
                    I am using SAP NWDS 2004s .     
                I have done an application on how to export the table data into an Excel .
    Now i want to get the data from an Excel file which is located in server and display that data which is in excel in a View for example a Sample view in Webdynpro  .
    In Sample view i took a uielement textview to display the data ....   
    can any one help how to procced further
    Thanks in advance
    Madhavi

    Options to read Excel data to WebDynpro context
    Reading Excel Sheet from Java without using any Framework
    Reading Multiple Sheets of Excel Sheet from Java
    Few Threads
    How to Display the content of Excel file into Webdynpro Table
    Is it possible to upload data from excel file(.xls)
    Re: How to export the data as integer into excel sheet?
    regards
       Vinod

  • Please help! My Itunes says corrupt file and will not open (IMac 2010). I couldn't fix it by reinstalling so I moved it to trash. It will not delete from my trash as it is saying "Japanese.lproj" is in use. I can't delete or open to close it, what do I do

    Please help!
    My Itunes says there is a corrupt file and will not open (IMac 2010). I couldn't fix it by reinstalling ITunes so I moved ITunes to trash. It will not delete from my trash as it is saying "Japanese.lproj" is in use. I have never opened or used "Japanese.lproj". I can't delete ITunes or open ITunes to close the Japanese.lproj, what do I do? Thank you for any help you can provide..

    It will not delete from my trash as it is saying "Japanese.lproj" is in use. I have never opened or used "Japanese.lproj".
    Interesting. This sort of thing is more common on Windows systems. Taken at face value, one of the iTunes program files (one of the Japanese language resources) is damaged.
    I'd try running your Disk Utility over your startup disk. Does it find/repair any damage? If so can you empty your trash and reinstall your iTunes successfully now?

  • HT4864 my iCloud emails disappear on all my devices after about a week and I can't find where they have gone, none of the devices say to delete from server, I move my samsung note emails to trash after reading - no other accounts are deleted from other de

    My icloud email messages disappear on all my devices after about a week and I cannot locate them - not in archive on icloud.
    I use several devices to receive emails - imac, ipad, iphone and samsung galaxy note. I put all read emails to trash on samsung, ipad and iphone but keep on imac and wish to retain there for reference. All other accounts remain but icloud emails disappear. No devices say to delete from server. Can anyone please help?

    mazzaja wrote:
    I put all read emails to trash on samsung, ipad and iphone but keep on imac and wish to retain there for reference. All other accounts remain but icloud emails disappear. No devices say to delete from server.
    If this is your iCloud email account, whcn you delete an email from any of your devices, they are moved to the trash on all devices/computers, then the trash is automatically deleted after 30 days.  That's how IMAP accounts work.  You can't delete them from your device and keep it on the server because you are reading and deleting from the server itself.
    If you want to keep them on your Mac, you'll need to move them to a folder rather than deleting them.  When you do, they will be moved to the same folder on your other devices.

Maybe you are looking for

  • When i Boot up, why is "Preview" always open ?

    Hi, i know i dont need to do it, but when i shut down, i have been making sure that all the Programs i have been using are Shut Down, getting rid of the white dots in the Dock. I know that Finder is always there and cannot be Shut Down, but i Shut Do

  • Help and Mail search don't seem to be working properly in Mountain Lion.

    When i search for a keyword in mail and specify 'Entire Message', I don't get any results. Also, the OS X help function is not giving me any results because it says that it can't connect to the internet. The internet is connected and working normally

  • Java arrays - can you name the keys?

    i have 1 function that declares 2 ArrayLists of type String. They are the same size and the values are related. Let's call them A & B. I was hoping i could have my function return just 1 array, with the values of arraylist A being they keys of the re

  • SQL 2008 union all numeric column

    Hi guys, I'm struggling with an union all. I tried to union a column float with a null column: SELECT column 1, column 2, '' AS 'column 3' FROM table a UNION  SELECT column 1, column 2, column 3 FROM table b If column 3 is varchar everything ok, if (

  • IPod and videos will not open!

    I have tried a hard restart as well as a restore and still my iPod and my Videos will not open, along with a few other apps. Everything else seems to be fine, I am writing this on the iPad and it can still connect to iTunes as well as the app store!