Delphi TeeChart-打印预览和保存对话框 [英] Delphi TeeChart - print preview and save dialog

查看:162
本文介绍了Delphi TeeChart-打印预览和保存对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Delphi XE中的内置TeeChart来绘制图形。

I'm using the built in TeeChart in Delphi XE for graphs.

当我将图形放在表单上时,我可以使用所有这些选项来导出/保存或打印预览,但在运行时不存在。

When I just put a graph on a form, I have all these options to export/save or print preview, but those aren't there at runtime.

我想为保存对话框和打印预览添加一个按钮(现在我已经拥有了)做Chart1.Print和Chart1.SaveToBitmapFile)

I want to add a button for a save dialog and a print preview (right now I just have it doing Chart1.Print and Chart1.SaveToBitmapFile)

我在Google周围搜索,发现了此链接: http://www.steema.com/support/faq/NewVCL/FAQ_VCL_DIALOGS.htm

I googled around and I found this link: http://www.steema.com/support/faq/NewVCL/FAQ_VCL_DIALOGS.htm

因此我在Uses中添加了EditChar,并在
EditChart(Self,Chart1)中添加了行;

So I added EditChar to Uses and added the line EditChart(Self,Chart1 );

但是当我尝试编译时,它给了我错误:

but when I try to compile, it gives me errors:

[DCC Error] E1026 File not found: 'TeeBackImage.DFM'
[DCC Error] E1026 File not found: 'TeeEmbossEditor.DFM'
[DCC Error] E1026 File not found: 'TeeMargins.DFM'
[DCC Error] E1026 File not found: 'TeeMouseCursor.DFM'
[DCC Error] E1026 File not found: 'TeeStringsEditor.DFM'

我还添加了使用TeePrevi的功能,但是它说ChartPreview是一个未声明的标识符

Also I've added Uses TeePrevi, but it says ChartPreview is an undeclared identifier

有人知道发生了什么吗?创建图表和打印/保存工作正常,并且当我添加Uses EditChar时似乎发生了错误

Does anyone know what's going on? Creating a chart and printing/saving works fine, and the errors seem to happen when I add Uses EditChar

谢谢

推荐答案

运行时图表编辑器,打印预览和导出对话框在TeeChart VCL Standard(Delphi附带的版本)中不可用,因此不包括必需的单元。为此,您需要TeeChart Professional VCL。 此处,您将找到RAD Studio用户的TeeChart着陆页,并带有比较标准版和专业版的网格,访问功能全面的Pro评估版等。

Run-time chart editor, print preview & exporting dialogs are not available in TeeChart VCL Standard, which is the version shipped in Delp and therefore necessary units are not included. To be able to do so you'll need TeeChart Professional VCL. Here you'll find the TeeChart landing page for RAD Studio users with a grid comparing Std and Pro versions, access to the fully functional Pro evaluation version, etc.

这篇关于Delphi TeeChart-打印预览和保存对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆