NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: de la Rosa on September 11, 2020, 07:59:09 PM

Title: OfficeInside in NT WebServer
Post by: de la Rosa on September 11, 2020, 07:59:09 PM
Hi,

Is there a way for the "Choose file to upload" in Excel.Import() to get the file from the web app client workstation instead of the app server? Or whatever can be done to accomplish it?

Vic


Title: Re: OfficeInside in NT WebServer
Post by: Bruce on September 13, 2020, 11:35:20 PM
Hi Vic,

Choose File to Upload is a File Dialog. So no, that's not going to read the client machine.
And in fact if you call FileDialog on the server, it will open on the server - so will be invisible to the client anyway.

If you want the client to upload a file, then create a netwebform and put a File Upload field on it. That will let them pick a file from their local disk, and upload it to the server (where you can do anything you like with it).

In General though - Office Inside functionality is not recommended for a web server, without some very careful code. Specifically
a) Office would need to be installed on the server, in the same user profile as the Web Server and
b) ONLY one user at a time could make use of Office. Office is not a multi-user program.

cheers
Bruce

Title: Re: OfficeInside in NT WebServer
Post by: de la Rosa on September 17, 2020, 07:18:05 PM
Hi Bruce,

Ok, will try it out. I think the limitation is fine in this case as I only intend to have the administrator perform such operation.

Thanks agian,
Vic