• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Ajax.framework problem when printing JasperReports
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ajax.framework problem when printing JasperReports


  • Subject: Re: Ajax.framework problem when printing JasperReports
  • From: Venu A <email@hidden>
  • Date: Tue, 21 Sep 2010 18:02:13 +0530

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 = "">         
        }catch(Exception e){
            e.printStackTrace();
        }
        return page;
    }

in wod:
-----------
ModalWindowBottom: JSModalWindow {
    isResizable = true;
    showScrollbars = true;
    action = "">     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@hidden> 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@hidden)

This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Ajax.framework problem when printing JasperReports
      • From: Kieran Kelleher <email@hidden>
References: 
 >Ajax.framework problem when printing JasperReports (From: Venu A <email@hidden>)
 >Re: Ajax.framework problem when printing JasperReports (From: Kieran Kelleher <email@hidden>)

  • Prev by Date: NoClassDefFoundError on ERXValidationException at startup
  • Next by Date: Re: Ajax.framework problem when printing JasperReports
  • Previous by thread: Re: Ajax.framework problem when printing JasperReports
  • Next by thread: Re: Ajax.framework problem when printing JasperReports
  • Index(es):
    • Date
    • Thread