Hi Kelleher ,

Thanks for quick reply,

Iam using WebObjects 5.4.3 with Project wonder. In the application iam
generating pdf's using JasperReports.
Previously i used old Ajax.framework,ErExtentions.framework,in this case all
of the PrintPdf's was working fine.
Now am updated my Ajax.framework,ErExtentions.framework,in this case
PrintPdf is not working means the application
is strucked(I coud not click on any tab or any link and the pdf is not
generated), I need to relaunch the application. My print pdf code
is as follows


 public WOComponent printJasperReports() {
        String buString=null;
        HashMap map = new HashMap();
        URL reportURL =
application().resourceManager().pathURLForResourceNamed("Reports/Invoice/MyReport.jasper",
"CCBViewJava", null);
        String basePath =
reportURL.getPath().substring(0,reportURL.getPath().lastIndexOf('/'));
        WOResourceManager manager = application().resourceManager();

        String imagePath =
CCBUtilities.getBasePath("SampleWrapper",manager);
        map.put("imagePath",imagePath);

        map.put("basePath",basePath);
        JRDataSourceScriptlet source = new JRDataSourceScriptlet(new
NSArray(bill));
        JRPDFPage page = (JRPDFPage)pageWithName("JRPDFPage");
        try{
            byte[]
bytes=JasperRunManager.runReportToPdf(reportURL.getPath(),map,source);
            page.data = bytes;

        }catch(Exception e){
            e.printStackTrace();
        }
        return page;
    }

in wod:
-----------
ModalWindowBottom: JSModalWindow {
    isResizable = true;
    showScrollbars = true;
    action = printJasperReports;
    height = 640;
    width = 576;
    windowName = "_blank";
}


If i replace the old frameworks for the application it is working fine
without change any code.
I have updated my frameworks for AjaxFlexibleFileUpload to use in my
application.

Thanks
Venu

On Tue, Sep 21, 2010 at 5:11 PM, Kieran Kelleher <[email protected]>wrote:

> Venu,
>
> more details?
>
>
>
>
> On Sep 21, 2010, at 4:57 AM, Venu A wrote:
>
> Hi All,
>
> When I used old Ajax.framework with WebObjects 5.4.3 wonder frameworks,
> JasperReport's JasperRunManager.runReportToPdf method
>  is working correctly, and producing PDF.
> But When I used new Ajax.framework, JasperReport's 
> *JasperRunManager.runReportToPdf
> *is getting *struck in this method itself* and
> after re-launch only app is working,* until that it is in idle state.*
> How to resolve this?
>
> Thanks in advance,
> Venu
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com
>
> This email sent to [email protected]
>
>
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to