Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel instances
Message
De
22/09/2007 04:45:31
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
21/09/2007 20:07:07
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
01256059
Message ID:
01256070
Vues:
7
>When Automating Excel, my framework takes care of some details. The one I am concerned about right not is that it will re-use an existing Excel instance, instead of re-opening Excel.
>
>Now, I was considering to at change this, or perhaps give the user the option, since re-using Excel may sometimes cause interference. For instance, the user has an open dialog in Excel - and a new spreadsheet can't be opened. Also, Automation seems to be quite a bit faster if Excel is invisible (and only made visible later).
>
>My main worry is this: IF I do this proposed change, will it consume much more system resources? Especially RAM, I would guess.
>
>TIA,
>
>Hilmar.

Hilmar,
I don't suggest using existing Excel instances but reopening. Using existing instance doesn't only have problem of dialogs. User might be closing excel just at that moment for example which would take away both and cause maybe C..5 errors.
I think it's a myth Excel would be faster if it's invisible. My experience shows it's the reverse.
PS: Creating new instances would use more RAM.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform