PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WEBDEV 23 → [WB20] Using Files on the PC of the user
[WB20] Using Files on the PC of the user
Débuté par ARV, 09 mai 2018 21:52 - 2 réponses
Membre enregistré
225 messages
Posté le 09 mai 2018 - 21:52
Hi

Theres a way to do this?
Because I need to open a .doc on the computer of the user and then print that document, all of the codes I see of PcSoft always point to the server of the app, and it's not that I want to do.

something like this:
Click on a button
From code I know the name of the doc and the path and then I search on the PC of the user
Execute another desktop app to open the file and then print



or:
click on button
search the path and file of the PC of the user
print the document


I seach everything on PCSoft Documentation but I haven't do the thing I want to do

is it possible?
Best Regards
Jose
Membre enregistré
766 messages
Popularité : +3 (3 votes)
Posté le 31 mai 2018 - 16:40
Hey

If you know the exact path, you'll have to this in browser code (not in server code) :
BrowserOpen("file:///<path_to_my_file>")


ex :
BrowserOpen("file:///d:/MyFiles/MyDoc.doc")


This SHOULD work.. I didn't try it.
Membre enregistré
225 messages
Posté le 13 juin 2018 - 17:50
Hi François C.

sorry for the late respond

I tried to use the code you provide me and the only thing this code do is open a new tab on the browser, in this case a blank one.

thanks for your help, maybe with the Version of 23 I can solve this problem I hope so for now I will keep searching for the 20ver.

--
Best Regards
Jose