• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 374
  • Last Modified:

Creating links in CHM files to outside documents (i.e. not contained within the CHM)

I am creating help files using AuthorIT.

I am currently having difficulty creating a link to a document outside the CHM file.  The idea is that all users should get an identical CHM file with their program, and that the document (in this case a PDF file) will be created individually for each (and perhaps by) each individual customer.

Any help at all greatly appreciated.

Thanks in advance,

Jaimehy
0
jaimehy
Asked:
jaimehy
  • 2
2 Solutions
 
adg080898Commented:
It is possible that the changes that Microsoft made a while ago are prohibiting you from linking to outside documents. MS greatly restricted what you can do in a chm file for security reasons.

It sounds like you are hardcoding a link to "...c:/whatever/whatever.pdf".

Can you post the html for the link to the outside file? I'll see if I can reproduce the behavior using MS html help workshop.

0
 
alkisgCommented:
From MSDN: "The main problem with compiled help is that you can only link to external files using an absolute path."
You can use javascript to change the relative file paths to absolute.

MSDN link with explanation and code:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html/vsconOcxscriptslinkchm.asp
0
 
jaimehyAuthor Commented:
I have a very happy documentation specialist.

She used your link, alkisg, to add your code to my html, and is now happy.

Thank you very much.

Thanks also to adg for taking the trouble of posting the message, using up grey matter and offering to try to reproduce the problem.

Excellent to see smiling faces on a Monday morning.
0
 
alkisgCommented:
You're welcome! If I ever come to your country, tell her to buy me a coffee! :-)
Don't forget to close the question!

Regards,
Alkis
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now