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

RB6.03 and custom components. Pls Help.

edited August 2002 in General
I have an exe that reads in a RTM file and an output file as command line
parameters.

Example: ReportGenerator c:\test\test.rtm c:\test\output.raf

I can send in any rtm file that does not contain a chart or any user
components such as myCheckBox.

I have built with the following packages and I have verified that the
packages exist and are in the same directory as the exe.

Vcl50;Vcldb50;vclx50;rbIBE55;rbDB55;rbRCL55;rbDAD55;TeeUI55;Tee55;TeeDB55;Te
ePro55;TeeGL55;rbRAP55;rbDIDE55;rbUser55

and I have included the following in my uses statement:

ppModule, raCodMod, ppCtrls, ppChrt,
ppChrtDP, ppBands, ppVar, ppStrtch, ppMemo, ppPrnabl, ppClass, ppCache,
ppProd, ppReport, ppComm, ppRelatv, ppDB, ppDBPipe, ppRichTx,
ppSubRpt, ppRegion, ppTypes, ppJpeg,
daDataView, daQueryDataView, daDOA_aap, daSQL, daDataModule,
myChkBox,

Most reports work fine. When a report contains a checkbox or chart, no error
is generated and a 4 byte RAF file is created.

Running on W2K with 512MB RAM. Any help would be appreciated.

Thanks,

Andy

Comments

  • edited August 2002
    You should get a 'class not found' exception if there is a uses clause entry
    missing, when you load a template. Can you load these templates into a
    report object in a standard delphi application where there is just a report
    object on a form? Can these reports print to the screen preview in the test
    app?

    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited August 2002
    The ppReport1.Template.LoadFromStream(MS); command loads without error or
    any exceptions.

    The ppReport1.Print blows an exception with message: 'Cannot Generate
    Report'.

    Again, this only happens if a checkbox or a teechart is in the report. I am
    saving reports to an archive file.

    Thanks,

    Andy

  • edited August 2002
    Can you send a simple runable delphi example project to
    support@digital-metaphors.com and we'll fix it.


    Cheers,

    Jim Bennett
    Digital Metaphors

This discussion has been closed.