More problems with Lazreport.
I had a issue with lazreport on a project I opened up with 1.2RC2 before with a stream read error, and I just got it again on
a more substantial older project.
This project has a couple of reports and one is on a form and it worked just fine, the other one is on a datamodule and it gives the
stream read error when I try and save the project. The report on the datamodule lost all the objects in the bands when I opened it as well.
The other project I had the problem with also had the report on a datamodule, so the problem with the stream error seems to be if the Lazreport from 1.0.14 etc was on a datamodule.
UPDATE:
I restored a older copy of the datamodule with the report on it from my SVN repository and the lfm file from the 1.2rc2 has totally messed up the reportxml that lazreport uses and appears to have converted it to a binary form. The lfm from before I opened it with 1.2RC2 had a report.xml with text based XML in the LFM file. It appears that when a 1.x project is opened with 1.2rc2 it's doing something to the data module LFM file and pretty much wiping out the stored LazReport XML.
I can't be the only one that has used Lazreport by putting the report on a datamodule. I will see if I have any other projects from 1.x that I put the report on a datamodule.
To get the XML back I had to open a older copy of the project on 1.x then copied the report to a form in the project, I then copied that form to the 1.2 copy of the project and opend it, then copied the good report from the form to the datamodule.
UPDATE:
The report on the datamodule was stored as reportform and was binary.
The report on the form was stored as reportXML and was in the LFM as plain text XML.
Not sure but it might be the version of LazReport shipping with 1.2RC2 does not know what to do with reportform and binary data in the LFM.
It seems that in 1.x Lazreport was storing the report on a form differently than on a datamodule.
Has anyone else noticed this behavior?
Update 3:
seems to be related to this:
http://bugs.freepascal.org/view.php?id=24756#bugnotesIn my case it seems the reports I had on forms where converted in 1.x but not those on datamodules.