Jump to content


Photo

where can I find...?


  • Please log in to reply
7 replies to this topic

#1 milton luiz

milton luiz

    Member

  • uniGUI Subscriber
  • PipPip
  • 15 posts

Posted 30 January 2017 - 03:13 PM

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?

  • 0

#2 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3475 posts

Posted 30 January 2017 - 04:58 PM

Hi,

 

What do you mean?

Maybe do you mean uploadFolder ?!


  • 0

#3 mohammad

mohammad

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 683 posts
  • LocationKufur Kassem, Palestine

Posted 30 January 2017 - 05:00 PM

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

#4 milton luiz

milton luiz

    Member

  • uniGUI Subscriber
  • PipPip
  • 15 posts

Posted 30 January 2017 - 06:24 PM

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


  • 0

#5 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3475 posts

Posted 31 January 2017 - 05:45 AM

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.


  • 0

#6 milton luiz

milton luiz

    Member

  • uniGUI Subscriber
  • PipPip
  • 15 posts

Posted 31 January 2017 - 10:52 AM

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);

  • 0

#7 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 9829 posts

Posted 31 January 2017 - 08:59 PM

You can not save a file on a remote computer.


  • 0

#8 wilton_rad

wilton_rad

    Active Member

  • uniGUI Subscriber
  • PipPipPip
  • 66 posts

Posted 17 March 2017 - 06:37 PM

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


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users