hey in my java script file am calling action as follows and it displays the
jasper report.

window.open("itemsNotInPackageReport.action?branchName=" +
$('select#branchName option:selected').val());

so now i want to send this to printer directly when i am calling action.
Is it possible???

i ve used like this also

window.open("itemsNotInPackageReport.action?branchName=" +
$('select#branchName option:selected').val());
window.print();

but it is printing the empty page but generating the report successfully

action in struts.xml

<action 
                name="itemsNotInPackageReport" 
                method="getItemsNotInPackageReport" 
            
class="com.ae.school.web.action.sales.reports.ItemsNotInPackageAction"> 
<result name="itemsNotInPackageReport" type="jasper">
            /jasper/sales/ItemsNotInPackageReport.jasper
            itemNameList
            PDF              
        </result>
        </action>

please help me its urgent for me








@rju wrote:
> 
> hello boss
> previously you ve helped a lot
> hope u remember me.
> boss am giving action call through ajax.
> so after that action i dont want my result as a jasper report i want to
> send that report directly to the printer... dat to without user
> interaction
> 
> Dave Newton-6 wrote:
>> 
>> He's saying "Hit Ctrl-P from inside a PDF reader.
>> 
>> On Wednesday, February 16, 2011, @rju <nagarjunabatt...@gmail.com> 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-unsubscr...@struts.apache.org
>>> For additional commands, e-mail: user-h...@struts.apache.org
>>>
>>>
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30948479.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to