Hello, I want your help for a little thing. It turns out that we have a field called "Information" on, clicking, going to windows explorer and looks for a pdf we want to associate. This is the code in OnAssistEdit.
ocxFile.Filter :='*. pdf ';
ocxFile.DefaultExt :='*. pdf ';
ocxFile.ShowOpen;
IF (ocxFile.FileName <>'') THEN
"Information": = ocxFile.FileName;
Then we put a little button next to it does is open the pdf. that we have associated. The OnPush code is as follows:
IF ( "Information" <>'') THEN
HYPERLINK ( "Information")
ELSE
MESSAGE ( 'No data');
The problem is that if in "My Computer" I have no network folder as a unit where the information is doesn't opens the pdf. I wonder as I make link whom the information may do this by going to "My Network Places" / my domain / server main / folder (it can) but that they can access without having to open the network drive installed "My Computer".
May be is matter of the ocx, but I didn't put it and I don't know how it works.
Sorry if I have not explained well.
Thanks in advance
0
Comments
Thanks.
Declare: Var1 as Automation -> 'Windows Script Host Object Model'.FileSystemObject
Declare: Var2 as Automation -> 'Windows Script Host Object Model'.Drive
Then:
Var2 := Var1.GetDrive('Z:\');//<-Your Drive Here
MESSAGE(Var2.ShareName);
This should get you started on how to make the path...
Thanks.
Thanks.
A user selects a file and you store somewhere the filename in the form 'Z:\folder\file.ext'
When another user tries to open the file it can't be found since the user does not have the same folder mapped.
Have I understood the issue correctly?
If so, then you should use my previous code to get the "real" folder location before storing it...
Is this your case?
I'll try your code then.
Thanks for help.