Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 260
  • Last Modified:

Calling FrontPage Editor/ Dreamweaver in VB Application

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
PRAVIN
Asked:
PRAVIN
1 Solution
 
Valliappan ANCommented:
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
 
sharmonCommented:
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
 
gauravdhupCommented:

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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
PRAVINAuthor Commented:
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
 
gauravdhupCommented:
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
 
PRAVINAuthor Commented:
Yes please my frnd....u can send it to me thru mail.
0
 
gauravdhupCommented:
whats your mail id
0
 
PRAVINAuthor Commented:
my mail id is npravinkumar@yahoo.com
-thanx
0
 
DanRollinsCommented:
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
 
NetminderCommented:
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now