hi,

i am facing a critical problem using WebPDFReports 1.0.

i used to generate quite a number of pdf daily, for each generation, it
may contain up to 80 pages. for the first generation, it always works, but
if i continue to generate the pdf , it just gives No Instance error. Once
it occurs, i need to restart the webobject instance.

the other modules are working except the pdf component. is it because the
number of pages generated is too big ?

please advice.

rgds,
koksiong

ps: the following are the code

    public WOActionResults goPrintAction()
    {
        generateVehicleDeliveryListPDF nextPage =
(generateVehicleDeliveryListPDF)pageWithName("generateVehicleDeliveryListPDF");
                nextPage.setEc(ec);
                nextPage.setATransactionArray(aTransactionArray.mutableClone());
                PDFPage pdfPage = (PDFPage)pageWithName("PDFPage");
                HTML2PDFConvertor pdfConvertor = new HTML2PDFConvertor();
                pdfConvertor.createDocument("US
Letter",HTML2PDFConvertor.LandscapeOrientation);
                pdfConvertor.setPaperSize(new PaperSize(792,612));
                pdfConvertor.setTopMargin(5);       
pdfConvertor.setLeftMargin(5);
                pdfConvertor.setRightMargin(5);
pdfConvertor.setBottomMargin(5);
                pdfConvertor.setPrintsVerticallyCentered(false);
                pdfPage.setConvertor(pdfConvertor);

                pdfPage.appendComponent(nextPage);

        return pdfPage;
    }

 _______________________________________________
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