Subject Re: [IBO] TIB_OleContainer URGENT
Author Thomas Steinmaurer
Hello all,

> NOTE: In the latest version of IBO (4.6B) I removed the TIB_OleContainer
> component due to its dependency on the ZLIB unit and all the problems it
> caused my automatic installation. It still exists but you have to manually
> install them using your own package.
>
> It could also have to do with differences in the ZLIB unit between the one I
> tried to provide and the stock one added to later versions of Delphi.
>
> In any case, ZLIB is very likely the culprit. Perhaps Thomas can jump in
> here and lend a hand since he is the primary contributor of this component.

Sure.

The usage of ZLib in the IB_OleContainer component might be the problem
when trying to install the component, because other (Borland?) component
depend on ZLib as well ...

ZLib seems not to be the problem when using the SaveAsDocument method
which directly comes from the TOleContainer component, because removing
the usage of the ZLib compression/decompression code when
storing/loading an OLE object from a BLOB field and using the
SaveAsDocument method will corrupt the resulting document as well.

After searching the newsgroups via Google groups, there seems to be a
problem with the SaveAsDocument, for instance, with JPEGs (or graphic
files?) in general, but Office files *should* work fine, but as the
original poster (and others) have seen, it doesn't. To be honest, I
don't have an idea what's wrong.

The TOleContainer is known to add extra bytes due to the OLE thingy, so
using the SaveAsDocument generally results in a somewhat bigger file
than the original.

For saving into a file, the only suggestion I can make is to set the
property AllowInPlace to false, double-click the embedded OLE object and
use the Save As functionality of the hosting application like Winword,
Excel, ...

I'm sorry for the troubles this component may have caused.


--
Best Regards,
Thomas Steinmaurer
LogManager Series - Logging/Auditing Suites supporting
InterBase, Firebird, Advantage Database, MS SQL Server and
NexusDB V2
Upscene Productions
http://www.upscene.com




> Thanks,
> Jason Wharton
>
>
>
>>-----Original Message-----
>>From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com]On
>>Behalf Of jaguarius2003
>>Sent: Wednesday, June 07, 2006 3:14 PM
>>To: IBObjects@yahoogroups.com
>>Subject: [IBO] TIB_OleContainer URGENT
>>
>>
>>Hello all,
>>
>>I was just finishing up a major release of my new app, which
>>incorporates the TIB_OleContainer, when I noticed, to my utter dismay,
>>then when the savetofile or savetodocument function is used, the
>>resulting file is corrupt!
>>
>>Even with compression completely disabled, if I check the decompressed
>>filesize vs. the compressed filesize, the compressed filesize shows as
>>a few to a few hundred bytes smaller. IMO something is causing file
>>corruption.
>>
>>If anyone has a resolution for this please let me know asap, as I am
>>on a deadline with my program and I need to OLE container for internal
>>document management.
>>
>>The documents display fine in the OLE container, so the problem may be
>>in the save routine itself. If any of the IBO team sees this perhaps
>>they can check?
>>
>>
>>Thanks
>>
>>Jason S. Gagnon
>
>
>
>
>
> ___________________________________________________________________________
> IB Objects - direct, complete, custom connectivity to Firebird or InterBase
> without the need for BDE, ODBC or any other layer.
> ___________________________________________________________________________
> http://www.ibobjects.com - your IBO community resource for Tech Info papers,
> keyword-searchable FAQ, community code contributions and more !
> Yahoo! Groups Links
>
>
>
>
>
>
>
>