[austechwriter] Re: Opening an external document from within WinHelp4

Hedley,
The WinHelp viewer is notorious for not knowing the
current directory.
The major advance in MSHelp2 is the use of namespaces to
get around this problem.

All you need to do to fix it is to put the PDF local to
the HLP file.
At least it worked with 750 files on my latest project. I
let HDK look after the exact macro call, but I can check
it if you need it checked.


?..Bruce?..
WinHelp IT Editing           <= we edit into hypertext
formats
mailto:white@xxxxxxxxxx
(02) 9955 0344
http://help2.nu




} -----Original Message-----
} From: hedley_finger@xxxxxxxxxxx
} Sent: Wednesday, June 25, 2003 1:16 PM
} To: Austechwriter Post
} Subject: [austechwriter] Opening an external
} document from within
} WinHelp4
}
}
} Keyboard tappers:
}
} We provide our customers with a PDF file of
} the User Guide.  This means=
}
} that if they lose their printed copy or want
} extra copies, especially f=
} or
} multi-user software, they can easily print as
} many copies as necessary.
}
} On the Welcome page of the help I want to
} include a link to this document=
},
} called (let's say), MyobProductUserGuide.pdf.
} The help is being genera=
} ted
} from the FrameMaker files using mif2go in
} WinHelp4 format, i.e. *.hlp a=
} nd
} *.cnt files, as would be produced by Microsoft
} Help Workshop, v. 4.03.
}
} There appear to be two possible macros that
} will do this:
}
}      ExecFile and
}      ShellExec.
}
} At the moment I am trying
}
}
} ShellExecute(".\documentation\MyobProductUserGu
ide.pdf",,0,open,".=
}
} \",IDH_WC_UserGuideDidNotOpen)
}
} where the MyobProductUserGuide.pdf is within
} the 'documentation\' folde=
} r,
} which is in the same folder as the Product.hlp
} file; that is, the PDF i=
} s in
} a folder just below Product.hlp.
}
} Whether the PDF is in the correct location
} relative to Product.hlp or
} deliberately removed, clicking the hotspot
} text causes this message to
} appear:
}
}      An error exists in this Help file.
} Contact your application vendor=
}  for an updated Help file. (1026)
}
<snip>

**************************************************
To post a message to austechwriter, send the message to 
austechwriter@xxxxxxxxxxxxxx

To subscribe to austechwriter, send a message to 
austechwriter-request@xxxxxxxxxxxxx with "subscribe" in the Subject field.

To unsubscribe, send a message to austechwriter-request@xxxxxxxxxxxxx with 
"unsubscribe" in the Subject field.

To search the austechwriter archives, go to 
www.freelist.org/archives/austechwriter

To contact the list administrator, send a message to 
austechwriter-admins@xxxxxxxxxxxxx
**************************************************

Other related posts: