我一直在寻找几个星期，现在有多最好地接近我们被要求提出的东西，似乎应该很简单，但我还没有找到合适的答案。我想从SharePoint WSS 3打印，能够在没有默认标题和页脚的情况下添加自定义标题和页脚。我希望有一种方法可以使用C＃代码来做到这一点，但我只是找不到任何指向正确的方向的东西。是否有可能构建一个打印功能，可以执行此操作，如果是，请将我指向任何可能可用的示例。
I have been searching for several weeks now how best to approach something we have been asked to come up with and it seems that it should be simple but I have yet to find a suitable answer. I want to print from Sharepoint WSS 3 with the ability to add a custom header and footer without the default header and footer from IE. I had hoped that there would be a way to use C# code to do this, but I am just not finding anything that points me in the right direction. Is it possible to build a print function that will do this and if so, please point me to any examples that may be available.
I am nearly positive that this cannot be done in IE without the user altering the Page Setup. You may want to consider using a "Printable Version" link that simply redirects the user to a dynamically created PDF version of the content.
It sounds like you want one header and footer to display when someone is browsing a page, but you want a different header and footer to display when printing the page.
For this, I would recommend using CSS media types. This will instruct the browser to use one stylesheet when viewing and a different stylesheet when printing. Here is some more information: http://webdesign.about.com/cs/css/a/aa042103a.htm