Yes, sorry about that document thing.
 
"Access denied"
Try self.print().
 
I use a popup that has an iframe, so no distortion, that calls
self.print() after onload and the iframe svg has set a variable that it
has also finished loading:
 
in onload in svg:
 
_onload(evt) {
  top.svgloaded = 1;
}
 
In HTML:
 
 
var svgloaded=0;
_onload(e) {
 
if(!svgloaded) {
  setTimeout(1000,"_onload()");
  return;
 }
 
self.print();
}//_onload
 
Hope this helps.  Not sure of setTimeout parameter order (just took it
off the top of my head).
 
 

Mit freundlichen Grüßen/Regards
Chris Peto
Freelance System Development, Resource Solutions
Founding Partner, Vectoreal
-------------------------------------
Germany
Mobile: +49 (0) 173 308 7843
Tel:+49(0) 6103 80 21 98
http://www.resource-solutions.de <http://www.resource-solutions.de/> 
http://www.vectoreal.com <http://www.vectoreal.com/> 
SVG editor: http://www.resource-solutions.de/svgeditor.html
mailto:[EMAIL PROTECTED]
------------------------------------
Member of: SPARK - SVG Programmers' Application Resource Kit
SVG site:  http://www.schemasoft.org/svg/main.svg
HTML site: http://www.schemasoft.org/





-----Original Message-----
From: pera76it [mailto:[EMAIL PROTECTED] 
Sent: Donnerstag, 10. März 2005 14:52
To: svg-developers@yahoogroups.com
Subject: [svg-developers] Re: Print svg image



Hi, thank for your help.
I try document.print() in a svg scripting function or in a javascript 
in html code that embed my svg image but "document" haven't print() 
method. So I try with window.print() and my printer print my svg 
creation. (But not only svg)

Another problem.
If I launch window.print() from a javascript of html code, my printer 
print all my application with button and so on.
But I want to print only svg image.

So I launch window.print() from a svg script function but in run time 
appear an alert : "permission denied". Why this? 
What's permission that I must have.

Thanks for your help.

Alessandro Peruzzi




--- In svg-developers@yahoogroups.com, "Chris Peto" <[EMAIL PROTECTED]> 
wrote:
> Hi,
>  
> document.print();
>  
> Make sure you have your svg in a frame or iframe so that it will 
not get
> distorted by printing.
>  
>  
> 
> Mit freundlichen Grüßen/Regards
> Chris Peto
> Freelance System Development, Resource Solutions
> Founding Partner, Vectoreal
> -------------------------------------
> Germany
> Mobile: +49 (0) 173 308 7843
> Tel:+49(0) 6103 80 21 98
> http://www.resource-solutions.de <http://www.resource-
solutions.de/> 
> http://www.vectoreal.com <http://www.vectoreal.com/> 
> SVG editor: http://www.resource-solutions.de/svgeditor.html
> mailto:[EMAIL PROTECTED]
> ------------------------------------
> Member of: SPARK - SVG Programmers' Application Resource Kit
> SVG site:  http://www.schemasoft.org/svg/main.svg
> HTML site: http://www.schemasoft.org/
> 
> 
> 
> 
> 
> -----Original Message-----
> From: pera76it [mailto:[EMAIL PROTECTED] 
> Sent: Donnerstag, 10. März 2005 12:41
> To: svg-developers@yahoogroups.com
> Subject: [svg-developers] Print svg image
> 
> 
> 
> Hello, in my application I must print to paper an autogenerated svg 
> image.
> 
> My application use a browser but I disabled the toolbar of browser.
> 
> My scope is to launch a print command from a personal menu context 
of 
> svg image but i don't understand how to do it.
> 
> Thanks for your help and sorry for my English.
> 
> 
> 
> 
> 
> 
> 
> -----
> To unsubscribe send a message to:
> [EMAIL PROTECTED]
> -or-
> visit http://groups.yahoo.com/group/svg-developers and click "edit 
my
> membership"
> ---- 
> 
> 
> 
> Yahoo! Groups Sponsor      
> 
> ADVERTISEMENT
>  
> 
<http://us.ard.yahoo.com/SIG=129tqbjbf/M=298184.6018725.7038619.300117
6/
> 
D=groups/S=1706030389:HM/EXP=1110541273/A=2593423/R=0/SIG=11el9gslf/*h
tt
> p://www.netflix.com/Default?mqso=60190075> click here      
>  
> <http://us.adserver.yahoo.com/l?
M=298184.6018725.7038619.3001176/D=group
> s/S=:HM/A=2593423/rand=427719095>       
> 
> 
>   _____  
> 
> Yahoo! Groups Links
> 
> 
> *      To visit your group on the web, go to:
> http://groups.yahoo.com/group/svg-developers/
>   
> 
> *      To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]
subject=Unsubscribe> 
>   
> 
> *      Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/> . 
> 
> 
> 
> 
> [Non-text portions of this message have been removed]





-----
To unsubscribe send a message to:
[EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my
membership"
---- 



Yahoo! Groups Sponsor   

ADVERTISEMENT
 
<http://us.ard.yahoo.com/SIG=1295fbefj/M=298184.6018725.7038619.3001176/
D=groups/S=1706030389:HM/EXP=1110549147/A=2593423/R=0/SIG=11el9gslf/*htt
p://www.netflix.com/Default?mqso=60190075> click here   
 
<http://us.adserver.yahoo.com/l?M=298184.6018725.7038619.3001176/D=group
s/S=:HM/A=2593423/rand=669233527>       


  _____  

Yahoo! Groups Links


*       To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/
  

*       To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 
  

*       Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <http://docs.yahoo.com/info/terms/> . 




[Non-text portions of this message have been removed]



-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to