No Instance issue from WebPDFReports 1.0
No Instance issue from WebPDFReports 1.0
- Subject: No Instance issue from WebPDFReports 1.0
- From: "Koksiong" <email@hidden>
- Date: Mon, 24 Oct 2005 12:50:47 +0800 (SGT)
- Importance: Normal
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden