Solved

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

Posted on 2006-11-24
4
319 Views
Last Modified: 2010-04-16
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
Comment
Question by:jaimehy
  • 2
4 Comments
 
LVL 8

Assisted Solution

by:adg080898
adg080898 earned 100 total points
ID: 18009759
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
 
LVL 9

Accepted Solution

by:
alkisg earned 400 total points
ID: 18010518
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
 

Author Comment

by:jaimehy
ID: 18017767
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
 
LVL 9

Expert Comment

by:alkisg
ID: 18018665
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an explanation of a simple data model to help parse a JSON feed
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now