Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
dan dan is offline
external usenet poster
 
Posts: 866
Default Launch Excel from the Web

Hello-- This question relates to problems when launching Excel from a link on
a web page.

SCENARIO: I have an Excel workbook with some pretty involved VBA code. The
code creates a budgeting and reporting application against an OLAP database.
A new requirement has come up to make this workbook available to around 300
users. To send the workbook to these users individually would become a
nightmare in maintenance and support. So, I have put the file on a shared
drive. Now, the powers that be want the workbook launched from a link on a
web page.

Here are my issues:

1) The code was not originally designed to run through a browser, so I plan
to have the link open the Excel application. Is there a way to have the
workbook opened from a link without it asking the user to "Open" or "Save"
the file?

2) Originally the workbook was an Excel Add-in (.XLA), so it never asked to
enable/disable macros. Now (because of the way new requirements are setup), I
need to have a "main menu" (my first sheet) with some buttons. Therefore it
prompts to enable/disable. I have thought about writing some type of LAUNCHER
in VB6 which opens the workbook, and compile as .EXE-- and have the link call
the launcher. Anyone have any thoughts or experience with this?

3) I have a menu that is created during Workbook_Open(). Problem is, that
during testing of the link (after opening Excel application and then the
Workbook), every thing is working fine except when I choose something from
the menu-- it trys to reopen the workbook from the server. I'm not sure why
this is happening. This does not happen if I launch Excel and the workbook
outside of the browser.

4) Any helpful links on deploying Excel or Excel on the Web??

Thanks for your help!

DAN
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 129
Default Launch Excel from the Web

Hi Dan,

I'm also interested in follow ups to your questions. I'll follow up as
best I can. Your milage may vary.

SCENARIO: I have an Excel workbook with some pretty involved VBA code. The
code creates a budgeting and reporting application against an OLAP database.
A new requirement has come up to make this workbook available to around 300
users. To send the workbook to these users individually would become a
nightmare in maintenance and support. So, I have put the file on a shared
drive. Now, the powers that be want the workbook launched from a link on a
web page.


I'm facing exactly the same issues.

You didn't mention what web server you're using, IIS or what? And also
what OS your server is running.

I fathom that the recommended Microsoft solution is to use Microsoft
Report Server.

My experience is that Report Server is a great solution, as far as
permissions are concerned, but that it's an unworkable solution if the
report has to have print regions, pivot tables, multiple sheets, or
charts.

The big selling points of Report Server are that other departments can
use it and that it' easy to create customizable entry points for
different reporting needs. Where I work managment want's to migrate to
Report Server, but when it comes to getting real Excel reports they are
still in denial about what it can't do. Oh yeah, it possible to send
query string parameters to a Report Server report and have it render a
Worksheet and it's also possible to create forms - but you can't count
on the validation to validate business rules (it can't be done).

Another approach, if you have Server 2003, is to recreate the Excel
application as web application via Sharepoint. You might be lucky and
discover that you use it's wizards to build forms and to render
Worksheets. The wizards can be customized to accept form parameters and
database settings and display worksheets. You can also build WebParts
to do ADO queries to a database. Personally, I have very little
experience going down this route so I can't recommend (one way or the
other) whether this is a good road to go down. My inclination is to
think this approach is limited similar to how I described Report Server
as being limited.


Here are my issues:

1) The code was not originally designed to run through a browser, so I plan
to have the link open the Excel application. Is there a way to have the
workbook opened from a link without it asking the user to "Open" or "Save"
the file?


Not that I know of.


2) Originally the workbook was an Excel Add-in (.XLA), so it never asked to
enable/disable macros. Now (because of the way new requirements are setup), I
need to have a "main menu" (my first sheet) with some buttons. Therefore it
prompts to enable/disable. I have thought about writing some type of LAUNCHER
in VB6 which opens the workbook, and compile as .EXE-- and have the link call
the launcher. Anyone have any thoughts or experience with this?


I once discovered a hack that allows a user to click on a link and
start up an application.
I recall posting on comp.lang.javascript but I couldn't find the post
just now using Google advaced search on my email address over various
keywords.

But to make a long story short. If you find something that works
there's a good chance that that solution will not work over all
dialects of Windows, and you may discover that after a SP upgrade the
solution might not work at all - because something that does this is a
security risk.

Also.

I googled microsoft.public.inetserver.iis and seen where someone
attempted to create a VB com object and to wrap Excel in it. They still
had the issue though of being prompted to save or open upon startup.


3) I have a menu that is created during Workbook_Open(). Problem is, that
during testing of the link (after opening Excel application and then the
Workbook), every thing is working fine except when I choose something from
the menu-- it trys to reopen the workbook from the server. I'm not sure why
this is happening. This does not happen if I launch Excel and the workbook
outside of the browser.


Well that makes me flash on something else. If you have users can
access the Workbook from Sharepoint. It should work just as it did when
everyone was running the Workbook from the shared drive.

4) Any helpful links on deploying Excel or Excel on the Web??


--------

I'm guessing but I think that you'll either have to stick with the
shared drive solution or that the solution will be to rewrite the
application in ASP.


--------

And oh yeah, since the application is an Excel Worksheet, have you
considered adding a new email distribution Worksheet in your local
AddIn and having Excel send the emails from a single Sub?

  #3   Report Post  
Posted to microsoft.public.excel.programming
dan dan is offline
external usenet poster
 
Posts: 866
Default Launch Excel from the Web

Thanks gimme. See my comments below.

" wrote:

You didn't mention what web server you're using, IIS or what? And also
what OS your server is running.

I fathom that the recommended Microsoft solution is to use Microsoft
Report Server.
...
Another approach, if you have Server 2003, is to recreate the Excel
application as web application via Sharepoint...


Yes, it would be nice to be able to consider more Microsoft solutions. The
web server is running Tomcat on Linux. Report Server, Sharepoint, etc. are
not an option at this point (politically, support wise, and project $$).

I googled microsoft.public.inetserver.iis and seen where someone
attempted to create a VB com object and to wrap Excel in it. They still
had the issue though of being prompted to save or open upon startup.


I thought I saw something out there. I'll post a solution if I find one.

I'm guessing but I think that you'll either have to stick with the
shared drive solution or that the solution will be to rewrite the
application in ASP.


That's what I'm afraid of :(


And oh yeah, since the application is an Excel Worksheet, have you
considered adding a new email distribution Worksheet in your local
AddIn and having Excel send the emails from a single Sub?


Have considered something like this, but this will not solve many
maintenance and support issues. If I go this route, I have considered writing
a Version Control utility (or is there free-ware or OpenSource on this??) to
help keep workbook changes in sync.

Thanks again!
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't launch Excel [email protected] Excel Discussion (Misc queries) 3 January 2nd 07 02:30 AM
How to launch one XLA from another on Excel launch levka Excel Programming 1 July 25th 05 04:22 AM
Want to launch Excel from C# app Stefani[_2_] Excel Programming 2 March 18th 05 05:44 PM
Macro launch - Button vs Manual launch , has different results. Wayne Excel Programming 4 February 23rd 05 11:33 AM
Excel No-Launch LarryP[_2_] Excel Programming 0 June 18th 04 02:30 PM


All times are GMT +1. The time now is 11:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"