Create a page just for your DBRW and a link to it for printing (say as a popup window)
- then use FP Include page to include that DBRW page in your normal page
--
|I don't know if i'm getting accross what i'm trying to do, I need to print
| out a particular portion of a page, using a print button and omit the details
| on the rest of the page,
|
| at the top of the page is the database results
| then an input form for the database
| then another input form.
|
| i only want to printout the database results
|
| Al....
|
| "Murray" wrote:
|
| > Should be, yes. In addition any of those will fail in Mac/IE5. Try this -
| >
| > Put this in the head of the document -
| >
| > <script type="text/javascript">
| > function print_page(where){
| > var is_mac=(navigator.platform.indexOf("ac") != -1);
| > (document.all && is_mac)?
| > alert("Select \"Print\" from the menu") : where? where.window.print() :
| > window.print();
| > }
| >
| > function writeOutPrintLink(){
| > document.getElementById('printLink').innerHTML = '<a
| > href="javascript
![Stick Out Tongue :p :p](/styles/default/custom/smilies/tongue.gif)
rint_page();">Print this</a>'
| >
| > }
| >
| > </script>
| >
| > Put this in the body of the document -
| >
| > <body onload="writeOutPrintLink();">
| > <span id="printLink"></span>
| >
| > That way, the link only shows up if you have javascript enabled.
| >
| >
| > --
| > Murray
| > ============
| >
| > | > > Thanks chuck, but unfortunatley it doesnt work, i'm assuming it's
| > > something
| > > to do with ' onClick="printSpecial()" ' should there not be somesort of
| > > function called printSpecial, the page loads fine, but i get an error in
| > > the
| > > status bar at the bottom when i click the 'Print this Page' button.
| > >
| > > I am using IE6, frontpage 2003.
| > >
| > > Al...
| > >
| > >
| > > "Chuck Davis" wrote:
| > >
| > >>
| > >> | > >> >I have a Web Page with two forms and a databse results section
| > >> >
| > >> > the database results are at the top of the page.
| > >> >
| > >> > the first form adds the data to the database and updates the page
| > >> >
| > >> > the second form inputs the data required for the database results query
| > >> > to
| > >> > ignore all records entered before the button on form 2 was pressed.
| > >> >
| > >> > what i'd like to do is add a print button so that only the DBR are
| > >> > printed
| > >> > and nothing else.
| > >> >
| > >> > Is it possible? How do I do it?
| > >> >
| > >> > Al...
| > >> >
| > >> > P.S. Even if you cant help thanks for reading this far anyway.
| > >> Al, insert this in the form choosing Web Components from the Insert
| > >> drop
| > >> down menu > Advanced Controls Component Type> HTML> click Finish. The
| > >> enter
| > >> this in the dialog box that opens:
| > >> <form id="printMe" name="printMe"> <input type="button" name="printMe"
| > >> onClick="printSpecial()" value="Print this Page"> </form>
| > >>
| > >>
| > >>
| > >>
| >
| >
| >