SharePoint Designer/Expression Web and FrontPage Addin

J

Jason

Hi,

Developed an addin that supports each of the apps referenced in the subject.
They are all loosly based on the FrontPage Model.

Our HTML template developer has built a template that contains some hard
coded style references so when the document is open in the editor all images
referenced in the Style Sheet appear.

When the Author saves the document the "Embedded Files" Dialog appears
referencing the Style sheet as the path to it is an http:// reference and the
document is being saved using a drive mapping. My Question is:

Is there a way I can mark/set a property of the stylesheet object so that it
does not appear in the embedded list? While I'm fine with authors adding
images etc to there page which will need to be saved, I am trying to not
include the stylesheet so they don't end up saving their own copy of it.

I could change the reference during the OnPageSave Event but as there is no
event to cature the author pressing the cancel button I cannot reliably
return the document back to the state before the change.

Is there a way to intercept the save functionality so I can take over the
save and make the changes I need/want to make?

Thanks
Jason
 
C

Colbert Zhou [MSFT]

Hello Jason,

Have you tried the FrontPage.Application.OnBeforePageSave event? It should
occur before a page is saved. That means it fires when the user clicks the
Save button in the Save Dialog. Clicking the cancel button will not cause
the event to fire.

See the related MSDN document here,
http://msdn.microsoft.com/en-us/library/aa155841(office.10).aspx

By the way, since the question is related to FrontPage object models, not
to general Office Com Add Ins, the best place to ask such questions is the
FrontPage Programming Newsgroup because there are some FrontPage dedicated
experts and programmers who can sharing good experiences on the FrontPage
programming there,
http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=micros
oft.public.frontpage.programming

So, may I suggest you also post the question in the FrontPage newsgroup?

Have a good day, Jason!


Best regards,
Colbert Zhou (colbertz @online.microsoft.com, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://support.microsoft.com/select/default.aspx?target=assistance&ln=en-us.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top