Hi, if I launch self.print() in a svg function also print all the HTML window (html+svg image) but this distortion I never seen. The image is perfect.
But I'd like to print only svg image not html+svg embed. I hope in your helps. Alessandro from Italy --- In svg-developers@yahoogroups.com, "Chris Peto" <[EMAIL PROTECTED]> wrote: > Hi, > > Like I said if you print only the SVG it will get distorted, anyways you > can call self.print() direct in svg menu or JS. No need to call from > HTML. > > > > 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 16:29 > To: svg-developers@yahoogroups.com > Subject: [svg-developers] Re: Print svg image > > > > I try this solution but not resolve my problem. > > This is my SVG code > > .... > <script type=\"text/javascript\" xlink:href=\"../Si.js\"/>\n"); > > //DEFINIZIONI PER PERSONALIZZARE IL CONTEXT MENU > <defs> > <menu id='MyMenu' xmlns='http://foo'> > <header>Custom Menu</header> > .... > .... > <separator/> > <item id='stampaMyMenuItem' enabled='yes' onactivate='printMe > (self)'>Print me</item> > </menu> > </defs>\n"); > > <script type='text/javascript'>\n"); > <![CDATA[\n"); > > ... > ... svg code image > ... > > Then I redefine menu etc. etc. > When I choice Print me in my svg menu I want to print only svg image. > Instead print html (that also embed my svg) > > My HTML code than embed this svg is: > > > <html> > <head> > <script language="javascript"> > > function printMe(oggetto) > { > chi.print(); > } > </script> > </head> > <body ..... > ... > <div....> > ... > <embed id='svg' left='10' top='30' width='1231' height='808.0' > type='image/svg+xml' src="piantasvg?dataRif=10-03-2005"/> > > </div> > </body> > </html> > > > So in this print method launch "self" that svg passed but printMe > method print all html code. > > I hope you have a solution for my problem. > Thanks for all your help > > Alessandro > > > > > > > > > > --- In svg-developers@yahoogroups.com, "Chris Peto" <[EMAIL PROTECTED]> > wrote: > > 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.30011 7 > > 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.30011 7 > 6/ > > > D=groups/S=1706030389:HM/EXP=1110549147/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=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] > 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=129fci4a4/M=298184.6018725.7038619.30011 76/ > D=groups/S=1706030389:HM/EXP=1110555161/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=629103558> > > > _____ > > 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 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/