By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,482 Members | 2,451 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,482 IT Pros & Developers. It's quick & easy.

Opening a html file from a Command Button

P: n/a
Hi folkes

I have a simple html file with 2 frames, as my Help file to my DB.
It consists of 3 parts:

Help.htm = Is the main file with the 2 frames.

Index.htm = Is the left frame as a index with hyperlinks in it, link
to bookmarks in the right frame.

Contents.htm = Is the right frame with the help catagories, headed by
bookmarks, linked to the hyperlinks from the left frame.

The code I'm using now opens the file but doesn't jump to the bookmark
that is called.

strAppPath = CurrentProject.Path
strBookMark = "#Setup"

strAppName = "c:\program files\internet explorer\iexplore.exe " _
& strAppPath & "\Help\Help.htm" & strBookMark

Call Shell(strAppName, 3)

If I call, contents.htm alone with the bookmarks in it. It jumps to
the required bookmark, no problem.

Its when I call, help.htm with the two frames in it, that the coding
for the bookmarks, dosen't seem to work. It opens the help file, but
doesn't jump to the called bookmark.

P.S.
Any ideas of calling "iexplore.exe", without using the string
"c:\program files\internet explorer\iexplore.exe "

Any help or ideas with my coding would be greatly appreciated.

Thanks for your time reading this.

Chris
Sydney
Australia
Nov 12 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
try:

\Help\Help.htm#MyBookmark

John Bickmore
www.BicycleCam.com
www.Feed-Zone.com

"ChrisR" <ch***@krisaracomputers.com.au> wrote in message
news:97**************************@posting.google.c om...
Hi folkes

I have a simple html file with 2 frames, as my Help file to my DB.
It consists of 3 parts:

Help.htm = Is the main file with the 2 frames.

Index.htm = Is the left frame as a index with hyperlinks in it, link
to bookmarks in the right frame.

Contents.htm = Is the right frame with the help catagories, headed by
bookmarks, linked to the hyperlinks from the left frame.

The code I'm using now opens the file but doesn't jump to the bookmark
that is called.

strAppPath = CurrentProject.Path
strBookMark = "#Setup"

strAppName = "c:\program files\internet explorer\iexplore.exe " _
& strAppPath & "\Help\Help.htm" & strBookMark

Call Shell(strAppName, 3)

If I call, contents.htm alone with the bookmarks in it. It jumps to
the required bookmark, no problem.

Its when I call, help.htm with the two frames in it, that the coding
for the bookmarks, dosen't seem to work. It opens the help file, but
doesn't jump to the called bookmark.

P.S.
Any ideas of calling "iexplore.exe", without using the string
"c:\program files\internet explorer\iexplore.exe "

Any help or ideas with my coding would be greatly appreciated.

Thanks for your time reading this.

Chris
Sydney
Australia

Nov 12 '05 #2

P: n/a
ch***@krisaracomputers.com.au (ChrisR) wrote in message news:<97**************************@posting.google. com>...
Hi folkes

I have a simple html file with 2 frames, as my Help file to my DB.
It consists of 3 parts:

Help.htm = Is the main file with the 2 frames.

Index.htm = Is the left frame as a index with hyperlinks in it, link
to bookmarks in the right frame.

Contents.htm = Is the right frame with the help catagories, headed by
bookmarks, linked to the hyperlinks from the left frame.

The code I'm using now opens the file but doesn't jump to the bookmark
that is called.

strAppPath = CurrentProject.Path
strBookMark = "#Setup"

strAppName = "c:\program files\internet explorer\iexplore.exe " _
& strAppPath & "\Help\Help.htm" & strBookMark

Call Shell(strAppName, 3)

If I call, contents.htm alone with the bookmarks in it. It jumps to
the required bookmark, no problem.

Its when I call, help.htm with the two frames in it, that the coding
for the bookmarks, dosen't seem to work. It opens the help file, but
doesn't jump to the called bookmark.

P.S.
Any ideas of calling "iexplore.exe", without using the string
"c:\program files\internet explorer\iexplore.exe "

Any help or ideas with my coding would be greatly appreciated.

Thanks for your time reading this.

Chris
Sydney
Australia


Thanks John for your time.

But that doesnt solve my problem.
Because of the 2 frames in the Help.htm file. The bookmark extension
"#Setup" for the string doesnt work.
Nov 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.