FastReport中国社区FastReport联系电话 联系电话:023-68661681

可视化报告生成器FastReport VCL功能指南:从Delphi / C ++ Builder / Lazarus创建PowerPoint XML格式的文件

来源:   发布时间:2020-07-28   浏览:次

报表生成器FastReport VCL是用于在软件中集成商务智能的现代解决方案。它提供了可视化模板设计器,可以访问最受欢迎的数据源,报告引擎,预览,将过滤器导出为30多种格式,并可以部署到云,Web,电子邮件和打印中。

近日,FastReport VCL更新至v6.7,在新版本中,添加了对最新版本IDE的支持,简化了用于付款标准的条形码的创建,新增从预览窗口直接编辑RichView的功能,同时修复了多个Bug问题。欢迎下载体验。(点击下方按钮下载)

点击下载最新版FastReport VCL

Microsoft PowerPoint是用于准备和查看演示文稿的程序。 它是Microsoft Office的一部分,适用于Microsoft Windows和macOS操作系统以及Android和iOS移动平台的版本。

该程序将以* .pptx,* .ppt,* .ppsx和* .pps格式保存新的演示文稿。 有时会出现问题-如何在Delphi / Lazarus中进行演示?

FastReport可以立即查看并检查文档,然后再将其导出到PowerPoint。 有很多更改选项,从条形码(是的,可以将观众发送到网站,提供名片,要求投票等的幻灯片上的QR码)到带有图片的图表和卡片。

使用FastReport设计器从Delphi / Lazarus创建PowerPoint演示文稿

我们只需要窗体上的TfrxReport组件和带有处理程序的按钮。

procedure TForm1.Button1Click(Sender: TObject);
begin
 {Generate a report. The report must be generated before exporting}
 if frxReport1.PrepareReport then
 frxReport1.ShowPreparedReport; 
 {and show preview window}
end;

创建任何类型,大小和内容的文档,它将成为我们的演示文稿!别忘了在表单上添加TfrxPPRXExport。 在预览窗口中启动,检查并以PPTX格式保存。

可视化报告生成器FastReport VCL功能指南:从Delphi / C ++ Builder / Lazarus创建PowerPoint XML格式的文件

单击左上角的“保存”图标。 在这里,可以看到十多个用于导出为所需格式的选项。在这种情况下,我们需要以Microsoft PowerPoint 2007 XML文件格式保存,因此请单击它。

可视化报告生成器FastReport VCL功能指南:从Delphi / C ++ Builder / Lazarus创建PowerPoint XML格式的文件

现在,在出现的窗口中,我们可以看到文档导出设置,可以在此处保存所有页面,当前页面或范围。还有导出后打开功能。

可视化报告生成器FastReport VCL功能指南:从Delphi / C ++ Builder / Lazarus创建PowerPoint XML格式的文件

并且可能性不止于此。 在FastReport VCL中,您可以将文件保存在本地存储中,将其上传到云中或通过电子邮件发送。 最后,单击“保存”按钮。

从Delphi或Lazarus代码以Microsoft PowerPoint 2007 XML文件格式保存

procedure TForm1.Button1Click(Sender: TObject);
begin
 {Generate a report. The report must be generated before exporting}
 frxReport1.PrepareReport();
 {Set the range of pages to export. By default, all pages of the generated report are exported}
 frxPPTXExport1.PageNumbers := '2-3';
 {Set in what format to export your images}
 //uses frxImageConverter;
 // TfrxPictureType = (gpPNG, gpBMP, gpJPG {$IFNDEF FPC}, gpGIF, gpEMF, gpWMF{$ENDIF})
 frxPPTXExport1.PictureType := gpPNG;
 {Set whether to open the resulting file after export}
 frxPPTXExport1.OpenAfterExport := False;
 {Set whether to display export progress
  (show which page is currently being exported)}
 frxPPTXExport1.ShowProgress := False;
 {Set whether to display the export filter settings dialog box}
 frxPPTXExport1.ShowDialog := False;
 {Set the name of the resulting file.} 
 {Please note that if you do not set the file name and disable the export filter dialog box,}
 {the file name selection dialog will still be displayed}
 frxPPTXExport1.FileName := 'C:\Output\test.pptx';
 {Export the report}
 frxReport1.Export(frxPPTXExport1);
end;

如您所见,从Delphi或Lazarus创建演示文稿很容易。 当然,存在一些限制-演示文稿中的图形和地图将变为图像,并且需要在演示文稿制作程序中配置漂亮的效果,例如“出现”,“溶解”以及其他对象的行为。 Fastreport在线下单立享85折起!赶紧加入购物清单吧!

还想要更多吗?您可以点击阅读【FastReport 报表2020最新资源盘点】,查找需要的教程资源。如果您有任何疑问或需求,请随时加入FastReport技术交流群(783996712),我们很高兴为您提供查询和咨询。

本站文章除注明转载外,均为本站原创或翻译
欢迎任何形式的转载,但请务必注明出处,尊重他人劳动成果
转载请注明:文章转载自:FastReport控件中文网 [https://www.fastreportcn.com/]
本文地址:https://www.fastreportcn.com/post/2854.html

联系我们
  • 重庆总部 023-68661681
购买
  • sales@evget.com
合作
  • business@evget.com


在线
客服
微信
QQ 电话
023-68661681
返回
顶部