Fastreport文档属性:标题,作者,主题值写作 [英] Fastreport document properties: title, author, subject value writing

查看:172
本文介绍了Fastreport文档属性:标题,作者,主题值写作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在fastreport中使用c#创建.pdf报告。然后我尝试在报告中设置文档属性。在FastReport中,这些属性同时具有设置和获取属性,但这些功能未分配给我保存的报告。







在将报告保存为.pdf之前,FastReport可以打开自己的表单并在此处输入相关的主题,标题和作者数据,但我不希望用户每次都进入此过程。我想用c#以编程方式设置这些属性。



我该怎么做?



我尝试了什么:



I'm creating .pdf reports with c # in fastreport.Then I'm trying to set the document properties in the report. In FastReport, these properties have both set and get properties, but these features are not assigned to the report that I saved.



Before saving the report as .pdf, FastReport can open its own form and enter the relevant topic, title and author data here, but I do not want the user to enter this process every time. I want to set these properties programmatically with c #.

How can I do this?

What I have tried:

public Report_Test()
{
 FastReport.Report report1 = new FastReport.Report();
 report1.ReportInfo.Author = "Test Test";
 report1.ReportInfo.Description = "TEST Report";
 report1.ReportInfo.Created = DateTime.Now;
 report1.ReportInfo.CreatorVersion = "1.1";
 report1.ReportInfo.Modified = DateTime.Now;
 report1.ReportInfo.Name = "1.1";
 report1.ReportInfo.Version = "1.1";

 /*
 I wrote other codes here ()
 */
 report1.RegisterData(dataSet11.Tables["Datas"], "Datas");
 report1.GetDataSource("Datas").Enabled = true;
 (report1.Report.FindObject("Data1") as FastReport.DataBand).DataSource = 
 report1.GetDataSource("Datas");
}

推荐答案

您询问的是供应商库特有的功能。询问此问题的最佳位置是该供应商为其产品提供的支持论坛。 支持 - 快速报告公司 [ ^ ]
You're asking about functionality specific to a vendor library. The best place to ask this is in the Support forums supplied by that vendor for their product. Support - Fast Reports Inc.[^]


这篇关于Fastreport文档属性:标题,作者,主题值写作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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