Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Binary format reports to Ascii format reports...

edited August 2004 in General
Hi!

I have my reports in a database in a binary format.

What can I do to convert my reports to a ascii format? in code with out the
report designer.


I'm doing this (Note: I'm have Report Builder 7 and FIBPlus):

lReport.Template.DatabaseSettings.NameField := 'NAME';
lReport.Template.DatabaseSettings.TemplateField := 'TEMPLATE';
lReport.Template.DatabaseSettings.DataPipeline := plItems;
lReport.Template.DatabaseSettings.DataPipeline.Visible := False;
lReport.Template.SaveTo := stDatabase;

lReport.Template.DatabaseSettings.Name :=
dtstItems.FieldByName('NAME').AsString;
lReport.Template.LoadFromDatabase;
lReport.Template.Format := ftAscii;

lReport.Template.SaveToDatabase; {***} // In this line raise an exception
"DefaultFIBDataBase: Cannot perform operation - DB is not open".
{***}// but what
DB? my DB where my reports are stored is already connected.


Thanks!

Comments

This discussion has been closed.