arun
Location : india
Member since : Sep 9, 2004
Messages : 2
|
Oct 13, 2004 at 9:17 AM
Hi all,
I have strange problem i tried with my code i couldn't find my problem is
1)I have encode few dynamic images to browser using followin code
Image img1 =new PJAToolkit().getImage(sgImgpath + "/image.jpg");
PJABufferedImage thumbImage=new PJABufferedImage(img1.getWidth(null)+8, img1.getHeight(null)*prarPgBrkVec.size()+0,PJABufferedImage.TYPE_INT_RGB);
Graphics2D graphics2D =(Graphics2D)thumbImage.getGraphics();
if(condition){
graphics2D.drawImage(img, 0, lonuheight, img.getWidth(null), img.getHeight(null), null);
}
//at last i am output to browser using following ..code
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(response.getOutputStream());
encoder.encode(thumbImage);
response.getOutputStream().close ();
The problem is:
It displays all the images when it opens in a browser butm, when i give print it prints only first page when there is more than one page even it is not showing in print preview also.
Thanks in advance,
arun
[Subject updated by moderator] --- arun
|