例如,如果我将12345放在"文本"条形码的属性中,则输出为012345.
这个"0"就是问题所在.我怎么能删除这个?
我正在使用Delphi 2010和FastReport 4.9.72.
fastreport 中有一个方法称为RegisterData创建初始数据源并将数据绑定到它。因此,我找到了一份已经在项目中运行的报告,但是当我尝试做同样的事情时,我在其中看不到任何数据源。
var data = GetData(parameters) as IEnumerable<Days>;
Report.RegisterData(data, "DaysBS", 4)
Run Code Online (Sandbox Code Playgroud)
当我尝试从设计模式选择数据源时,我看不到任何数据源?谁知道为什么?在已经存在的报告中,一切正常,我可以看到所有注册的数据源
Report.RegisterData(data, "UnUsedPeriodsBS", 4);
var vacationUnUsedPeriodDatas = data.SelectMany(d => d.Periods).ToList();
Report.RegisterData(vacationUnUsedPeriodDatas, "PeriodDetailsBS", 4);
Report.RegisterData(vacationUnUsedPeriodDatas.SelectMany(s => s.PeriodDetails).ToList(), "DaysDetailsBS", 4);
Run Code Online (Sandbox Code Playgroud)
编辑
尝试在报告设计模式下手动引用DaysBS并且它正在工作,但我不明白为什么我看不到设计模式中的任何报告数据
我在Delphi Win32中使用FastReport.
调用FastReport时,会在打印之前预览它.
用户有时需要打印一系列报告.这是一个PITA预览,然后分别打印每个.
如何将报告排队并将其直接发送到默认打印机?
我想在FastReport中显示一个图像.
这是Delphi代码:
img_sick.Picture.LoadFromFile(ExtractFilePath(Application.ExeName) +
'Pictures/' + Qry_Search.FieldByName('code_personel').AsString + '.jpg');
Run Code Online (Sandbox Code Playgroud)
任何想法,将不胜感激.
使用Delphi和FastReport我在此行之后立即调试Delphi时收到此错误消息:
<FastReport_Component>.ShowReport(true);
Run Code Online (Sandbox Code Playgroud)
然后出现此错误:
项目myapp.exe引发异常类EVariantTypeCastError,消息'无法将类型(String)的变体转换为类型(Double)'.
在显示报告之前它会出现两次.但是,如果我在没有调试的情况下运行myapp,则不会显示错
我如何找到导致此错误的备忘录?报告有这么多备忘录.有些还有使用中的表达式IIF,错误消息不再显示任何信息.
有没有人知道如何从"快速报告"获取PDF打印?(.净)
report1.Export(frxPDFExport1);
Run Code Online (Sandbox Code Playgroud)
那条线不起作用,?
如何导出pdf使用FastReport.net和asp.net?我想在控制器中导出文件.我试过这种方式在FastReport网站上支持:
public FileResult GetFile()
{
WebReport webReport = new WebReport();
// bind data
System.Data.DataSet dataSet = new System.Data.DataSet();
dataSet.ReadXml(report_path + "nwind.xml");
webReport.Report.RegisterData(dataSet, "NorthWind");
// load report
webReport.ReportFile = this.Server.MapPath("~/App_Data/report.frx");
// prepare report
webReport.Report.Prepare();
// save file in stream
Stream stream = new MemoryStream();
webReport.Report.Export(new PDFExport(), stream);
stream.Position = 0;
// return stream in browser
return File(stream, "application/zip", "report.pdf");
}
Run Code Online (Sandbox Code Playgroud)
但那时的大小pdf总是0字节.
有人知道我的问题的解决方案吗?
我们使用FastReport生成报告.实际上,我们支付访问源代码的费用.
我们目前正在使用FastReport的最新稳定版本.虽然它对于我们的制作足够稳定,但每当我编译时,我都会看到:
[dcc32 Hint] fs_iinirtti.pas(369): H2443 Inline function 'TList.Remove' has not been expanded because unit 'System.Types' is not specified in USES list
[dcc32 Hint] fs_iclassesrtti.pas(656): H2443 Inline function 'TList.Remove' has not been expanded because unit 'System.Types' is not specified in USES list
[dcc32 Hint] fs_iclassesrtti.pas(1014): H2443 Inline function 'TList.Remove' has not been expanded because unit 'System.Types' is not specified in USES list
[dcc32 Hint] fs_idialogsrtti.pas(159): H2443 Inline function 'TList.Remove' has not been expanded because unit 'System.Types' is not specified in …Run Code Online (Sandbox Code Playgroud) 我正在使用FastReport(评估版)主要打印发票和报价.我正在尝试维护我的数据源和应用程序逻辑之间的分离,所以我想知道是否有一种简单的方法将Delphi对象直接暴露给FastReport.目前,我正在使用自定义数据源,但这是很多手动摆弄.
基本上,我想使用我已经实例化的TInvoice对象并使用FastReport打印它.
有没有人实现了一个共同的祖先类或接口来将Delphi对象作为数据源暴露给FastReport(或其他报告工具)?
编辑:我正在使用Delphi XE.
我正在尝试使用快速报告中的表达式过滤数据。当我在表达式中使用一个条件时,它工作正常。
<DSPatientProfileDetails."category"> = 'T-Short term'
Run Code Online (Sandbox Code Playgroud)
但我想要多个条件,就像 sql where 条件一样。这是我试过的。但它给出了错误。
<DSPatientProfileDetails."category"> = 'T-Short term' or <DSPatientProfileDetails."category"> = 'A-Antibiotics'
fastreport ×10
delphi ×7
c# ×3
.net ×2
asp.net-mvc ×1
barcode ×1
delphi-xe ×1
javascript ×1
pdf ×1