Google Community
Latest Forums Rules Resources
Custom Search

Go Back   Google Community > Webmaster Forums > Web Design, Coding & Programming Forum

GoogleCommunity Sponsor
Cirtex Hosting
Use coupon "forum" for 50% Off!

Reply
 
LinkBack Thread Tools Display Modes
Old 09-25-2007, 08:15 AM   #1 (permalink)
Noogle
 
Join Date: Sep 2007
Posts: 0
Thanks: 0
Thanked 0 Times in 0 Posts
bubs75 is on a distinguished road
Delphi7 Jpeg's TList and Rave PDF Writer

Hi, I'm wondering if anyone can help me, I've written a version of this code using bitmaps succesfully, but the imagelist is populated from a scanner and i get an out of memory while expanding TMemoryStream error on documents over 25 pages.

As below i get a blank page in the pdf for every page scanned, I know the pages are scanned correctly as they are shown in an image control on the form.

procedure TForm10.FormCreate(Sender: TObject);
begin
ImageList := TList.Create;
end;

procedure TForm10.RvNDRWriter1Print(Sender: TObject);
var
i:integer;
temp:TJPEGImage;
ImageStream:TStream;
begin
With (sender AS TBaseReport) do begin
ImageStream := TMemoryStream.Create;
temp := TJPEGImage.Create;
temp.Assign(ImageList[0]);
temp.SaveToStream(ImageStream);
ImageStream.Position :=0;
PrintImageRect(0,0,PageWidth,PageHeight,ImageStrea m,'JPEG');
For i := 1 to ImageList.Count-1 do begin
NewPage;
temp.Assign(imageList[i]);
temp.SaveToStream(ImageStream);
ImageStream.Position :=0;
PrintImageRect(0,0,100,100,ImageStream,'JPG');
end;
end;
ImageStream.Free;
temp.Free;
end;


Can anyone see why this is producing blank pages ?
bubs75 is offline   Reply With Quote
 
Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hi I am writer, please help Uksvets General Discussion 5 07-18-2007 12:42 AM


All times are GMT -8. The time now is 12:06 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004–2007 Google Community