Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Print a document without showing it? I'm almost there... but...

Reply
Thread Tools

Print a document without showing it? I'm almost there... but...

 
 
Julius Mong
Guest
Posts: n/a
 
      04-17-2004
Dear all, I have :

function printPage() {

top.printer.location.href="svg/"+svg[document.getElementById("currIndex").va
lue]+"_1.svg";
setTimeout("top.printer.focus();top.printer.print( );", 5000);
}

in a frame called right in ta frameset:

<frameset cols="150,465,185,*" bordercolor='#ffffff' border='0' >
<frame name='left' src='left.html' scrolling='auto' border='0' />
<frame name='center' src='page.html' scrolling='no' border='0' />
<frame name='right' src='right.html' scrolling='auto' border='0' />
<frame name='printer' src='blank.html' scrolling='auto' border='0' />
</frameset>

Now I run the function printPage in right.html to load an svg document in
printer frame and then gain focus and print it. If I set the cols to 150, *,
185, * (i.e. showing the printer frame in the viewable win area) then it
prints fine with the svg loaded, but if i did just 150,465,185,* (i.e. not
showing the printer frame), no matter how long I wait for hte SVG to load
using setTimeOut it will print a blank page...

Can someone tell me what I'm missing? Or am I out of luck here?

Thanx, Jules


 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
print document without transparent font color yoyoy ASP .Net 0 10-19-2010 04:20 AM
print a vs print '%s' % a vs print '%f' a David Cournapeau Python 0 12-30-2008 03:19 AM
javax.print: impossible to print a PDF/PS document with 2 pages persheet? Pascal Java 0 10-24-2008 10:08 AM
Problem - I want to print Current Output of Pdf file and should print once.I get print dialog box but it is not working keto Java 0 05-30-2007 11:27 AM
Unlarging the print to print using PDF file to print Bun Mui Computer Support 3 09-13-2004 03:15 AM



Advertisments