×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

XFRX - Hyperlinks to local files - Anyone done this?

XFRX - Hyperlinks to local files - Anyone done this?

XFRX - Hyperlinks to local files - Anyone done this?

(OP)
I have been asked to supply a copy of the attachment data from one of my systems.
All the attachments remain in the file system, organised by originator.

In this instance there are probably something like half a million files - amounting to 60GB of data.

I would like to supply some of the meta data relating to the files in a VFP report, so that would have the
originators name, the title, the number and the revision of each document, and a list of the files related to it.

So far that all exists... I would like the report presented as a PDF on a drive along with the actual files and for the
recipient to be able to open the PDF, search for the title or whatever, click on the file name and have the file open (mostly they are PDFs too).

I use XFRX to create the PDF and I've been able to open a hyperlink to a web page, but not a local file... it might be a security restriction?

Is this doable?

I could write a VFP app to do it, or perhaps do it in an excel file... but the pdf approach seems very open and pretty universal?

Regards

Griff
Keep Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.

RE: XFRX - Hyperlinks to local files - Anyone done this?

Griff,

Let me check that I have understood this. You are happy that you can create the PDFs. The PDFs are stored somewhere on your local or network file system (that is, not on a web server). And you want to provide a facility whereby your users can click on something within your application to open a given PDF on the screen. Is all that correct?

If so, why not simply create a label or button and place it on a form. In the click event, write code to ShellExecute() the PDF. The code would have to know where the PDF was stored, but wouldn't need to know which PDF reader the user has installed.

I've got something very similar in one my own applications: a form for searching and viewing archived invoices, which are all stored as PDFs.

Apologies if I've misunderstood the requirement.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: XFRX - Hyperlinks to local files - Anyone done this?

(OP)
I can do that Mike, I want to hand over the files and a pdf with links in it that will open the relevant file from a structure under where the pdf is located.

This is just a nice to have - I'm only really required to supply the files, but with there being so many it seems 'a nice thing to do'.

I would prefer not to use an app, because I don't know what OS the recipient may have, Apple, Android or Windows.

Regards

Griff
Keep Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.

RE: XFRX - Hyperlinks to local files - Anyone done this?

Sorry, Griff. I should have read your post more carefully. You are saying that you want to create a PDF which itself contains embedded links to the actual PDFs that the user will view. I can see the benefit of that. If nothing else, as you say, it would be OS-independent.

It's easy enough to embed the links into the main PDF. As far as XFRX is concerned, they would just be bits of text in your report file. Given that the targets of the links are in your local file system, the format would be something like this:

file:///C:/MyPDFFolder/MyPDF.PDF

But whether the user will be able to follow the link to open the PDF is another matter. I would think that would depend on the PDF viewer they are using. The only viewer I have on my system to experiment with at the moment is Sumatra, and while that recognises the link for what it is, it doesn't seem to respond to being clicked, as far as I can see. Other PDF viewers might work differently.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: XFRX - Hyperlinks to local files - Anyone done this?

(OP)
Hi

This might be unusual, me making a suggestion to you, not deferring to your greater experience...

If you have a VFP report and take any text item (generally a field in a text box) and edit the 'other' property
there is a Comment section, XFRX reads the contents of this field and (their example) if you put this in it:

CODE

#UR A HREF="http://www.eqeus.com" 


Then clicking on that field in the PDF of the report will result in the default browser opening that site!

I have tried a few combinations of "file:" but can't seem to make it work for a local file though. I think it is a security thing.

Regards

Griff
Keep Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.

RE: XFRX - Hyperlinks to local files - Anyone done this?

The major downside of file links is they won't work relative. A PDF reader is no browser, therefore you also have no current Document.location.href which would be the basis for relative links.

You may find a solution on the basis of Word documents linking to others (relative) and then finally saving as PDF this Word feature may remain intact.

Bye, Olaf.

Olaf Doschke Software Engineering
https://www.doschke.name

RE: XFRX - Hyperlinks to local files - Anyone done this?

Griff, try pasting the file:/// link into your browser's address bar. Does that open the PDF successfully (it does for me)? I know that's not what you want to achieve, but at least it will tell you if there is a security issue involved.

Also, when you open the PDF (the one containing the link), does the link appear in blue and underlined (it does for me)? If so, that indicates that XFRX is successfully inserting the link, and the PDF viewer successfully recognises it. But it does not necessarily mean that you can follow the link by clicking on it. That might be down to a setting in the viewer, or you might need to do something like CTRL+Click (like you do in Word). But none of that works for me (using Sumatra as my viewer).

I also tried Olaf's suggestion. I created a Word document containing the link, and saved it as a PDF. Word was able to follow the link, but the viewer wasn't.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: XFRX - Hyperlinks to local files - Anyone done this?

(OP)
You are getting much the same results as me, I think it's a security feature in XFRX - designed to stop you from making PDF files that can read other local files.

Regards

Griff
Keep Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.

RE: XFRX - Hyperlinks to local files - Anyone done this?

I might be wrong, but I can't see why XFRX would impose that restriction. What's more, if you were to manually type the link into a Word document and save that as a PDF, wouldn't you get the same result? And also if you type it into a plain text file and "print" it to a PDF driver. Which suggests that it is not XFRX that is causing the problem.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: XFRX - Hyperlinks to local files - Anyone done this?

I don't know why you're thinking a file link is a security risk or reads a file. The PDF containing a link only has that link. At most just a file location and name is revealed.

Bye, Olaf.

Olaf Doschke Software Engineering
https://www.doschke.name

RE: XFRX - Hyperlinks to local files - Anyone done this?

(OP)
Hi Olaf

*I'm* not saying it *is* a security risk, just that it might be a perceived one. I know that browsers weren't able to have predefined file names in the input type FILE for example and you couldn't determine a files size from the browser (not the case any more) maybe the PDF definition does something similar?

It might be an oversight.. not terribly VFP related either (sorry) bar the XFRX element

Regards

Griff
Keep Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.

RE: XFRX - Hyperlinks to local files - Anyone done this?

Griff,

The obvious way of ruling XFRX out of the equation (or ruling it in) would be to create a PDF by some other means, for example, by saving a document as PDF in Word or Excel, or printing a document to a PDF driver. Place a link within the document, and see if it works in your PDF viewer. That would at least let you eliminate PDF as a possible source of the problem.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: XFRX - Hyperlinks to local files - Anyone done this?

(OP)
Good thought, worth two minutes work, I have a PDF editor I'll see what that can do

Regards

Griff
Keep Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.

RE: XFRX - Hyperlinks to local files - Anyone done this?

(OP)
Tested, works in PDF - in as much as it accepts links to files and can store them with relative paths, and my viewer can get to the files...

I will email eques.com

Regards

Griff
Keep Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.

RE: XFRX - Hyperlinks to local files - Anyone done this?

That's interesting. Let us know if you get a response.

In the meantime, here is another thought. Why not ditch the PDF completely, and use HTML instead? I'm referring here to the "main" document: the one that contains the links to the actual files that the user wants to open.

I understand that you want to design an interface that is OS-independent, which therefore rules out doing that part of it in VFP. That's fine. So here's what I am suggesting:

In your VFP app, generate an HTML page in which the target filenames are formatted as file:/// links (to the PDF files on the user's local system). This page would be just an ordinary text file. It can contain whatever text and formatting you like. You don't need to be an HTML guru to do this; just generate basic <p> and <a> tags; it doesn't have to pass any sort of validation. Send this file to the user in some way.

The user then opens the HTML file in their browser. You don't need to write any code for that. Just let them double-click on the file in Windows Explorer or their desktop or whatever. The fact of it having an .HTML extension will tell the OS how to open it. Within the browser, the user can then click on the links in the normal way. The target PDF will open either in the user's preferred PDF viewer, or in the browser itself, depending on the browser settings.

The whole thing would be done in the user's local system. There is no web connection necessary, and so none of the usual security issues would be involved.

If you get a good reply from Eqeus, that's fine. But if not, give this idea a shot.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: XFRX - Hyperlinks to local files - Anyone done this?

(OP)
I got a response, it took them just twenty minutes to reply!

I'm using version 12 from 2008, and they added support for this in version 17.1, they are now on 19.1

Just deciding if it is worth upgrading... which version do you have Mike?

Regards

Griff
Keep Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.

RE: XFRX - Hyperlinks to local files - Anyone done this?

I'm also still on ver. 12. I haven't seen any reason to upgrade. But I have never had this requirement to link to PDFs. (In the application I mentioned above, the links are done with normal VFP controls within a form.)

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: XFRX - Hyperlinks to local files - Anyone done this?

(OP)
That's exactly where I am, did know of a couple of bugs/features but never thought it worthwhile upgrading.

Right now, I am tempted to do so... 12 years between versions is pretty good value! I've asked if they still do a pdf only version (which is what I have).

Regards

Griff
Keep Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.

RE: XFRX - Hyperlinks to local files - Anyone done this?

(OP)
Asked for an upgrade price for PDF only...
Purchased upgrade - $149
Awaiting delivery

Regards

Griff
Keep Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.

RE: XFRX - Hyperlinks to local files - Anyone done this?

Probably worth it, Griff. Let us know how you get on. And if it still doesn't work, consider my suggestion about creating an HTML file.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: XFRX - Hyperlinks to local files - Anyone done this?

(OP)
Well, not so well.

I have it installed and its works for my existing reports - apart from screwing up the print of images from general fields for some reason.

The relative links are not working yet, I can see they are trying, but I think they are coded to expect either a fully qualified URL or a full
path - not a relative one.

I have emailed their support.

Regards

Griff
Keep Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.

RE: XFRX - Hyperlinks to local files - Anyone done this?

(OP)
They are coded to expect a fully qualified URL.

For now I'm out a few bucks with no solution today.

Regards

Griff
Keep Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.

RE: XFRX - Hyperlinks to local files - Anyone done this?

By "fully-qualified URL", do you mean a file:/// link including the full path to the target file? Is there any reason you can't do that?

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: XFRX - Hyperlinks to local files - Anyone done this?

(OP)
Hi Mike

By fully qualified I mean either of these

file:///www.eques.com

or

file:///g:/myfolder/mypdf.pdf

I can't do the latter because I can't know the drive letter in advance, and the former is no good, because the data is local.

Have to use excel, or wait....

Regards

Griff
Keep Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.

RE: XFRX - Hyperlinks to local files - Anyone done this?

But, surely, however you create the link, you are going to need the drive letter? I don't think a file:/// link can take a relative path (or can it?).

Later: Or maybe it can. I just tried it in Word. I inserted a link to a local file without a drive letter, and the file opened OK. But that probably won't help you.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: XFRX - Hyperlinks to local files - Anyone done this?

(OP)
Hi

Yes, the pdf format allows for a relative link with no drive specified, looking at the pdf with a hex editor reveals it uses a different notation to that used for a URI hyperlink though.

So, the nice authors at XFRX have said they may be able to do it, but I'm out of time for this exercise - I have to get the hard drive in the post shortly.

Despite this niggle, I remain so impressed with XFRX and their people, even if I am somewhat out of pocket, the breadth of support for VFP is amazing.

Back to version 12.4 for me for now though

Regards

Griff
Keep Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.

RE: XFRX - Hyperlinks to local files - Anyone done this?

So, pity we couldn't get it sorted, Griff. But I agree with you about Eqeus. Their support has always been superb.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: XFRX - Hyperlinks to local files - Anyone done this?

(OP)
Update, the XFRX people just sent me a new version to try - and it works!

Just the logo to sort (or remove for now)… Sorry, update to the update, they are helping me with that too.

EqeusCom support rocks!

Regards

Griff
Keep Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.

RE: XFRX - Hyperlinks to local files - Anyone done this?

Now you should tell how you create relative links.

I just tried my own idea with Word documents linking to others and that actually works relative, ie when you rename the folder the other document is still found relative to the first, as DOCX.
If you save as PDF Word does not convert the hyperlink to refer to the other PDF, it's still a link to the DOCX. While PDFs created with a docx->PDF converter let a link point to the other PDF, not DOCX.

Security actually comes into play but from the PDF reader. You can allow links to other documents to work, it's not a problem of creating this, or technically. I have not looked under the hood how the links are rleative in the pdf, because when the trust manager pops up a warning the links are displayed as absolute file links, but the folder name changes, so I assume internally it's "file://./" for "this folder" and then "./ is turned to current folder before this goes to navigate and then trigger safe read mode, as it's called here.

Aside of that problem you can obviously configure, if a user wants a PDF "site" working that way.

Now the confusing part, when I look into the PDF files raw with notepad++ you see a mix of cleartext and binary "streams", as PDF is a mixed format, the word saved PDFs contain a link as

CODE

obj
<</Subtype/Link/Rect[ 130.18 677.31 186.98 702.75] /BS<</W 0>>/F 4/A<</Type/Action/S/URI/URI(Document2.docx) >>>>
endobj 
And the converted PDF has:

CODE

obj
<<
/F (Document2.docx) 
/S /Launch 
>>
endobj 
The important parts highlighted. Bith link types ar to DOCX, the same PDF reader takes the first definition to go to the other DOCX, while the other links is reinterpreted to mean the PDF, even though the links both point to DOCX.

So overall I see it's having multiple solutions, it works on the basis of PDF specific linking, which does not take file URLs but some PDF specific commands.

But the next funny thing about it is, when the warnings are shown in the PDF reader, that you're about to launch another reader for the other PDF or DOCX, the links are displayed as (absolute) file links, I guess the way the link is executed is by converting this PDF internal URI definition into something the OS can resolve and so such links may be executed by Shellexecute of a file link.

Last not least, when you look into the DOCX (copy as zip, unzip, look into the xml files) you also don't simply find a file link, in _rels subfolder document.xml.rels defines

CODE

<Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="Document2.docx" TargetMode="External"/></Relationships> 
And in document.xml it's referred to as

CODE

<w:hyperlink r:id="rId4" w:history="1"><w:r w:rsidRPr="00DE3F5F"><w:rPr><w:rStyle w:val="Hyperlink"/></w:rPr><w:t>Document2</w:t></w:r></w:hyperlink> 

So neither docx nor pdf are internally working with a normal URI schema.

I would look into the final PDFs you now generate, but it seems they did a custom feature to convert your way of embedding links into something PDF gets. It's really not straight forward and I guess you can forget to achieve this without XFRX by a PDF printer, because you'd first need to establish a VFP internal concept of links in reports.

In HTML a href="./Document2.html" works, so not even making it a file link, just a relative link.

Anyway, congratulations to what you achieved from and with Eqeus.

Bye, Olaf.

Olaf Doschke Software Engineering
https://www.doschke.name

RE: XFRX - Hyperlinks to local files - Anyone done this?

(OP)
Hi Olaf

It's done by opening the report form in the designer, getting the properties up for a text field in the details band.
Select the Other tab, and click on the Edit Comment button.

In there I have put

CODE

#UR A HREF="file:\\"+DOS_FILE(tmpiv.MADEBY)+"\"+ALLTRIM(TMPIV.ATTFILE) 

The DOS_FILE() function just changes anything not allowed as a folder name to an underscore as the tmpiv.madeby field could have commas, quotes or colons and slashes.

In my new version of XFRX (19.1 and a bit) this creates a relative link to the file from the PDF.

The resultant link comes up as http://arch_2__/myfile.pdf

Works very well (note the reversal of the slashes).

Regards

Griff
Keep Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.

RE: XFRX - Hyperlinks to local files - Anyone done this?

Well, I'd like to see what's raw in the PDF, my PDF viewer also shows me links as file:// links, though clearly they are not embedded in the document.
Also backslashes are wrong in file links to start with, Windows is just graceful with both. No URI schema is defined by MS, they all always work with slashes and not backslashes. On a windows computer a file link might have backslashes, too, but the protocol decribing part of such URLs also is file://, not file:\\. Acceptance of backslashes also in thet start part of a URL wouldn#t even be necessary to tolerate, see https://en.wikipedia.org/wiki/Uniform_Resource_Ide... generic scheme.

Anyway, thanks for posting how this works in XFRX. That should help others to get the same feature going and that's what counts most.

Bye, Olaf.

Olaf Doschke Software Engineering
https://www.doschke.name

RE: XFRX - Hyperlinks to local files - Anyone done this?

Just one more thing I'd test, if I were you: If you rename the root folder with all your final PDFs, do the links still work?
Assume you generate all these PDFs, zip it up and someone else unzips into any another location, will this all still reference each other relatively? My guess is you need a ./ either before or instead of the folder name.

Bye, Olaf.

Olaf Doschke Software Engineering
https://www.doschke.name

RE: XFRX - Hyperlinks to local files - Anyone done this?

(OP)
No problem, it looks like this:

CODE

obj
<<
/Type /Annot
/Subtype /Link
/F 4
/Rect [78.3700 689.8688 386.6200 700.3688]
/Border [0 0 0]
/A <</S /URI 
/URI (ARCH_2__\\080-FNF-BLOCK E - ISSUE REGISTER_T1_MASTIC - EXTERNAL.PDF)
 >>
>>
endobj 

The relativity seems to work from wherever the report PDF is saved, so long as the desired files are in the same structure below it.

Regards

Griff
Keep Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.

RE: XFRX - Hyperlinks to local files - Anyone done this?

Thanks Griff,

I see that it's not including drive and any part of the fullpath up to "ARCH_2__", but if you'd not store the PDFs in a folder "ARCH_2__" it seems this would stop working. Also makes me wonder how a PDF viewr displaying a document from an ARCH_2__ folder wouldn't interpret this relative to the location meaning another subfolder of the same name.

From my examples, the URI reference didn't contain a folder name, as the referred PDF is in the same folder, simply just the other file name.

Bye, Olaf.

Olaf Doschke Software Engineering
https://www.doschke.name

RE: XFRX - Hyperlinks to local files - Anyone done this?

(OP)
Hi Olaf

There are too many files not to have them organised a little bit, and yes the folders do have to match or things will be lost.

The folders are made by the system and the report is from the system so, as long as no one moves the report pdf from the folder above the subfolders all should be well.

Regards

Griff
Keep Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.

RE: XFRX - Hyperlinks to local files - Anyone done this?

Well, to do without specific folder names in the URIs doesn't mean to do without the folders, it just could be /URI (./080-FNF-BLOCK E - ISSUE REGISTER_T1_MASTIC - EXTERNAL.PDF)
Only files referring to other files in another folder, say PDFs in folder ARCH_3__ would need to use /URI (../ARCH_2__/080-FNF-BLOCK E - ISSUE REGISTER_T1_MASTIC - EXTERNAL.PDF) to refer to a PDF not in the same but in a parallel folder.

Then, of course, it all still depends on these folder names to stay intact, but it doesn't need any specific root.

Even if this only is in a concrete file share in your company, you would want to create PDFs, that will survive a move of the whole archive to some other base folder, say the folder that boith contains ARCH_2__ and the ARCH_3__ I made up.

Every relative link - just think of normal relative file paths - lives on the knowledge of the file hierarhy its stored in, the ..\ parts of a relative file name don't ask of you to know how your parent fodlers are named, you simply go up N folders by prepending N times ..\, but when you then want to decend into other subfolders than you came from, you refer to them with their name, so files in FolderA referring to files in a parallel FolderB need to goo ..\FolderB and files in FolderB which refer to files in FolderA need to go ..\FolderA to get there. The whole set of files therefore still make this a rigid subfolder structure, there's nothing that solves that problem, but if folderA and folderB are in a root folder never explicitly part of the descending part of any relative path, then this could change, including a server move from \\server1\shareX\pdfs\ to \\server14\shareY\pdfs\ and that's what I'd like to gurantee.

If you generate all these PDFs on the fly every time over and over again, it'll just be a case of changing your base path, but if these PDFs should be able to have a long life cycle, they better not depend on a root portion of the fullpath to be only where it is right now.

Just like a good VFP project also is movable and a PJX only references files within a home path. Things like files from VFP HOME() better are referred to as HOME()+x, which then becomes a concept relative paths can't do, but that's just specific to VFP. A set of files referring to other files of the whole file set should not need to refer to each other by absolute paths to remain movable. Folders become part of the moving structure, that's not problematic, but this structure as a whole has to be movable.

and while we're at VFP project files. Look into the classloc data of VCXes, direclty as DBF, not what the property window shows. When a parent class is in a VCX in the same folder, classloc will only contain that other vcx name. the files are referred to relatively, not relative to a project home, but relative to themselve and that's what each PDF also has to do. A reader opening any first PDF of your set has no concept of a base folder of the whole set, paths within that PDF are relative to it, not relative to a root folder.

Bye, Olaf.

Olaf Doschke Software Engineering
https://www.doschke.name

RE: XFRX - Hyperlinks to local files - Anyone done this?

(OP)
It's a one off exercise Olaf, putting a mass of files on a USB hard drive, along with a pdf to help the end recipient locate specific documents.

It's not meant to be a live system at all, no modifications and no additions or deletions, just half a million documents handed over when my client sells his project on completion(ish).

After that it's not my responsibility any longer - but I would like it to be usable to some degree by the recipient if he/she is interested.

Regards

Griff
Keep Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.

RE: XFRX - Hyperlinks to local files - Anyone done this?

Then it's even most important the links work by being relative to each PDF itself.

Perhaps this way: For the PDF viewer the "here" or home location is the pdf it displays. documents in the same folder would be addressed by their name (other.pdf) only, pdfs in a subfolder by .\subfolder\other.pdf. documents in a parent folder ..\other.pdf and so on.

The way you generate links they all seem to be based in a pattern starting in some root folder, I don't see how that will work in general, only in special cases and you might just have been lucky your case is one of them. The PDF viewer has no concept of a curdir or base directory. Instead, it will always orient relative links to the PDF displayed currently.

Or do you only have one table of content PDF and all the others are anywhere else from there and don't contain links to other documents, only your one overview index PDF?

Bye, Olaf.

Olaf Doschke Software Engineering
https://www.doschke.name

RE: XFRX - Hyperlinks to local files - Anyone done this?

(OP)
The last sentence is correct, one table of contents or index if you like, each entry going to a single document - opening it in a new window, leaving the index open for more searching.
There might be a hundred sub folders under the index, with 5,000 files in each - most of which will be pdf, but 25% would probably be dwg, and some docx, xlsx and others such as rvt. It's the complete history of the design for two large blocks of flats in London - detailing everything from landscaping to finishes on kitchen cupboards and tiles in bathrooms.

Further update: the people at Eqeus have also resolved my problem with the bitmap logo from a general field.

Really can't praise them enough.

Regards

Griff
Keep Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close