Jump to content
uniGUI Discussion Forums
Sign in to follow this  
milton luiz

where can I find...?

Recommended Posts

How to get the path of a "download" folder by programming in unigui
 


How to get the path of a "download" folder by programming in unigui
 


HowHow to get the path of a "download" folder by programming in unigui?

Share this post


Link to post
Share on other sites

You can save uploaded files where you want, it is in your back end code.

Share this post


Link to post
Share on other sites

I would like to know how to find the path of the user's downlod folder when the action is performed to save a report in dpf on the user's computer using unigui.

in my computer: "C: \ user \ milton \ download \ relteste.pdf On users' web computers "C: \ ??????? \ download \ relteste.pdf

I would like to know how to find the path of the user's downlod folder when the action is performed to save a report in dpf on the user's computer using unigui. in my computer: "C: \ user \ milton \ download \ relteste.pdf On users' web computers "C: \ ??????? \ download \ relteste.pdf

Share this post


Link to post
Share on other sites

Hi,

 

If I understand correctly you, do you want to get the user's path where were saved the downloaded files?!

 

If yes, it's impossible I guess and why you need it ?

 

Best regards.

Share this post


Link to post
Share on other sites
I have a unigui web form that allows the user to download PDF file and generate the PDF for payment as per the code below, saving directly in the folder "DOWNLOADS" without showing anything to the user, this code already does. My problem is that each user will have a different path to the "DOWNLOADS" folder so I need to get the path to join with the name of the PDF file and save it in the downloads folder of the user's computer.

 

 

UniMainModule.frxPDFExport1.FileName: = name + '.pdf';

UniMainModule.frxPDFExport1.DefaultPath: = 'C: \ Users \ Milton \ Downloads';

UniMainModule.frxPDFExport1.ShowDialog = false;

UniMainModule.frxPDFExport1.ShowReport: = false;

UniMainModule.frxPDFExport1.ShowProgress: = false;

UniMainModule.frxPDFExport1.OverwritePrompt: = false;

UniMainModule.frxRelBoleto.PrepareReport ();

UniMainModule.frxRelBoleto.Export (UniMainModule.frxPDFExport1);

Share this post


Link to post
Share on other sites

You are thinking like a desktop programmer, the web does not work that way, you already thought if that was possible, any virus could download files on your computer without your permission, the pdf should be generated in a folder on the server, and shown to the user with An htmlframe component, see the demos folder has several examples of reports

Share this post


Link to post
Share on other sites
Sign in to follow this  

×