Help: 'printer friendly page' and 'search page' functions

W

Wingirl

I would like to be able to provide a 'printer friendly' page. Can anyone tell me the best way to do this?

Also, is it possible to have a single page in a web that contains a search function for THAT page only, and if so, how would I set it up? (Would this be a ".bot", and if so, does that mean I would have to publish the entire web rather than simple FTP??)
 
J

Jim Buyens

-----Original Message-----
I would like to be able to provide a 'printer friendly'
page. Can anyone tell me the best way to do this?

Basically, there are three approaches:

1. Copy your page to another file, then edit that file
until it prints as you want.

2. If your page uses a CSS style sheet, add a block
to it such as the following.
@media print {
... print-specific css rules go here ...
}
Then, inside this block, set or override any CSS
rules that should apply only to printed output.
For example, the rule:
.noprint {display: none;}
suppresses printing of any tag you code with the
attribute class="noprint"

3. If it's more convenient to use separate style
sheet files, code the <link> tag for the print
stylesheet with media="print". Here's an example:
<link rel="stylesheet" type="text/css"
href="styles.css">
<link rel="stylesheet" type="text/css"
href="print.css" media="print">
Also, is it possible to have a single page in a web that
contains a search function for THAT page only, and if so,
how would I set it up? (Would this be a ".bot", and if
so, does that mean I would have to publish the entire web
rather than simple FTP??)

What kind of search do you have in mind?

If you mean the kind of search that you get by choosing
Find (On This Page) from the Edit menu in IE, I don't
believe that's possible.

If you want to do a Web Search against a folder that
contains only one Web page, I guess you could do that, but
I can't imagine why you'd want to.

Or do you not want a search at all, but just a hyperlink
that jumps from one part of the page to another?

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
|| Microsoft FrontPage Version 2002 Inside Out
|| Web Database Development Step by Step .NET Edition
|| Troubleshooting Microsoft FrontPage 2002
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
S

Stefan B Rusynko

Jim

Another option is to make the printable page an include page (within in a richer page w/ the nav etc) w/ a link to it or as a popup

And w/ JavaScript you can do a page search
http://javascript.internet.com/messages/find-in-page.html



| >-----Original Message-----
| >I would like to be able to provide a 'printer friendly'
| >page. Can anyone tell me the best way to do this?
|
| Basically, there are three approaches:
|
| 1. Copy your page to another file, then edit that file
| until it prints as you want.
|
| 2. If your page uses a CSS style sheet, add a block
| to it such as the following.
| @media print {
| ... print-specific css rules go here ...
| }
| Then, inside this block, set or override any CSS
| rules that should apply only to printed output.
| For example, the rule:
| .noprint {display: none;}
| suppresses printing of any tag you code with the
| attribute class="noprint"
|
| 3. If it's more convenient to use separate style
| sheet files, code the <link> tag for the print
| stylesheet with media="print". Here's an example:
| <link rel="stylesheet" type="text/css"
| href="styles.css">
| <link rel="stylesheet" type="text/css"
| href="print.css" media="print">
|
| >Also, is it possible to have a single page in a web that
| >contains a search function for THAT page only, and if so,
| >how would I set it up? (Would this be a ".bot", and if
| >so, does that mean I would have to publish the entire web
| >rather than simple FTP??)
|
| What kind of search do you have in mind?
|
| If you mean the kind of search that you get by choosing
| Find (On This Page) from the Edit menu in IE, I don't
| believe that's possible.
|
| If you want to do a Web Search against a folder that
| contains only one Web page, I guess you could do that, but
| I can't imagine why you'd want to.
|
| Or do you not want a search at all, but just a hyperlink
| that jumps from one part of the page to another?
|
| Jim Buyens
| Microsoft FrontPage MVP
| http://www.interlacken.com
| Author of:
| *----------------------------------------------------
| |\---------------------------------------------------
| || Microsoft Office FrontPage 2003 Inside Out
| || Microsoft FrontPage Version 2002 Inside Out
| || Web Database Development Step by Step .NET Edition
| || Troubleshooting Microsoft FrontPage 2002
| || Faster Smarter Beginning Programming
| || (All from Microsoft Press)
| |/---------------------------------------------------
| *----------------------------------------------------
|
 
W

Wingirl

Thanks, this information was very helpful.

As to the search, I have a page that has quite a lot of data on it in the
form of an events calendar. I want people to be able to search that page
for dates, information, etc., but can't find any way that will just search
that page. Using IE's function seems cheesy somehow, and I hoped there was
a better way 'on page' to offer that option.
 

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