Results 1 to 5 of 5
  1. #1
    wickedrahul9 is offline Member
    Join Date
    Jul 2008
    Posts
    8
    Rep Power
    0

    Question Not able to generate excel file locally

    Hi guys,
    My web server & database server are on 2 different systems. I am trying to generate excel file locally but the excel is getting generated on server. Output path is

    c:\\" + output + ".xls

    There is no problem anywhere else in code. If a user on any system is trying to generate excel file it's getting generated on server in C drive. But the excel should generate on local system of that particular user.

    Is this code fine?

    \\c:\\" + output + ".xls
    or
    /c:\\" + output + ".xls
    or something else. Anybody please let me know.

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    If you want to generate in the second machine, I mean on the user/client you have to do it on the user. Setting the path like above not make sense at all.

  3. #3
    wickedrahul9 is offline Member
    Join Date
    Jul 2008
    Posts
    8
    Rep Power
    0

    Default

    Quote Originally Posted by Eranga View Post
    If you want to generate in the second machine, I mean on the user/client you have to do it on the user. Setting the path like above not make sense at all.
    Then I think I"ll have to download the file which is getting created on server. Am I right?

  4. #4
    Eku
    Eku is offline Senior Member
    Join Date
    May 2008
    Location
    Makati, Philippines
    Posts
    234
    Rep Power
    7

    Default

    Yup, that is a much better approach. Let the user Download the file or you can use FTP. ^_^
    Mind only knows what lies near the heart, it alone sees the depth of the soul.

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by wickedrahul9 View Post
    Then I think I"ll have to download the file which is getting created on server. Am I right?
    Yes that's what you have to done. Use the way Eku explains in his last post. And don't use HTTP for this, it's not a good practice.

Similar Threads

  1. writing to a excel file from java program
    By priyankabhar in forum New To Java
    Replies: 15
    Last Post: 01-17-2014, 12:39 PM
  2. Generate a Class file
    By Daniel in forum New To Java
    Replies: 6
    Last Post: 04-20-2009, 05:37 AM
  3. Writing to excel file erasing existing formatting
    By jmHoekst in forum New To Java
    Replies: 1
    Last Post: 09-16-2008, 05:58 PM
  4. Generate Excel Report from a HTML table
    By Sudha in forum New To Java
    Replies: 0
    Last Post: 02-13-2008, 08:24 PM
  5. Generate an executable file
    By romina in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 05:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •