开发者

Override CSS and HTML Styles in Outlook 2007, Word 2007

开发者 https://www.devze.com 2023-04-08 19:37 出处:网络
In Internet Explorer 8, it is possible to override CSS styles and HTML tags using: Tools -> Internet Options -> Accessibility (button) -> Format documents using my style sheet (check box).

In Internet Explorer 8, it is possible to override CSS styles and HTML tags using:

Tools -> Internet Options -> Accessibility (button) -> Format documents using my style sheet (check box).

There I can specify a file containing my own CSS snippet. Specifying the "!important" modifier causes the CSS code to override existing formatting.

Is there a way to do this or something similar in Outlook 2007? I understand that Outlook 2007 uses the Word 2007 HTML and CSS engine. Therefore, a solution for Word might be applicable to Outlook 2007.

I am attempting to print emails that contain HTML tables. The tables often contain a width setting that is wider than the 8.5-inch page I need to print to. Additionally, the <td nowrap tag is often included. The result is that text is cut off at the right margin.

If I can override the width and nowrap tags, I should be able to prevent truncation. How can I do this?

The ideal solution would be accomplished solely in Word / Outlook and CSS. VBA is an option, but only if it can be applied automatica开发者_开发问答lly. Manually running a macro is not an option.


This is not possible because the Microsoft Developer Network (MSDN) states that

  • media ( screen | print | projection | braille | speech | all )

is not supported in Word 2007 and therefore Outlook 2007.

http://msdn.microsoft.com/en-us/library/aa338201.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消