Link to home
Start Free TrialLog in
Avatar of venkadesh4u
venkadesh4u

asked on

Visual Basic 6.0 How do i Disable the Open Save Dialog Box in Web Browser Control

While Opening the Word Document in Web browser Control in Vb 6.0 Open Save Cancel Dialog Box is appearing for Open. This Dialog as same as Dowload Dialog Box. How to Suppress or Hide it.

At the Same time while opening the another Word Document, It is askign the Save Confirmation Message.

How to Disable this Dialog Boxs in Web browser Control in visual basic 6.0

Please Help me about this.
Avatar of GrahamSkan
GrahamSkan
Flag of United Kingdom of Great Britain and Northern Ireland image

You don't show your code, but this early-binding example shouldn't need a dialogue box (though the document its template might have code which does)

Dim wrdApp as Word.Application
Dim wrdDoc as Word.Document
Set WrdApp = CreateObject("Word.Application")
Set wrdDoc = wrdApp.Documents.Open("C:\MyPath\MyFile.doc")

To clos a document without saving:

wrdDoc.Close wrdDoNotSaveChanges
Avatar of venkadesh4u
venkadesh4u

ASKER

Above comment for Opening the Word File.....

By using this Code, While Opeing the Word File inWeb Browser Control(Project --> Cmponents --> Microsoft Internet Controls) is Showing the Open Save Dialog Box to Open

For your Reference Screen Shot of the Dialog box is Attached.

My Question is how to suppress or hide or disable this dialog box.


Private Sub LoadDoc(ByVal strFileName As String)
   WebBrowser1.Navigate2 strFileName
End Sub

Open in new window

Dialog.jpg
ASKER CERTIFIED SOLUTION
Avatar of GrahamSkan
GrahamSkan
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you for the Reply...