Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 27285 invoked from network); 21 Feb 2011 05:03:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Feb 2011 05:03:25 -0000 Received: (qmail 40563 invoked by uid 500); 21 Feb 2011 05:03:22 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 40270 invoked by uid 500); 21 Feb 2011 05:03:19 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 40260 invoked by uid 99); 21 Feb 2011 05:03:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Feb 2011 05:03:18 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of elephantium@gmail.com designates 209.85.214.46 as permitted sender) Received: from [209.85.214.46] (HELO mail-bw0-f46.google.com) (209.85.214.46) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Feb 2011 05:03:13 +0000 Received: by bwz15 with SMTP id 15so916505bwz.5 for ; Sun, 20 Feb 2011 21:02:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=mXpxNmFeb5Ib+Jsj0TVhsnoGU2gIGEY9u5C2Z6c3zDs=; b=P+pMy36dQC4u85KUMp4Yzjtb/ycIdYBflmHJTOZrL9FLG57axsEDEDsudmG3zmUc1P YlqM8iajn/ZfniF+qgqja/LQ97hZMlJtTi1k7ODzDxAzhnK8YPKbqncWDv2++vmKFQ+Y Zm7CJPv23uRxwUPVgvxKdLnFzEOVg3OLevBfA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=n1o9wwLmSfQvtozxn17bds37VbNtSEYM2Kf289I5hs4kddOkGv9U4rUQe4uLLjFzoF t9xAeUDrfmz4nqrTQeOpCIa88BYiL8d+gIe9yb7Kmsq+DHHgdZwRp5I+rjcVCKatKqR0 sj1VBnFMccZTuFPrqKyHBRcT6Jx9zAZMU1RT0= MIME-Version: 1.0 Received: by 10.204.52.75 with SMTP id h11mr885081bkg.67.1298264571398; Sun, 20 Feb 2011 21:02:51 -0800 (PST) Received: by 10.204.151.66 with HTTP; Sun, 20 Feb 2011 21:02:51 -0800 (PST) In-Reply-To: <30974450.post@talk.nabble.com> References: <574e8ad80905110213i4f7cd82cq43db640f0f3ff882@mail.gmail.com> <27999481.post@talk.nabble.com> <30946577.post@talk.nabble.com> <30946597.post@talk.nabble.com> <30946620.post@talk.nabble.com> <30971331.post@talk.nabble.com> <30974347.post@talk.nabble.com> <30974450.post@talk.nabble.com> Date: Sun, 20 Feb 2011 23:02:51 -0600 Message-ID: Subject: Re: sending the report directly to the printer From: Brian Thompson To: Struts Users Mailing List Cc: "@rju" Content-Type: multipart/alternative; boundary=001636c5ba379a4c2a049cc3c6c6 --001636c5ba379a4c2a049cc3c6c6 Content-Type: text/plain; charset=UTF-8 Then no, there's no way to do this. What you *can* do is: User clicks HTML button --> Struts action/Jasper report displays --> some javascript on the report calls window.print(); --> user clicks "OK" on the Print dialog. -Brian On Sun, Feb 20, 2011 at 10:27 PM, @rju wrote: > > yes user is clicking html/jsp button only > > Brian Thompson-5 wrote: > > > > Where is the user clicking "ok"? Do you mean an HTML button? Or the > > browser's print dialog box? > > > > At the very least, the user will see the print dialog...there's no way > > around that for a web page (which, ultimately, is what Struts is sending > > to > > the user). > > > > -Brian > > > > > > > > On Sun, Feb 20, 2011 at 9:46 PM, @rju > wrote: > > > >> > >> no sir. > >> no. user interaction means he will press ok button. > >> there "no user interaction" means after clicking "ok", some guys > >> suggested > >> me that use onLoad () then write one listener for print. so here no user > >> interaction means after pressing ok button. > >> > >> user will interact only by pressing ok button. after that ok button will > >> call the struts action. > >> so here now without any user interaction i need the print out after > >> calling > >> action unlike a report pdf. > >> hope u got my point > >> > >> > >> Dave Newton-6 wrote: > >> > > >> > I have no idea. Personally, I'd be a little surprised if it was > >> > possible to print from a website with *no* user interaction without > >> > using something like ActiveX, an applet, or *something*. > >> > > >> > Dave > >> > > >> > On Sun, Feb 20, 2011 at 11:06 AM, @rju > >> wrote: > >> >> > >> >> sir please help me > >> >> i ve already told my requirement as follows > >> >> am using struts2-jasper plugin am calling my action through jquery. > >> >> nw i need to print the report directly from printer when i ve pressed > >> ok > >> >> button. > >> >> ok button will call the action. > >> >> please help me ragarding this.Its very urgent for me and it is the > >> main > >> >> requirement for this project... > >> >> > >> >> > >> >> > >> >> Dave Newton-6 wrote: > >> >>> > >> >>> He's saying "Hit Ctrl-P from inside a PDF reader. > >> >>> > >> >>> On Wednesday, February 16, 2011, @rju > >> >>> wrote: > >> >>>> > >> >>>> if dont mind can you tell in detailed manner > >> >>>> -- > >> >>>> View this message in context: > >> >>>> > >> > http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946620.html > >> >>>> Sent from the Struts - User mailing list archive at Nabble.com. > >> >>>> > >> >>>> > >> >>>> > >> --------------------------------------------------------------------- > >> >>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > >> >>>> For additional commands, e-mail: user-help@struts.apache.org > >> >>>> > >> >>>> > >> >>> > >> >>> > --------------------------------------------------------------------- > >> >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > >> >>> For additional commands, e-mail: user-help@struts.apache.org > >> >>> > >> >>> > >> >>> > >> >> > >> >> -- > >> >> View this message in context: > >> >> > >> > http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30971331.html > >> >> Sent from the Struts - User mailing list archive at Nabble.com. > >> >> > >> >> > >> >> --------------------------------------------------------------------- > >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > >> >> For additional commands, e-mail: user-help@struts.apache.org > >> >> > >> >> > >> > > >> > --------------------------------------------------------------------- > >> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > >> > For additional commands, e-mail: user-help@struts.apache.org > >> > > >> > > >> > > >> > >> -- > >> View this message in context: > >> > http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974347.html > >> Sent from the Struts - User mailing list archive at Nabble.com. > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > >> For additional commands, e-mail: user-help@struts.apache.org > >> > >> > > > > > > -- > View this message in context: > http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974450.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > --001636c5ba379a4c2a049cc3c6c6--