Current location: Hot Scripts Forums » General Community » Script Requests » printting


printting

Reply
  #1 (permalink)  
Old 09-12-03, 12:35 AM
afkaar afkaar is offline
Newbie Coder
 
Join Date: Aug 2003
Location: UaE
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
printting

can i print from web site a page exactly whit A4 size?

is their any script doing that?
Reply With Quote
  #2 (permalink)  
Old 09-12-03, 04:02 AM
Henry's Avatar
Henry Henry is offline
Wannabe Coder
 
Join Date: Jul 2003
Location: Brisbane, Australia
Posts: 218
Thanks: 0
Thanked 0 Times in 0 Posts
hey

i hope this helps

<html>

<head>
<script type="text/javascript">
function printpage()
{
window.print()
}
</script>

</head>
<body>

<form>
<input type="button" value="Print this page" onclick="printpage()">
</form>

</body>
</html>
__________________
henerz
Reply With Quote
  #3 (permalink)  
Old 09-12-03, 12:29 PM
clay@lazarusid.com clay@lazarusid.com is offline
Newbie Coder
 
Join Date: Aug 2003
Location: Flint, Michigan
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Providing your printer is loaded with A4 paper, pretty much everything you print will be exactly A4 size. The challenge would be getting it to print in some other size.
__________________
<a href="http://www.lazarusid.com/">www.lazarusid.com</a>

Custom script development
Reply With Quote
  #4 (permalink)  
Old 09-12-03, 10:12 PM
afkaar afkaar is offline
Newbie Coder
 
Join Date: Aug 2003
Location: UaE
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
but some time the page I want to print from yhe web devided into 2 pages. it depend on the length of the page.

i want the result of my query dosn't ecseed the A4 size when printting.

I hope you understand me
Reply With Quote
  #5 (permalink)  
Old 09-13-03, 06:33 AM
clay@lazarusid.com clay@lazarusid.com is offline
Newbie Coder
 
Join Date: Aug 2003
Location: Flint, Michigan
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Your page is going over because it has more content than will fit on one A4 page. Reduce the amount of content and it will fit.

If you're insistent on controlling exact page layout, I would recommend that you look at a different format for presenting your material. PDF documents are pretty easy to generate and are very precise in their formatting.

You might try letting us in on what it is you're trying to format. There's no generic "make all this stuff fit on a piece of A4" magic bullet. There are possibly ways to make it work in a specific case.
__________________
<a href="http://www.lazarusid.com/">www.lazarusid.com</a>

Custom script development
Reply With Quote
  #6 (permalink)  
Old 09-14-03, 02:10 AM
afkaar afkaar is offline
Newbie Coder
 
Join Date: Aug 2003
Location: UaE
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
how can i controll my content to make fit to the A4 size?
i mean is there any cod says:" fi the length of the page exceeding this mutch, then stop." ?

i'm displaying some data from (my sql) DBMS by PHP codes.

Last edited by afkaar; 09-14-03 at 02:13 AM.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 11:46 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.