Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > ExecWB and/or QueryStatusWB


Reply
 
Thread Tools Display Modes
  #1  
Old 07-18-2003, 07:22 PM
tonyr1988 tonyr1988 is offline
Regular
 
Join Date: Jul 2003
Posts: 74
Default ExecWB and/or QueryStatusWB


Sorry I'm bugging you guys with all of my webbrowser questions, but this should be the last one of mine for the next week or two. I'm trying to get Open, Save, Print, Page Setup, and some other webbrowser features working, but I don't know how. I tried Browser.ExecWB OLECMDID_OPEN, but it came up with the "Argument not optional" error. When I use QueryStatusWB, nothing happens. If it helps any, I managed to dig up the following code from an old project [I got it from a tutorial, but I can't remember which one]:

Code:
    Dim eQuery As OLECMDF
    
    On Error Resume Next
    eQuery = Browser.QueryStatusWB(OLECMDID_PAGESETUP)
    If Err.Number = 0 Then
        If eQuery And OLECMDF_ENABLED Then
            Browser.ExecWB OLECMDID_PAGESETUP, OLECMDEXECOPT_PROMPTUSER, "", ""
        Else
            MsgBox "No contents of browser"
        End If
    End If
It works for Page Setup, but when I try other ones [like Open, Save, etc.], it doesn't. Any ideas? Thanks in advance.

Until next time, take care and God Bless!
-Tony
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->