NetTalk Central

Author Topic: OfficeInside in NT WebServer  (Read 3451 times)

de la Rosa

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • Email
OfficeInside in NT WebServer
« 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



Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: OfficeInside in NT WebServer
« Reply #1 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


de la Rosa

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • Email
Re: OfficeInside in NT WebServer
« Reply #2 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