473,387 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Opening a html file from a Command Button

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
2 2010
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
2
by: Lyn | last post by:
Hi, I am working on a genealogy project in which I have two tables: Person -- one record for each person in the family. Each record has a unique Autonum field (IDPerson). Partnerships -- one...
21
by: Sender | last post by:
I have two questions: (1) I just want to check whether a .txt file is empty or not (without opening it). Like I click on a command button then it should give message EMPTY if is empty and show...
8
by: Thaqalainnaqvi | last post by:
Several times I logged-in successfully but after log-in I can't use features/services which were shown prior to my login. Can anyone exoert from this forum check , is it technical fault of Bank...
3
by: Andrew Poulos | last post by:
There's a HTA application that's running on a local computer (not from a URL) and the user can open a new HTML window by clicking a button The first time the user clicks the button the window...
2
by: gauravalc | last post by:
I am newbie in VB. I have access database in which i stored paths of the file. Now I want to open the file which are have the respective path using VB command button. A form comes which shows paths...
0
by: Alexnb | last post by:
Okay, so what I want my program to do it open a file, a music file in specific, and for this we will say it is an .mp3. Well, I am using the system() command from the os class. The problem I am...
34
by: Alexnb | last post by:
Gerhard Häring wrote: No, it didn't work, but it gave me some interesting feedback when I ran it in the shell. Heres what it told me: Traceback (most recent call last): File...
16
by: Phil Stanton | last post by:
I have a form with a button which is supposed to open an Excel file (With lots of Macros /VBA) in it. The Excel file gets it's data from the Access program Here is the code Private Sub...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.