C
Charles Smith
I am building an addin for FrontPage 2003 using VB.NET. When I add ANY event
handler the FrontPage editor stops displaying all images and the shared
borders. The border regions are blank and all images display the standard
broken link placeholder. The event triggers and my handler code runs just
fine. Here is how to build a bare bones addin that will duplicate the problem.
Create a shared addin project for FrontPage.
Change the type of applicationObject to
Microsoft.Office.Interop.FrontPage.ApplicationClass so it can expose the
events.
Change the line in the OnConnection procedure that sets the reference to the
FrontpPage Application to this:
applicationObject = CType(application, FrontPage.ApplicationClass)
Add any event handler you wish using Addhandler or Withevents. The handler
can be completely empty.
Set FrontPage to start when you run the project and start it.
Open a website. Open a web page with img tags in it. The images are
displayed as broken.
Close FrontPage
Comment out the AddHandler line or the Handles part of the sub procedure.
Run it and open the same page. The images are properly displayed.
I have done a network trace. When a handler is defined the Editor makes no
attempt to download the images or shared borders from the server for display.
what am i doing wrong? Is the Interop objects for FrontPage 2003 broke?
By the way building the addin using VB6 workes just fine. I would rather not
have a new VB6 applcation to support.
handler the FrontPage editor stops displaying all images and the shared
borders. The border regions are blank and all images display the standard
broken link placeholder. The event triggers and my handler code runs just
fine. Here is how to build a bare bones addin that will duplicate the problem.
Create a shared addin project for FrontPage.
Change the type of applicationObject to
Microsoft.Office.Interop.FrontPage.ApplicationClass so it can expose the
events.
Change the line in the OnConnection procedure that sets the reference to the
FrontpPage Application to this:
applicationObject = CType(application, FrontPage.ApplicationClass)
Add any event handler you wish using Addhandler or Withevents. The handler
can be completely empty.
Set FrontPage to start when you run the project and start it.
Open a website. Open a web page with img tags in it. The images are
displayed as broken.
Close FrontPage
Comment out the AddHandler line or the Handles part of the sub procedure.
Run it and open the same page. The images are properly displayed.
I have done a network trace. When a handler is defined the Editor makes no
attempt to download the images or shared borders from the server for display.
what am i doing wrong? Is the Interop objects for FrontPage 2003 broke?
By the way building the addin using VB6 workes just fine. I would rather not
have a new VB6 applcation to support.