Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Calling FrontPage Editor/ Dreamweaver in VB Application

Posted on 2001-06-12
10
Medium Priority
?
258 Views
Last Modified: 2010-05-02
Hi Frnds
I want to develop a VB application that will display list of html files. I want to open the html page in FrontPage Editor or Dreamweaver(whichever is possible). So that i should allow the user to edit with tabs as in HTML Editor(Normal/HTML/Preview) and save. Please give me your valuble views or any reference link where i can get solution.
thanks
with regards
pravin
0
Comment
Question by:PRAVIN
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
10 Comments
 
LVL 9

Expert Comment

by:Valliappan AN
ID: 6180985
Something that I could:

A simple way like, you could call the EXE for the editor, along with the parameter as the html file:

  Shell (ExeName & " abc.htm")

Normally, this should work.
0
 
LVL 6

Accepted Solution

by:
sharmon earned 100 total points
ID: 6181809
You can also do this to open the file with the default app for editing....


Option Explicit

Public Const SW_SHOWNORMAL = 1

Public Declare Function ShellExecute Lib "shell32.dll" Alias _
  "ShellExecuteA" (ByVal hWnd As Long, ByVal lpOperation As String, _
  ByVal lpFile As String, ByVal lpParameters As String, _
  ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long


Sub EditWithDefaultApp(ByVal strToOpen As String, ByVal hWnd As Long)
 
  Call ShellExecute(hWnd, "edit", strToOpen, _
  vbNullString, vbNullString, SW_SHOWNORMAL)

End Sub
0
 

Expert Comment

by:gauravdhup
ID: 6182599

write the following line

Shell("C:\Program Files\Microsoft Office\Office\frontpg.exe" & " " & "C:\temp\index.html")

You can

 use the commondialog instead of hardcoding the path of index.html

Shell("C:\Program Files\Microsoft Office\Office\frontpg.exe" & " " & ActiveForm.CommonDialog1.Filename)



I f you are not able to understand then please tell me
i will send you the whole code as attachment
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:PRAVIN
ID: 6182834
Hi frnd
Fine thanks for ur view. Will there be any problem if we use Shell script. Because i might need to edit the page and make changes in the Html and will it get saved. Can u pls get me more detail abt the code
thank u very much
with regrds
pravin
0
 

Expert Comment

by:gauravdhup
ID: 6182943
no there wont be any problem since the page will be edited using frontpage

Did you follow the code
Should I send you the code to your E-mail
0
 

Author Comment

by:PRAVIN
ID: 6183101
Yes please my frnd....u can send it to me thru mail.
0
 

Expert Comment

by:gauravdhup
ID: 6184183
whats your mail id
0
 

Author Comment

by:PRAVIN
ID: 6184573
my mail id is npravinkumar@yahoo.com
-thanx
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7135934
Hi PRAVIN,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will suggest to:

    Split points between: valli_an and sharmon

PRAVIN, if you think your question was not answered at all or if you need help, you can simply post a new comment here.  Community Support moderators will follow up.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 5

Expert Comment

by:Netminder
ID: 7181589
Per recommendation, force-accepted.

Netminder
CS Moderator

valli_an: points for you at http://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20328645
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

609 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