Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > Save files from Server to Client

Forum

Search UsersRules
Save files from Server to Client
#1
Just came
Points:: 0
Joined:: Feb 1, 2018

Hello!

I am trying to resolve a situation like this: when the user, in the web-clinet, press a button a spreadsheet document will be generated in background and when it is done the user will select the path to save it on his PC with the FileDialog. I have tryied with BeginCopyingFile, MoveFile but is not working. If I use the standard command of the spreadhsheet it wil freeze the browser when the document is too big (and here is more time to wait to display it on the interface) and I want to avoid this case.

Please tell me if you know.

Profile
#2
Active user
Points:: 0
Joined:: Mar 10, 2017

Hello!

Can you please clarify? By generating in background do you mean that the report is generated by the scheduled job or is generated interactive by user but on the server side ?

Kind regards,
Alex

Profile
#3
Just came
Points:: 0
Joined:: Feb 1, 2018

Hello!
Sorry for the late reply.

I will try to explain more clearly.

When I press a button on a list form, I am launching a background job. This background job selects line from a information register and generates a spreadsheet with the datas. After it is done processing it writes the spreadsheet on a directory on the server. After witeing the file, I am trying with a filedialog to get a root from a user's computer(a local computer) and do a BeginCopyingFile with the path of the document on the server and the path from the user's local computer, to transfer the document from the server directory to the user's directory. Thisshould be done from the web client.
I have set the file extension correctly on my computer and tryied from Chrome/Mozille/IE but it would not save the doc from the server to my local path specified. It just gives "Error copying file.".

Please let me know if it is still not very clear. :)

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.