Toggle navigation
ReportBuilder Support Forums
Categories
Discussions
Activity
Sign In
Home
›
General
ReportBuilder 22.06 now available including Delphi 12.2 support!
New Blog Posts: Merging Reports -
Part 1
and
Part 2
Blob Field
rbuser
November 2005
edited November 2005
in
General
I have in my Firebird 1.53 Database a Table with a Blob Field to store my
template file.
It is BLOB SUB_TYPE 0 SEGMENT SIZE 400.
Which is best Sub_Type and Size to complex reports with many image, one of
it is 1950kb ?
Thank You
Comments
nicocizik
November 2005
edited November 2005
Hi Vincenzo,
This is the sub_type and segment size we use in our Interbase demo. Are you
running into problems with this configuration?
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Best Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
rbuser
November 2005
edited November 2005
I need to save my template in a BlobField in my personal Table. I am using
this code but it doesn't work fine.
var
aRep: TMemoryStream;
begin
try
aRep := TMemoryStream.Create;
ppReportEuro.Template.SaveToStream(aRep);
FBDataREP.Edit;
FBDataREPREPORT.LoadFromStream(aRep);
FBDataREP.Post;
finally
aRep.Free;
end;
When I try to load it to open ppDesigner I get an "Format" error .
var
aRep: TMemoryStream;
begin
try
aRep := TMemoryStream.Create;
FBDataREPREPORT.SaveToStream(aRep);
ppReportEuro.Template.LoadFromStream(aRep);
ppDesigEuro.Show;
finally
aRep.Free;
end;
end;
nicocizik
November 2005
edited November 2005
Hi Vincenzo,
You need to reset the stream position before loading it. For instance...
aRep.Position := 0;
ppReportEuro.Template.LoadFromStream(aRep);
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Best Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
This discussion has been closed.
Comments
This is the sub_type and segment size we use in our Interbase demo. Are you
running into problems with this configuration?
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
this code but it doesn't work fine.
var
aRep: TMemoryStream;
begin
try
aRep := TMemoryStream.Create;
ppReportEuro.Template.SaveToStream(aRep);
FBDataREP.Edit;
FBDataREPREPORT.LoadFromStream(aRep);
FBDataREP.Post;
finally
aRep.Free;
end;
When I try to load it to open ppDesigner I get an "Format" error .
var
aRep: TMemoryStream;
begin
try
aRep := TMemoryStream.Create;
FBDataREPREPORT.SaveToStream(aRep);
ppReportEuro.Template.LoadFromStream(aRep);
ppDesigEuro.Show;
finally
aRep.Free;
end;
end;
You need to reset the stream position before loading it. For instance...
aRep.Position := 0;
ppReportEuro.Template.LoadFromStream(aRep);
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com