PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WEBDEV 2024 → [WB20] Using Files on the PC of the user
[WB20] Using Files on the PC of the user
Started by ARV, May, 09 2018 9:52 PM - 2 replies
Registered member
498 messages
Popularité : +8 (8 votes)
Posted on May, 09 2018 - 9:52 PM
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
Registered member
1,623 messages
Popularité : +100 (114 votes)
Posted on May, 31 2018 - 4:40 PM
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.
Registered member
498 messages
Popularité : +8 (8 votes)
Posted on June, 13 2018 - 5:50 PM
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