fastreport

ISAPI web application hanging if FastReport.PrepareReport is called

China☆狼群 提交于 2019-12-11 13:18:27
问题 begin try Raport.PrepareReport(True); except on E:Exception do raise ; end; // if Raport.Engine.Run then Raport.Export(frxPDF); end; When running as an Isapi dll the web application hangs o Raport.PrepareReport(true), when running with a local application server as an .exe application it runs!... The folder has permissions for total control files for IIS_IUSRS. Why it would be hanging? 回答1: I've experienced if there is an unhandled exception in the ISAPI dll the app crashes. You're handling

How to cancel a FastReport print job?

不想你离开。 提交于 2019-12-11 09:16:02
问题 How do I show a MessageBox when a print job is canceled in FastReport's Print Job Dialog? 回答1: if frxReport1.Print then Showmessage('Aborted'); 回答2: When frxReportPrint.Print returns false, it is either user cancel or error in printing. So you need to check Errors.Text is empty or not, like: if not frxReportPrint.Print then if frxReportPrint.Errors.Text = '' then UserCancel := true else Abort; // something wrong during printing. 来源: https://stackoverflow.com/questions/16941760/how-to-cancel-a

Property ExplicitLeft does not exist

无人久伴 提交于 2019-12-11 07:59:39
问题 I'm having an a error when I'm creating or editing a TEXT OBJECT on Fastreport using Delphi 7. Here's the error: Error reading TextTS->ExplicitLeft: Property ExplicitLeft does not exist. What am I doing wrong? 回答1: As per @RUZZ's link: You are getting this error because you're opening a DFM file that was created by a Delphi version newer than D7. ExplicitLeft is a property unknown in D7, is was added in a later version (not sure which). There are three options: Use a newer version of Delphi.

fastreport Hide Elements in DataBand depending on Data

喜欢而已 提交于 2019-12-11 06:08:38
问题 In a Report designed with fastreport we want to hide or Show an Image Object in the Data Band Depending on the given Data (e.g. a Boolean Property). I know that I can set the Visibilty of Objects with C# by Adressing the Object by its Name, but inside a DataBand the Object with the Name is there multiple times. 回答1: If I understand your question correctly, next approach may help. I often use this approach, when I want to manipulate objects in databand depending on data. Just put your logic in

How to use custom Delphi function in FastReport 4?

左心房为你撑大大i 提交于 2019-12-10 12:00:54
问题 I want to use custom Delphi function in FastReport that I can use of the function for some frxMemoView in design time. I find some suggestion in web such as Addfunction in fast report but I can't see my function in function tab in FastReport. please help me. Thanks Hosein 回答1: The example in then Using Custom Functions in a Report mentioned by TLama works nearly fine. There a two problems you might have tripped over. First: Documentation has two bugs in constructor TFunctions.Create; A

How can I combine 2 queries?

邮差的信 提交于 2019-12-09 03:58:49
问题 I have these below queries in fastreport. I would like to combine them together into one query. How can I do this ? SELECT EAMEMID, COUNT (EAMATTNSTATUS)/2 as ABSENTDAYS1 FROM viewDAILYSUM WHERE (EAMEMID = :EAMEMID) AND (EAMDATE BETWEEN :FDate AND :TDate) AND (EAMATTNSTATUS IN (7, 8)) GROUP BY EAMEMID ORDER BY EAMEMID SELECT EAMEMID, COUNT(DISTINCT EAMDATE) ABSENTDAYS FROM viewDAILYSUM WHERE (EAMEMID = :EAMEMID) AND (EAMDATE BETWEEN :FDate AND :TDate) AND (EAMATTNSTATUS IN (6)) GROUP BY

FastReport 5.3 Designer can't access events

自闭症网瘾萝莉.ら 提交于 2019-12-08 08:48:54
问题 I'm using FastReport version 5.3.14 in Delphi 10.1 Berlin. I'm porting over a VCL app originally written on DelphiXE When I open the report in the FastReport Designer clicking on the Events tab on the Object Inspector does nothing. I also can't click on the Code tab of the report. (see screenshot below) I use the MasterData1OnBeforePrint event to dynamically load images. 来源: https://stackoverflow.com/questions/37511457/fastreport-5-3-designer-cant-access-events

FastReport 5.3 Designer can't access events

一个人想着一个人 提交于 2019-12-06 15:58:41
I'm using FastReport version 5.3.14 in Delphi 10.1 Berlin. I'm porting over a VCL app originally written on DelphiXE When I open the report in the FastReport Designer clicking on the Events tab on the Object Inspector does nothing. I also can't click on the Code tab of the report. (see screenshot below) I use the MasterData1OnBeforePrint event to dynamically load images. 来源: https://stackoverflow.com/questions/37511457/fastreport-5-3-designer-cant-access-events

How do I omit the leading 0 from a 128C bar code?

旧时模样 提交于 2019-12-05 12:36:50
If I put 12345, for example, in a "text" bar code's property, the output is 012345. This "0" is the problem. How I can remove this? I'm using Delphi 2010 and FastReport 4.9.72. A Code 128C barcode needs to be an even number of digits. This is by design. There is a 1:1 mapping between the numbers and the resulting output, and the output is 2-digit aligned. In the case of 1 the Code 128C representation of this number is 01 if the value was 12 then the underlying representation would be 12 so the digits 628 can only be represented by 0628 The wikipedia article about Code 128 explains the

Fastreport.Net用户手册:文本编辑

我与影子孤独终老i 提交于 2019-12-05 09:49:24
编辑对象的文本,只需双击文本内容,然后会弹出一个文本编辑器。 在编辑器右方有一个可以添加至文本中的数据树组件。可以通过鼠标拖拽该组件到需要的地方。在文本中嵌入该组件的另一个方法是双击该组件,然后该组件将会被添加至thecursor的当前位置。 要保存修改并关闭编辑器窗口,只需要点击OK按钮。 编辑文本的另一方法—就地编辑。选择"Text"对象,键盘上点击Enter键完成编辑,单击对象范围之外的区域或键盘上点击Ctrl+Enter键。点击键盘上的Esc键取消此次修改。 相关链接: fastrepot.net最新试用版下载 fastreport中文网 来源: oschina 链接: https://my.oschina.net/u/2690029/blog/752316