Re: sending the report directly to the printer

2011-02-20 Thread Dave Newton
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 requiremen

Re: sending the report directly to the printer

2011-02-20 Thread Brian Thompson
On Sun, Feb 20, 2011 at 10:18 AM, Dave Newton 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 > > Indeed. Browsers restrict such fun

Re: sending the report directly to the printer

2011-02-20 Thread Chris Pratt
If this is for an internal application for your company, you may be able to use the Java Print API and print from the server, but as everyone else has mentioned, you cannot have the browser start a print job without user interaction. You can use the JavaScript window.print() function to bring up t

RE: sending the report directly to the printer

2011-02-20 Thread Martin Gainty
t facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Sun, 20 Feb 2011 11:18:08 -0500 > Subject: Re: sending the report directly to the printer > From: davelnew...@gmail.com > To: user@struts.apache.org > CC: n

Re: sending the report directly to the printer

2011-02-20 Thread @rju
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

Re: sending the report directly to the printer

2011-02-20 Thread Brian Thompson
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

Re: sending the report directly to the printer

2011-02-20 Thread @rju
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, i

Re: sending the report directly to the printer

2011-02-20 Thread Brian Thompson
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 c

Re: sending the report directly to the printer

2011-02-20 Thread @rju
exactly i did but the problem here is.. see my code var urlx="myaction.action"; var x= window.open(urlx); x.window.print(); here it is invoking printer but empty page is printing because the action is taking time to load. thats y am getting empty page so any alternative? Brian Thompson-5 w

Re: sending the report directly to the printer

2011-02-20 Thread Brian Thompson
Try putting the window.print() in the code for the page at urlx. -Brian On Sun, Feb 20, 2011 at 11:39 PM, @rju wrote: > > exactly i did > but the problem here is.. see my code > > var urlx="myaction.action"; > var x= window.open(urlx); > x.window.print(); > > here it is invoking printer > but

RE: sending the report directly to the printer

2011-02-20 Thread Jerson John
erson -Original Message- From: Brian Thompson [mailto:elephant...@gmail.com] Sent: Monday, February 21, 2011 2:47 PM To: Struts Users Mailing List Cc: @rju Subject: Re: sending the report directly to the printer Try putting the window.print() in the code for the page at urlx. -Brian On Sun, Feb 20,

Re: sending the report directly to the printer

2011-02-21 Thread @rju
here urlx is nothing but an action in that action i have a code as follows /jasper/sales/ItemsNotInPackageReport.jasper itemNameList PDF so now what to do? how should i include that window.prin

Re: sending the report directly to the printer

2011-02-21 Thread Brian Thompson
Can't you just put it in your jsp for the report action? -Brian On Mon, Feb 21, 2011 at 2:24 AM, @rju wrote: > > here urlx is nothing but an action > in that action i have a code as follows > name="myaction" >method="getItemsNotInPackageReport" > > class="com.ae

Re: sending the report directly to the printer

2011-02-21 Thread @rju
actually according to my architecture in my company we have to call our action through jquery. but any how if it is working in another way i can manage so your idea here is to put window.print() in jsp page right ok if i do so what will happen? i am not getting your point Brian Thompson-5 w

Re: sending the report directly to the printer

2011-02-22 Thread @rju
ok sir i hav another problem am using sub reports in struts2-jasper report. in that am able to pass the parameters to the main report by creating the field as "reportParams." by following this link "http://www.agileevidence.com/2009/01/jasper-reports-using-struts2-report.html"; hope u know this.

Re: sending the report directly to the printer

2011-02-22 Thread @rju
sir u said "Can't you just put it in your jsp for the report action?" please elaborate this sir. i am not getting your point. please sir Brian Thompson-5 wrote: > > Can't you just put it in your jsp for the report action? > > -Brian > > On Mon, Feb 21, 2011 at 2:24 AM, @rju wrote: > >> >>

Re: sending the report directly to the printer

2011-02-22 Thread Brian Thompson
Could you post your code for your report? -Brian On Tue, Feb 22, 2011 at 5:15 AM, @rju wrote: > > sir > u said "Can't you just put it in your jsp for the report action?" > please elaborate this sir. i am not getting your point. > please sir > > > Brian Thompson-5 wrote: > > > > Can't you jus

Re: sending the report directly to the printer

2011-02-22 Thread Dave Newton
On Tue, Feb 22, 2011 at 11:29 AM, Brian Thompson wrote: > Could you post your code for your report? Why? This isn't an issue with the report itself, is it? Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For ad

Re: sending the report directly to the printer

2011-02-22 Thread Brian Thompson
On Tue, Feb 22, 2011 at 10:31 AM, Dave Newton wrote: > On Tue, Feb 22, 2011 at 11:29 AM, Brian Thompson wrote: > > Could you post your code for your report? > > Why? This isn't an issue with the report itself, is it? > > Dave > I hope not -- I have no experience with Jasper reports. OTOH, he's

Re: sending the report directly to the printer

2011-02-22 Thread @rju
i am sending files UserWiseSalesPayInSlipReportRequest.java, UserWiseSalesPayInSlipReportAction.java, UserWiseSalesReport.jsp , UserWiseSalesPayinSlipReport.jsp, code in struts.xml files payInSlip in UserWiseSalesReport.jsp button will result UserWiseSalesPayinSlipReport.jsp. in that netAmount

Re: sending the report directly to the printer

2011-02-28 Thread Ken McWilliams
This requirement would only make sense to me if this is in an intranet where you have direct access to the printers. Then you could somehow get your app to talk a print server. It would be quite possible to make an intelligent guess as to which printer in the company to send the printout to based