DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   Favorites   Watched Topics     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TPrintPreview Zlib

 
   Reply to topic       DELPHI AREA Forum Index -> DELPHI AREA's Products
View previous topic :: View next topic  
Author Message
BrianO
Member


Joined: 09 Oct 2004
Posts: 2

PostPosted: 10/10/04 12:04    Post subject: TPrintPreview Zlib Reply with quote

Hi,

I am using D6 Pro, and WinXpPro.

Just testing compression, and as far as I can determine, it
is not working with the configuration that I have.

The Zlib DLL that I had was an old one from 1998, so I upgraded
to the latest, 1.2.2, but no difference.

Using the test program supplied, General.dpr, whether I use
compression or not, I get a ppv file size of 768,388.

Just to be sure, I hard-coded the compression in Preview.pas
and tried it with and without compression.

Eg.

procedure TPrintPreview.SaveToStream(Stream: TStream);
var
Data: Integer;
EncoderStream: TStream;
begin
//// {$IFDEF ZLIB}
EncoderStream := TCompressionStream.Create(clDefault, Stream);
//// {$ELSE}
//// EncoderStream := Stream;
//// {$ENDIF}

There is a later version of Zlib.pas in the new DLL components
download, however it appears to require that the ZLIB DLL be
compiled using the Windows MakeFile. I'm afraid I am not familiar
with C and Windows to acomplish that.

IE. it requires Eg..obj versions of Adler.c etc.

I downloaded from :

http://www.zlib.net/

I also tried zlibex.pas from base2ti.com, but had no luck
with that either. It is very version specific for zlib. I tried
changing that for different versions, but no luck.

All in all, not a very productive day.

As I see this as a fairly important area of TPrintPreview,
I would like to resolve it. Any suggestions would be appreciated.

TIA
Brian

_________________
BrianO
Back to top
View user's profile
Johnny_Bit
Moderator


Joined: 15 Jun 2003
Posts: 171

PostPosted: 10/10/04 15:00    Post subject: Reply with quote

http://www.dellapasqua.com/delphizlib/

it works.

ps. current stable release is 1.2.1

of course you can simply change specific parts to newest version...
Back to top
View user's profile Visit poster's website
Display posts from previous:   
   Reply to topic       DELPHI AREA Forum Index -> DELPHI AREA's Products All times are GMT
Page 1 of 1

Add to favorites

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group