opening instance of excel through asp

Ask a Question related to ASP, Design and Development.

  1. #1

    Default opening instance of excel through asp

    when i try to open an excel spreadsheet using the
    following code, the process just hangs IF the spreadsheet
    contains macros:

    Set objXls = CreateObject("Excel.Application")
    objXls.DisplayAlerts = False
    objXls.Visible = False
    objXls.Workbooks.Open my_excel_path '<-- hangs here

    this worked on iis4, but since moving this to iis5 it
    fails under the aformentioned circumstances. my guess is
    that the macro security has something to do with it as a
    dialog box will pop up if macro security is set to medium,
    but i'm not sure this is really the problem. if it was,
    what profile should change the macro security on the
    server? when task manager is opened on the server to see
    the hanging task, it shows SYSTEM as the process owner...

    any ideas??? thanks!

    atoi Guest

  2. Similar Questions and Discussions

    1. separate Instance of acrobat on opening a pdf document
      hi guys, is there any option in sdk to set a separate instance of acrobat ? the reason is that i set a global variable for using or not my plugin...
    2. Prevent Excel from opening in browser
      I've got an intranet application that presents a list of files in sort of a 'central repository' web page. Each file is an href in the form <a...
    3. code for opening excel
      Hi, Does anybody know some code that opens a spreadsheet in excel rather than the browser? If possible something that can be used with...
    4. Excel opening slowly
      Try turning off the response buffer and see if that makes any difference. <% Response.Buffer = False Response.ContentType =...
    5. Excel Slow in opening
      All, I am using the ASP code below to save some data from a SQL Server database via ADO as an Excel spreadsheet strReportName =...
  3. #2

    Default Re: opening instance of excel through asp

    Are you running this code on the server? If so, this is ill-advised by
    Microsoft. But, should you want to do this, run the code as vbs on your
    machine. You should see an error.

    Ray at work



    "atoi" <anonymous@discussions.microsoft.com> wrote in message
    news:01a801c39415$ace1d050$a401280a@phx.gbl...
    > when i try to open an excel spreadsheet using the
    > following code, the process just hangs IF the spreadsheet
    > contains macros:
    >
    > Set objXls = CreateObject("Excel.Application")
    > objXls.DisplayAlerts = False
    > objXls.Visible = False
    > objXls.Workbooks.Open my_excel_path '<-- hangs here
    >
    > this worked on iis4, but since moving this to iis5 it
    > fails under the aformentioned circumstances. my guess is
    > that the macro security has something to do with it as a
    > dialog box will pop up if macro security is set to medium,
    > but i'm not sure this is really the problem. if it was,
    > what profile should change the macro security on the
    > server? when task manager is opened on the server to see
    > the hanging task, it shows SYSTEM as the process owner...
    >
    > any ideas??? thanks!
    >

    Ray at Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139