0
我使用Delphi XE8
與IntraWeb
XIV v14.0.49我創建了一個TIWForm
,我下了一個TChart
組件。德爾福 - 如何我可以使用TChart與IntraWeb
在設計時間TChart
顯示,我可以設置它。
但運行時在網頁上沒有TChart
。
是否有任何設置應該配置使用它?
我使用Delphi XE8
與IntraWeb
XIV v14.0.49我創建了一個TIWForm
,我下了一個TChart
組件。德爾福 - 如何我可以使用TChart與IntraWeb
在設計時間TChart
顯示,我可以設置它。
但運行時在網頁上沒有TChart
。
是否有任何設置應該配置使用它?
看來你必須使用TChart
和TIWImage
才能在網頁上顯示它。
我發現IntraWeb的下面的方法是否使用的TeeChart庫附帶Delphi或於TeeChart庫的專業版演示
// this method copies a TChart to an TIWImage
procedure CopyChartToImage(const aChart: TChart; const aImage: TIWImage);
var
xMetaFile: TMetafile;
xBitmap: TBitmap;
xRect: TRect;
begin
xBitmap := aImage.Picture.Bitmap;
xBitmap.Width := aChart.Width;
xBitmap.Height := aChart.Height;
aImage.Width := aChart.Width;
aImage.Height := aChart.Height;
xRect := Rect(0, 0, aChart.Width, aChart.Height);
aChart.BufferedDisplay := False;
xMetaFile := aChart.TeeCreateMetafile(False, xRect);
try
xBitmap.Canvas.Draw(0, 0, xMetaFile);
finally
FreeAndNil(xMetaFile);
end;
end;
?據我所知,您需要PRO版本的TeeChart庫才能在IntraWeb應用程序中使用TChart組件。 – SilverWarior
@SilverWarior是的,我使用Delphi附帶的TeeChart庫。但根據他們網站上的TeeChart lib的功能矩陣,似乎支持IntraWeb https://www.steema.com/feature_matrix/vcl檢查'RAD Studio中的TeeChart標準' – RepeatUntil