BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Fast Reports and TeeChart in D2007

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Reporting-Charting
View previous topic :: View next topic  
Author Message
adam brett
Guest





PostPosted: Tue May 01, 2007 7:35 pm    Post subject: Fast Reports and TeeChart in D2007 Reply with quote



Is anyone using Fast Reports 3 in D2007 with TeeChart? I am & there seems to
be some breakdown between the chart tool & fast reports.

In the report designer you can usually add a chart object & then design it.
You double click on an "add series" button and possible TeeCharts appear in
a Form.

Now I get nothing.

In the Fast Report code (frxChartEditor) there is a reference to
"TeeGally.pas" (I think this is the "Tee Chart Gallery" form) and a method

CreateNewSeriesGallery(nil, nil, FChart.Chart, False, False, ind);

CreateNewSeriesGallery is definitely in TeeGally.pas ... but as a standard
user of TeeChart I only have TeeGally.dcu in my D6 folders ... there is no
equivalent in the D2007 folders ...

I am guessing that TeeChart have moved / renamed this method in the new
version ... & I can see that the chart series look different, when I design
them within Delphi, which confirms my suspicions.

Anyone know a fix??

Adam Brett
Back to top
David Berneda
Guest





PostPosted: Wed May 02, 2007 4:52 pm    Post subject: Re: Fast Reports and TeeChart in D2007 Reply with quote



Hi Adam
Quote:
I am guessing that TeeChart have moved / renamed this method in the new
version ...
No. Same procedures are still in TeeGally.pas unit.


Quote:
I can see that the chart series look different
Yes. Delphi 2007 comes with TeeChart Standard version 7 instead of "old"

version 4.

CodeGear omitted to deliver some dcu compiled units at Lib folder (I guess
TeeGally.dcu unit too) which is I think the reason your code does not
compile.

You might want to try compiling your code "Using Packages" (Project
Options->Packages), or downloading and installing our free update to
TeeChart v7 Standard for Delphi 2007:

Pre-release download:
http://www.teechart.net/files/vcl/public/TeeChartStandard7/v711/TeeChartStandard_CodeGear_Edition_7.11Delphi2007.exe

This download includes *all* compiled dcu units, dfms, *.res, etc.

regards
david
www.teechart.com



"adam brett" <adam (AT) NOSPAMfmfoods (DOT) co.uk> wrote in message
news:46374fcb (AT) newsgroups (DOT) borland.com...
Quote:
Is anyone using Fast Reports 3 in D2007 with TeeChart? I am & there seems
to be some breakdown between the chart tool & fast reports.

In the report designer you can usually add a chart object & then design
it. You double click on an "add series" button and possible TeeCharts
appear in a Form.

Now I get nothing.

In the Fast Report code (frxChartEditor) there is a reference to
"TeeGally.pas" (I think this is the "Tee Chart Gallery" form) and a method

CreateNewSeriesGallery(nil, nil, FChart.Chart, False, False, ind);

CreateNewSeriesGallery is definitely in TeeGally.pas ... but as a standard
user of TeeChart I only have TeeGally.dcu in my D6 folders ... there is no
equivalent in the D2007 folders ...

I am guessing that TeeChart have moved / renamed this method in the new
version ... & I can see that the chart series look different, when I
design them within Delphi, which confirms my suspicions.

Anyone know a fix??

Adam Brett
Back to top
Michael Philippenko
Guest





PostPosted: Fri May 04, 2007 1:21 pm    Post subject: Re: Fast Reports and TeeChart in D2007 Reply with quote



Dear David Berneda!

Thank you for fast answer.

Can I place your answer with link to FAQ?

David Berneda wrote:
Quote:
Hi Adam
I am guessing that TeeChart have moved / renamed this method in the new
version ...
No. Same procedures are still in TeeGally.pas unit.

I can see that the chart series look different
Yes. Delphi 2007 comes with TeeChart Standard version 7 instead of "old"
version 4.

CodeGear omitted to deliver some dcu compiled units at Lib folder (I guess
TeeGally.dcu unit too) which is I think the reason your code does not
compile.

You might want to try compiling your code "Using Packages" (Project
Options->Packages), or downloading and installing our free update to
TeeChart v7 Standard for Delphi 2007:

Pre-release download:
http://www.teechart.net/files/vcl/public/TeeChartStandard7/v711/TeeChartStandard_CodeGear_Edition_7.11Delphi2007.exe

This download includes *all* compiled dcu units, dfms, *.res, etc.

regards
david
www.teechart.com



"adam brett" <adam (AT) NOSPAMfmfoods (DOT) co.uk> wrote in message
news:46374fcb (AT) newsgroups (DOT) borland.com...
Is anyone using Fast Reports 3 in D2007 with TeeChart? I am & there seems
to be some breakdown between the chart tool & fast reports.

In the report designer you can usually add a chart object & then design
it. You double click on an "add series" button and possible TeeCharts
appear in a Form.

Now I get nothing.

In the Fast Report code (frxChartEditor) there is a reference to
"TeeGally.pas" (I think this is the "Tee Chart Gallery" form) and a method

CreateNewSeriesGallery(nil, nil, FChart.Chart, False, False, ind);

CreateNewSeriesGallery is definitely in TeeGally.pas ... but as a standard
user of TeeChart I only have TeeGally.dcu in my D6 folders ... there is no
equivalent in the D2007 folders ...

I am guessing that TeeChart have moved / renamed this method in the new
version ... & I can see that the chart series look different, when I
design them within Delphi, which confirms my suspicions.

Anyone know a fix??

Adam Brett





--
Best regards,
Michael Philippenko mailto:michael@fast-report.com
Fast Reports - Reporting must be Fast!
http://www.fast-report.com
Back to top
Michael Philippenko
Guest





PostPosted: Fri May 04, 2007 1:22 pm    Post subject: Re: Fast Reports and TeeChart in D2007 Reply with quote

Dear Adam Brett!

You can use FastReport 4 for Delphi 2007.

Or use this solution:

Adding support of D2007 in FastReport 3

----------------------------------------------------------
File frx.inc
----------------------------------------------------------

- Find string:
// Uncomment the following line if you don't want to include component
editors

- Add before:

{$IFDEF VER185} // Delphi 11.0
{$DEFINE Delphi4}
{$DEFINE Delphi5}
{$DEFINE Delphi6}
{$DEFINE Delphi7}
{$DEFINE Delphi9}
{$DEFINE Delphi10}
{$DEFINE Delphi11}
{$DEFINE RICHBCB}
{$WARN UNSAFE_CODE OFF}
{$WARN UNSAFE_TYPE OFF}
{$WARN UNSAFE_CAST OFF}
{$WARN SYMBOL_PLATFORM OFF}
{$WARN UNIT_PLATFORM OFF}
{$WARN SYMBOL_DEPRECATED OFF}
{$WARN UNIT_DEPRECATED OFF}
{$ENDIF}

{$IFDEF VER190} // BDS 2007
{$DEFINE Delphi4}
{$DEFINE Delphi5}
{$DEFINE Delphi6}
{$DEFINE Delphi7}
{$DEFINE Delphi9}
{$DEFINE Delphi10}
{$DEFINE Delphi11}
{$DEFINE RICHBCB}
{$WARN UNSAFE_CODE OFF}
{$WARN UNSAFE_TYPE OFF}
{$WARN UNSAFE_CAST OFF}
{$WARN SYMBOL_PLATFORM OFF}
{$WARN UNIT_PLATFORM OFF}
{$WARN SYMBOL_DEPRECATED OFF}
{$WARN UNIT_DEPRECATED OFF}
{$ENDIF}

----------------------------------------------------------
File frxDesgn.pas
----------------------------------------------------------
- Find string:
DataLV.LargeImages := ObjectImages;

- Add after:

{$IFDEF Delphi11}
StandardTB.Transparent := False;
AlignTB.Transparent := False;
TextTB.Transparent := False;
FrameTB.Transparent := False;
ExtraToolsTB.Transparent := False;
ObjectsTB1.Transparent := False;
{$ENDIF}

----------------------------------------------------------
File frxChartEditor.pas
----------------------------------------------------------
- Find code:

uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Menus, ExtCtrls, Buttons, frxClass, frxChart, frxCustomEditors,
frxCtrls, frxInsp, frxDock, TeeProcs, TeEngine, Chart, Series, ComCtrls,
ImgList, TeeGally
{$IFDEF Delphi6}
, Variants
{$ENDIF};

- Replace on:

uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Menus, ExtCtrls, Buttons, frxClass, frxChart, frxCustomEditors,
frxCtrls, frxInsp, frxDock, TeeProcs, TeEngine, Chart, Series, ComCtrls,
ImgList
{$IFDEF Delphi11}
, TeeGalleryAlternate
{$ELSE}
, TeeGally
{$ENDIF}
{$IFDEF Delphi6}
, Variants
{$ENDIF};

- Find code:
procedure TfrxChartEditorForm.AddBClick(Sender: TObject);

- Replace this procedure entry on:

procedure TfrxChartEditorForm.AddBClick(Sender: TObject);
var
s: TChartSeries;
n: TTreeNode;
b: Boolean;
ind: Integer;
{$IFDEF Delphi11}
TeeGalleryForm: TTeeGalleryForm;
ChartSeriesClass : TChartSeriesClass;
TeeFunctionClass : TTeeFunctionClass;
{$ENDIF}
begin
ind := 0;
{$IFDEF TeeChartStd7}
s := CreateNewSeriesGallery(nil, nil, FChart.Chart, False, False, ind);
{$ELSE}
{$IFDEF Delphi11}
s := nil;
TeeGalleryForm := TTeeGalleryForm.Create(nil);
TeeGalleryForm.Position := poScreenCenter;
if TeeGalleryForm.ShowModal = mrOk then
if
TeeGalleryForm.ChartGalleryPanel1.GetSeriesClass(ChartSeriesClass,
TeeFunctionClass, ind) then
s := CreateNewSeries(nil, FChart.Chart, ChartSeriesClass,
TeeFunctionClass);
{$ELSE}
s := CreateNewSeriesGallery(nil, nil, FChart.Chart, False,
False{$IFNDEF TeeChart4}{$IFDEF TeeChartPro}, ind{$ENDIF}{$ENDIF});
{$ENDIF}
{$ENDIF}
if s = nil then
Exit;
FChart.SeriesData.Add;
with FChart.Chart do
begin
b := not (s is TPieSeries);
View3DOptions.Orthogonal := b;
AxisVisible := b;
View3DWalls := b;
end;
n := ChartTree.Items.AddChild(ChartTree.Items[0],
GetGallerySeriesName(s));
n.ImageIndex := 0;
n.SelectedIndex := 0;
n.StateIndex := 0;
ChartTree.Selected := n;
{$IFDEF Delphi11}
TeeGalleryForm.Free;
{$ENDIF}
ChartTreeClick(nil);
end;


- You should compile and install all packages manually after.


adam brett wrote:
Quote:
Is anyone using Fast Reports 3 in D2007 with TeeChart? I am & there seems to
be some breakdown between the chart tool & fast reports.

In the report designer you can usually add a chart object & then design it.
You double click on an "add series" button and possible TeeCharts appear in
a Form.

Now I get nothing.

In the Fast Report code (frxChartEditor) there is a reference to
"TeeGally.pas" (I think this is the "Tee Chart Gallery" form) and a method

CreateNewSeriesGallery(nil, nil, FChart.Chart, False, False, ind);

CreateNewSeriesGallery is definitely in TeeGally.pas ... but as a standard
user of TeeChart I only have TeeGally.dcu in my D6 folders ... there is no
equivalent in the D2007 folders ...

I am guessing that TeeChart have moved / renamed this method in the new
version ... & I can see that the chart series look different, when I design
them within Delphi, which confirms my suspicions.

Anyone know a fix??

Adam Brett




--
Best regards,
Michael Philippenko mailto:michael@fast-report.com
Fast Reports - Reporting must be Fast!
http://www.fast-report.com
Back to top
David Berneda
Guest





PostPosted: Fri May 04, 2007 2:29 pm    Post subject: Re: Fast Reports and TeeChart in D2007 Reply with quote

Hi Michael
Sure ! Thanks a lot for your help.
regards
david
www.teechart.com

"Michael Philippenko" <michael@fast-report.com> wrote in message
news:463aecf7$1 (AT) newsgroups (DOT) borland.com...
Quote:
Dear David Berneda!

Thank you for fast answer.

Can I place your answer with link to FAQ?

David Berneda wrote:
Hi Adam
I am guessing that TeeChart have moved / renamed this method in the new
version ...
No. Same procedures are still in TeeGally.pas unit.

I can see that the chart series look different
Yes. Delphi 2007 comes with TeeChart Standard version 7 instead of "old"
version 4.

CodeGear omitted to deliver some dcu compiled units at Lib folder (I
guess TeeGally.dcu unit too) which is I think the reason your code does
not compile.

You might want to try compiling your code "Using Packages" (Project
Options->Packages), or downloading and installing our free update to
TeeChart v7 Standard for Delphi 2007:

Pre-release download:
http://www.teechart.net/files/vcl/public/TeeChartStandard7/v711/TeeChartStandard_CodeGear_Edition_7.11Delphi2007.exe

This download includes *all* compiled dcu units, dfms, *.res, etc.

regards
david
www.teechart.com



"adam brett" <adam (AT) NOSPAMfmfoods (DOT) co.uk> wrote in message
news:46374fcb (AT) newsgroups (DOT) borland.com...
Is anyone using Fast Reports 3 in D2007 with TeeChart? I am & there
seems to be some breakdown between the chart tool & fast reports.

In the report designer you can usually add a chart object & then design
it. You double click on an "add series" button and possible TeeCharts
appear in a Form.

Now I get nothing.

In the Fast Report code (frxChartEditor) there is a reference to
"TeeGally.pas" (I think this is the "Tee Chart Gallery" form) and a
method

CreateNewSeriesGallery(nil, nil, FChart.Chart, False, False, ind);

CreateNewSeriesGallery is definitely in TeeGally.pas ... but as a
standard user of TeeChart I only have TeeGally.dcu in my D6 folders ...
there is no equivalent in the D2007 folders ...

I am guessing that TeeChart have moved / renamed this method in the new
version ... & I can see that the chart series look different, when I
design them within Delphi, which confirms my suspicions.

Anyone know a fix??

Adam Brett





--
Best regards,
Michael Philippenko mailto:michael@fast-report.com
Fast Reports - Reporting must be Fast!
http://www.fast-report.com
Back to top
gilvanj
Guest





PostPosted: Mon May 14, 2007 5:41 am    Post subject: Re: Fast Reports and TeeChart in D2007 Reply with quote

Quote:
Is anyone using Fast Reports 3 in D2007 with TeeChart? I am & there
seems to
be some breakdown between the chart tool & fast reports.

In the report designer you can usually add a chart object & then design
it.
You double click on an "add series" button and possible TeeCharts appear
in
a Form.

Now I get nothing.

In the Fast Report code (frxChartEditor) there is a reference to
"TeeGally.pas" (I think this is the "Tee Chart Gallery" form) and a
method

CreateNewSeriesGallery(nil, nil, FChart.Chart, False, False, ind);

CreateNewSeriesGallery is definitely in TeeGally.pas ... but as a
standard
user of TeeChart I only have TeeGally.dcu in my D6 folders ... there is
no
equivalent in the D2007 folders ...

I am guessing that TeeChart have moved / renamed this method in the new
version ... & I can see that the chart series look different, when I
design
them within Delphi, which confirms my suspicions.

Anyone know a fix??

Adam Brett




Hi,

There is a report in Code Gear's Quality Center where you can download
the file TeeGally.dfm for Delphi 2007.
Go to http://qc.codegear.com/wc/qcmain.aspx?d=42952 and see the
section "Attachment". You must login to be allowed to download.



--- posted by geoForum on http://delphi.newswhat.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Reporting-Charting All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.