fastreport的dialogpage问题

pbray 2011-02-06 10:13:59
各位高手,
请问,diglogpage里的edit的值为什么丢失?
我写的:
var
sumpro:real;
planqty:real;
cmpqty:real;
procedure Button1OnClick(Sender: TfrxComponent);
begin
{ masterdata1.rowcount:= strtoint(edit1.text);}
masterdata1.rowcount := strtoint(edit1.text) ; -- 这里系统提示(masterdata1.rowcount:not accessible) end;

begin
sumpro:=<frxdbdataset1."u_sumpro">;
planqty:=<frxdbdataset1."plannedqty">;
edit2.text:=<frxdbdataset1."u_sumpro">;
cmpqty:=<frxdbdataset1."cmpltqty">;
if (sumPro <> 0) then
begin
edit1.text := floattostr( round( planqty /sumpro )) ;
end else
begin
edit1.text := '1' ;
end
end.

在程序运行的时候EDIT1里是有值的,当点确定按钮后就没了.在程序段点跟踪里发现
这里系统提示(masterdata1.rowcount:not accessible) end;
这个错误.
...全文
223 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
pbray 2011-02-11
  • 打赏
  • 举报
回复
怎么还是没人理啊?
pbray 2011-02-08
  • 打赏
  • 举报
回复
确实很认真的跟踪过,系统提示 "masterdata1.rowcount:not accessible" 这个错误!
kye_jufei 2011-02-07
  • 打赏
  • 举报
回复
无法得到masterdata1.rowcount,認真檢查跟蹤一下程序代碼。。。
pbray 2011-02-06
  • 打赏
  • 举报
回复
有没有高手指点下啊.
我做个程序的目的是,可以让用户自由的选择打印张数.
例如:程序根据planqty(计划数量)/产品包装数量=需要打印的标签数量,而这个标签数量是可以根据需要来更改的.
目前我是想用masterdata.rowcount来控制打印页数,但EDIT里的值总是不能传给ROWCOUNT,所以想请高手们帮帮忙.谢谢!
pbray 2011-02-06
  • 打赏
  • 举报
回复
是我问题描述的不清楚吗?
怎么没人帮忙分析下啊!
全网第一家 FastReport.v4.8.36 for.Delphi.BCB.Full.Source 最新版 CURRENT VERSION Build: 4.8.36 Date: 11/22/09 http://fast-report.com/en/products/report-for-delphi-fastreport-4-feature-matrix.html FastReport Studio 4.8 released! + added ability to split big bands(biggest than page height) by default + added ability to use keeping(KeepTogether/KeepChild/KeepHeader) in multi-column report + added BDE engine + added DBX engine + added confirmation reading for TfrxMailExport + added new enumerations drDontEditReportScript and drDontEditInternalDatasets to TfrxDesignerRestriction + added new TfrxDesignerRestriction: drDontEditReportScript and drDontEditInternalDatasets + added PrnOutFileName property to printer options + added RTF 4.1 support for TfrxRichText object + added TfrxDesigner.MemoParentFont property + added TfrxGroupHeader.ShowChildIfDrillDown property + added TfrxPrintOptions.PrnOutFileName property to set ability to print to file + added TfrxReportOptions.HiddenPassword property to set password silently from code + added TimeOut field to TfrxMailExport form + added checksum calculating for 2 5 interleaved barcode * changed PDF export: added full unicode support, improved performance, decreased memory requirements - changed inheritance mechanism, correct inherits of linked objects (fixups) - fixed "Page" and "Line" variables inside vertical bands - fixed ActiveForm ActiveX object - fixed bug in multi-column page when band overlap stretched PageHeader - fixed bug when cross tab cut the text in corner, when corner height greater than column height - fixed bug when designer place function in commented text block - fixed bug when designer shows commented functions in object inspector - fixed bug when engine delete first space from text in split Memo - fixed bug when Engine try to split non-stretcheable view and gone to endless loop - fixed bug when group doesn't fit on the whole page - fixed bug with displacement of subreport when use PrintOnParent property in s
version 4.9 --------------- + added export headers/footers in ODF export + added ability to print/export transparent pictures (properties TfrxPictureView.Transparent and TfrxPictureView.TransparentColor) (PDF export doesn't supported) + added new "split to sheet" modes for TfrxXMLExport + added support of /PAGE tag in TfrxRichView, engine automatically break report pages when find /PAGE tag + added ability to hide Null values in TfrxChartView (TfrxChartView.IgnoreNulls = True) + added ability to set any custom page order for printing (i.e. 3,2,1,5,4 ) + [enterprise] added variables "AUTHLOGIN" and "AUTHGROUP" inside the any report + [enterprise] now any report file can be matched with any (one and more) group, these reports are accessible only in matched groups + [enterprise] now you can set-up cache delays for each report file (reports.xml) + [enterprise] added new properties editor for reports in Configuration utility (see Reports tab) + [enterprise] added property "Xml" - "SplitType" in server configuration - allow to select split on pages type between none/pages/printonprev/rowscount + [enterprise] added property "Xml" - "SplitRowsCount" in server configuration - sets the count of rows for "rowscount" split type + [enterprise] added property "Xml" - "Extension" in server configuration - allow select between ".xml" and ".xls" extension for output file + [enterprise] added property "Html" - "URLTarget" in server configuration - allow select the target attribute for report URLs + [enterprise] added property "ReportsFile" - path to file with reports to groups associations and cache delays + [enterprise] added property "ReportsListRenewTimeout" in server configuration + [enterprise] added property "ConfigRenewTimeout" in server configuration + [enterprise] added property "MimeType" for each output format in server configuration + [enterprise] added property "BrowserPrint" in server configuration - allow printing by browser, added new template nav_print_browser

5,388

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧