Tee Chart Problems
Well, I've tried the approach you suggested using the
Chart.TeeCreateMetaFile method and assigning the image to the
TppImage.Picture.Graphic property and that works, but only if the actual
DBChart is visible (the property) AND part of the chart is viewable on the
form. If the form is sized so that the chart doesn't show, no image.
I tried adding a new form with 2 TeeDBCharts on my rbServer program. When I
connect through the web tier, the charts appear fine. But when I close the
preview window and try to select another report, I get error messages from
Report Builder about my charts. So I deleted the charts and put a DBChart
on the form and used the TeeCreateBitmap method as described above and
assigned it to a TImage on the report and nothing appears - I believe
because the form is never visible.
In any case, I started recompiling the TeeChart packages that come with
Report Builder. I'm following the instructions in the TeeChart help file
(under Report Builder). When I try to recompile the dclRBC77.dpk, I get an
error in the ppChReg.pas unit saying that it can't find the DesignIntf.dcu.
That file exists in my Delphi7\Source\ToolsAPI directory, so I added that to
my library path and now I get an error in the DesignEditors.pas unit saying
it can't find Proxies.dcu. The only Proxies.dcu file I have on my hard
drive is in my Delphi5\Lib directory dated 8/11/1999. Is my installation
corrupt or what?
Chart.TeeCreateMetaFile method and assigning the image to the
TppImage.Picture.Graphic property and that works, but only if the actual
DBChart is visible (the property) AND part of the chart is viewable on the
form. If the form is sized so that the chart doesn't show, no image.
I tried adding a new form with 2 TeeDBCharts on my rbServer program. When I
connect through the web tier, the charts appear fine. But when I close the
preview window and try to select another report, I get error messages from
Report Builder about my charts. So I deleted the charts and put a DBChart
on the form and used the TeeCreateBitmap method as described above and
assigned it to a TImage on the report and nothing appears - I believe
because the form is never visible.
In any case, I started recompiling the TeeChart packages that come with
Report Builder. I'm following the instructions in the TeeChart help file
(under Report Builder). When I try to recompile the dclRBC77.dpk, I get an
error in the ppChReg.pas unit saying that it can't find the DesignIntf.dcu.
That file exists in my Delphi7\Source\ToolsAPI directory, so I added that to
my library path and now I get an error in the DesignEditors.pas unit saying
it can't find Proxies.dcu. The only Proxies.dcu file I have on my hard
drive is in my Delphi5\Lib directory dated 8/11/1999. Is my installation
corrupt or what?
This discussion has been closed.
Comments
Sorry for the delay in this response. Unfortunately Borland does not give
us all the source files any more so to include the Proxies.dcu file you will
need to add the DesignIDE.dcp package to the requires clause of the
dclRBC77.dpk. This file is located in the \Delphi7\Lib\... directory.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Tathiana
SP - Brasil
If you add the DesignIDE.dcp file to the Requires clause of the dclRBC77.dpk
package, you still receive the "Cannot find Proxies.dcu" error? Which
version of Delphi are you using? This may be a corrupt install of this
file.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thanks!
unit Proxies;
interface
Function IsProxyClass(ComponentClass: TClass): Boolean;
implementation
Function IsProxyClass(ComponentClass: TClass): Boolean;
begin
Result := True;
end;
end.
Now, my problem is: "iEditCha.dcu not found". My co-worker foud this file
only in Delphi 3...
Thanks for all!
When you receive the IEditCha.dcu not found error, this means you are trying
to edit a chart at runtime with the version of TeeChart that came shipped
with Delphi. To solve this problem, you will need to purchase a registered
version of TeeChart from Steema at http://www.teemach.com. Please see the
ReportBuilder help under the ReportBuilder Reference | TeeChart | Delphi 7 |
... section for information on which versions are compatable with your
version of RB.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com