Class TfrxChartView not found (run time only)

edited March 2009 in FastReport 4.0
I've create a simple application, with a report holding one chart.

In design mode everything works great, even the preview in design mode works great (I used the Data tab to get my data).
Build/Compile the application work good as well (no errors or warnings).

However,... when I run the application I get the error "Class TfrxChartView not found".

I tried using the Recompile Wizard using TeeChartStd - which generates this error (compiles fine in the Recompile Wizard).
I also tried TeeChartStd7 (recompile all, TeeChart dcu path: C:\Program Files\CodeGear\RAD Studio\5.0\lib), however it generates a "Required package 'TEE711' not found" error in the Recompile wizard.

I double checked the paths, and all seems to be there just fine.

I did notice that I have a TEE7100 file (instead of TEE711).

I'm using the latest version of FastReports (4.7.85), Delphi 2007.
I did search the forum and used Google; no answer to this issue.

Can someone please help - it would be greatly appreciated.

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 11:08PM
    did you include a tfrxchartview component in your app or the underlying delphi form.
    You may have to reinstall your fr version and use the recompiler to select the correct teechart path and version first.
  • edited 11:08PM
    Hi Gordk [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> Thanks again for the quick response[/img][img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> That fixed the problem[/img][img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> I took a little bit before it clicked in my head - drag one of the "FastReport 4.0" components (TfrxChartObject) on the form - duh![/img][img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> Thanks for the excellent help! (note: FR totally rocks!)[/img]
  • edited March 2009
    Shoot,... now it generates this error (which it didn't when using preview!?) on ALL charts that work with dates ....

    Debugger Exception Notification
    Project GetReport.exe raised exception class EConvertError with message ''2/8/2009 9:00:00 AM' is not a valid date and time'.
    Break Continue Help

    [img]style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> Line 450 is where it breaks in the frxChart unit, and where it seems to add values to the chart (snip from the frxChart.pas file):[/img]
    for i := 0 to sl2.Count - 1 do
          begin
            if i < sl1.Count then v1 := sl1[i] else v1 := '';
            if i < sl2.Count then v2 := sl2[i] else v2 := '';
            if i < sl3.Count then v3 := sl3[i] else v3 := '';
            if i < sl4.Count then v4 := sl4[i] else v4 := '';
            if i < sl5.Count then v5 := sl5[i] else v5 := '';
            if i < sl6.Count then v6 := sl6[i] else v6 := '';
            Helper.AddValues(Series, v1, v2, v3, v4, v5, v6, FXType);
          [b]end;[/b] // <--- the code breaks here
        end;
    

    Note: I'm using MyDAC to connect to my MySQL database.
  • edited 11:08PM
    Woopsie on my end; I did set ShortDateFormat to 'yyyy-mm-dd' in my Delphi Form, which caused the problem ...

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.