Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COM Automation on a Remote User
Message
De
08/09/2011 03:25:00
 
 
À
08/09/2011 03:19:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01522969
Message ID:
01522972
Vues:
36
Thomas, can you just give an example of the instruction i.e. would this be it?
  TOBJ_XLS = CREATEOBJECT( "Excel.Application", SYS(0) )
or do I need to extract the machine id or the user id from sys(0) or just pass the whole string?


>I'd try with sys(0) on Remote first, as there a ping with computername should succeed -
>permissions for such things in general being able to screw up scenarios...
>
>
>>Hi All,
>>
>>We have an application running on a server to which we allow users remote access via terminal services / remote desktop. Our application has a facility where it automate Excel to create and populate a spreadsheet with data. This is done via
>>
>>
>>  TOBJ_XLS = CREATEOBJECT( "Excel.Application" )
>>
>>
>>However, under terminal services / remote desktop this would instantiate Excel on the server and we obviously don't want that. We want the Excel to be instantiated on the client machine. Under VFP help I find this command:
>>
>>
>>  CREATEOBJECTEX(cCLSID | cPROGID, cComputerName [, cIID])
>>
>>
>>and, if I understand this correctly, it appears that this command can be used to instantiate an object reference to Excel on the user's machine. Is that right? If so, how do I determine the value of the parameters required? Does SYS(0) help me? Any advice very welcome.
>>
>>TIA
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform