Commit Graph

198 Commits

Author SHA1 Message Date
michael
ab606d3c8d * Rename component on read without exceptions. Several fixes for copy&paste in designer
git-svn-id: trunk@38654 -
2018-03-31 19:32:46 +00:00
michael
9c28492bd1 * Last change to make it compileable with 2.6.4
git-svn-id: trunk@38647 -
2018-03-29 18:26:50 +00:00
michael
46ad7a206f * Ensure compilation with older versions of fpc
git-svn-id: trunk@38642 -
2018-03-28 08:03:35 +00:00
michael
d8f8b9844f * Amend r38630, same operation for startrender
git-svn-id: trunk@38635 -
2018-03-27 11:55:20 +00:00
michael
112086f4fa * Use Arial as default on Windows
git-svn-id: trunk@38634 -
2018-03-27 11:37:57 +00:00
michael
d6752ad47c * Fix bug ID #33518 (AV if no data header
git-svn-id: trunk@38633 -
2018-03-27 11:35:27 +00:00
maciej-izak
588460c55e fcl-report: fix rptjson example, and now is as default demo for fcldemo.lpi (it works "out of box" in contrary to masterdetaildataset)
git-svn-id: trunk@38632 -
2018-03-27 11:31:41 +00:00
maciej-izak
c392e3804e fcl-report: Fix AV for rendering TFPReportGroupHeaderBand and use LiberationSans font as default for Windows
git-svn-id: trunk@38631 -
2018-03-27 11:28:32 +00:00
michael
436cd9efb3 * StartRender/EndRender for bug ID #0033496 (change to class handler to avoid memleak)
git-svn-id: trunk@38630 -
2018-03-27 07:56:00 +00:00
michael
3adbab7855 * StartRender/EndRender support (enable transaction control) for bug ID #0033496
git-svn-id: trunk@38629 -
2018-03-27 07:54:04 +00:00
michael
492dc01483 * Support for Master-Detail relations in data manager
git-svn-id: trunk@38625 -
2018-03-25 17:22:31 +00:00
michael
6b4a898f53 * Fix bug ID #33497
git-svn-id: trunk@38621 -
2018-03-24 17:04:30 +00:00
michael
1b1a49b113 * Fix bug #0033412, rework data loop
git-svn-id: trunk@38620 -
2018-03-24 17:00:00 +00:00
michael
03b2584dc1 * Setting group header sets data in group footer
git-svn-id: trunk@38605 -
2018-03-23 08:07:41 +00:00
michael
bbb728cc20 * Child band does not need data
git-svn-id: trunk@38604 -
2018-03-23 08:03:47 +00:00
michael
7dce0f21dc * Extend Valdidate to TFReportElement, add check for child band to see whether it is referenced (bug ID 0033488)
git-svn-id: trunk@38603 -
2018-03-23 07:57:45 +00:00
michael
52e31f1f96 * Fix stretchmode for bands (bug ID 0033363)
git-svn-id: trunk@38596 -
2018-03-22 19:44:53 +00:00
michael
317583d6d2 * Added additional stretchmodes. Correct stretchmode for Memo element
git-svn-id: trunk@38593 -
2018-03-22 09:06:53 +00:00
michael
59fdcb7953 * Deprecate databand.HeaderBand, Databand.FooterBand in favour of Ddataheader.Data/DataFooter.Data
git-svn-id: trunk@38583 -
2018-03-21 09:30:36 +00:00
michael
65b39fa567 * Fix memleak in check
git-svn-id: trunk@38571 -
2018-03-19 09:19:39 +00:00
michael
1097d85936 * Fix bug ID #33461, wrong display of currency values
git-svn-id: trunk@38570 -
2018-03-19 08:00:28 +00:00
michael
df4d675339 * Fix moHideZeroes and moSupporessRepeated
git-svn-id: trunk@38563 -
2018-03-18 12:19:39 +00:00
michael
7cc08330da * Add FieldIsNull built-in function
git-svn-id: trunk@38562 -
2018-03-18 12:00:37 +00:00
michael
10121a4777 * Always initialize memo expressions, even if no Data available
git-svn-id: trunk@38561 -
2018-03-18 11:28:28 +00:00
michael
6c3ac68f1a * Open all datasets correctly, and initialize memo expressions correctly (bug ID 33405)
git-svn-id: trunk@38560 -
2018-03-18 11:14:12 +00:00
michael
abe510c09e * Fix bug #33349, data header/footer at wrong position
git-svn-id: trunk@38559 -
2018-03-18 09:12:21 +00:00
michael
5c1d8433f7 * Dependency on fcl-web for fphttpclient
git-svn-id: trunk@38552 -
2018-03-17 17:20:22 +00:00
michael
6d694051be * Fix bug #33407, duplicate variable when loading report twice
git-svn-id: trunk@38551 -
2018-03-17 17:17:23 +00:00
michael
62fe64dbb2 * Refactored report designer, so the report design file can be loaded using report data manager class without visual components. Default support for CSV, DBF, JSON, SQLDB
git-svn-id: trunk@38550 -
2018-03-17 16:45:45 +00:00
michael
7f7a955732 * Report currency fields as currency type data
git-svn-id: trunk@38527 -
2018-03-15 08:56:50 +00:00
michael
0453f0bd64 * Support for currency type (bug ID 33392)
git-svn-id: trunk@38526 -
2018-03-15 08:51:31 +00:00
michael
4cb57d0773 * Patch from Christian Ulrich, to allow using data from other report data sources
git-svn-id: trunk@38477 -
2018-03-09 16:27:39 +00:00
michael
ba97e919e6 * Fix bug #33400, clear should also clear run-time objects
git-svn-id: trunk@38469 -
2018-03-09 12:34:25 +00:00
michael
ad409edb30 * Fix bug #33399, RemovePage does not free page
git-svn-id: trunk@38468 -
2018-03-09 12:14:52 +00:00
michael
fbd974b0d8 * Fix bug ID #0033390
git-svn-id: trunk@38467 -
2018-03-09 11:10:51 +00:00
michael
27b0165689 * Fix bug #33389, AV if there are no pages yet in a report
git-svn-id: trunk@38466 -
2018-03-09 10:57:54 +00:00
michael
c1f8a15e32 * Fix bug #33388, name is lost when doing loadfromjson
git-svn-id: trunk@38464 -
2018-03-09 08:39:46 +00:00
michael
1b023f0697 * Properly reset aggregates between runs (bug ID 33357)
git-svn-id: trunk@38459 -
2018-03-08 17:05:54 +00:00
michael
98b48ccded * Parent must free children (bug ID 33357)
git-svn-id: trunk@38458 -
2018-03-08 16:47:13 +00:00
michael
7b65a34a9b * UseParentFont was wrongly reset when reading from stream
git-svn-id: trunk@38456 -
2018-03-08 13:45:45 +00:00
michael
c2fc827bb9 * Introduce FindFont
git-svn-id: trunk@38455 -
2018-03-08 13:02:06 +00:00
michael
e8e59a44b8 * Provide hook to detect changes when loading from stream (bug ID 33375)
git-svn-id: trunk@38452 -
2018-03-08 10:02:28 +00:00
michael
44ec9dd4bc * Fix bug #33374
git-svn-id: trunk@38451 -
2018-03-08 09:38:07 +00:00
michael
6189e06708 * Fix UseParentFont (Bug ID 33336) and dulicate naming (Bug ID 33354)
git-svn-id: trunk@38450 -
2018-03-08 08:48:28 +00:00
michael
32c36ea1d5 * Release expression nodes for variables
git-svn-id: trunk@38441 -
2018-03-06 22:23:29 +00:00
michael
eecce3d8f4 * Fix bug #33343: group footer reference to group header was set incorrectly when reading from file
git-svn-id: trunk@38440 -
2018-03-06 22:12:40 +00:00
michael
11ac4739b4 * Fix null values conversion
git-svn-id: trunk@38439 -
2018-03-06 21:54:19 +00:00
michael
33d76f596a * Stream variable definitions (bug ID 33341)
git-svn-id: trunk@38437 -
2018-03-06 14:19:20 +00:00
michael
8359a6fc50 * Fix AV in case of group header without group footer
git-svn-id: trunk@38433 -
2018-03-06 12:49:29 +00:00
michael
592a435068 * Fix bug #33340 (patch from Stephano)
git-svn-id: trunk@38430 -
2018-03-06 10:48:04 +00:00
michael
354067d108 * Free Notification for ParentGroupHeader, and persist to stream
git-svn-id: trunk@38429 -
2018-03-06 10:25:27 +00:00
michael
2e1bf4533f * Free Notification for Header/Footer/Master/Child band
git-svn-id: trunk@38428 -
2018-03-06 10:09:28 +00:00
michael
052a8229a4 * Allow designing of report variable expressions
git-svn-id: trunk@38425 -
2018-03-06 09:59:41 +00:00
michael
e3d9b37477 * Validate report before running it (bug ID 33334), fix typo
git-svn-id: trunk@38424 -
2018-03-06 09:00:29 +00:00
michael
2f2597341e * Validate report before running it (bug ID 33334), fix typo
git-svn-id: trunk@38423 -
2018-03-06 08:42:32 +00:00
michael
a2a9ef7667 * Validate report before running it (bug ID 33334)
git-svn-id: trunk@38422 -
2018-03-06 08:39:25 +00:00
michael
6e09180502 * Print column header if present, even if only 1 column (bug ID 33305)
git-svn-id: trunk@38411 -
2018-03-05 13:54:50 +00:00
michael
7275963030 * FixupReferences re-implemented, and make sure an empty report (just a title) can be run, i.e. no data needed
git-svn-id: trunk@38410 -
2018-03-05 13:44:58 +00:00
michael
18d7b29b2f * Implement clear for report (bug ID 33286)
git-svn-id: trunk@38399 -
2018-03-03 11:41:55 +00:00
michael
0be6c4538c * Public function to add built-ins to expression parser identifiers
git-svn-id: trunk@38382 -
2018-02-28 16:09:17 +00:00
michael
f4d3d6280c * Font properties properly editable (published)
git-svn-id: trunk@38380 -
2018-02-28 14:29:43 +00:00
michael
93ec82315a * Make expression parser available
git-svn-id: trunk@38376 -
2018-02-28 13:23:38 +00:00
michael
80d95cd787 * Allow unpreparing of report
git-svn-id: trunk@38375 -
2018-02-28 09:48:58 +00:00
michael
1c36ce2605 * Strip prefix off name in allocatename
git-svn-id: trunk@38373 -
2018-02-28 09:17:33 +00:00
michael
70523f1b58 * Set designer flag, change ChildBand property type to CustomChildBand
git-svn-id: trunk@38372 -
2018-02-28 07:48:21 +00:00
michael
cbfc1133f7 * Set designer flag, change ChildBand property type to CustomChildBand
git-svn-id: trunk@38371 -
2018-02-28 07:48:04 +00:00
michael
a75e25aa46 * Event handler to react on page size change in designer
git-svn-id: trunk@38364 -
2018-02-27 16:48:34 +00:00
michael
72bbfe34e9 * Add AllocateName
git-svn-id: trunk@38362 -
2018-02-27 16:16:38 +00:00
michael
1568e68c95 * Add StartDesigning/EndDesigning calls, needed for OI to work correctly
git-svn-id: trunk@38361 -
2018-02-27 16:07:26 +00:00
michael
11bda89833 * Make Page and Band available in element
git-svn-id: trunk@38360 -
2018-02-27 14:57:21 +00:00
michael
7b7f164c28 * Fix bug #33241, patch from Stephano to add missing link export in HTML
git-svn-id: trunk@38359 -
2018-02-27 12:15:34 +00:00
michael
4a0072d43d * Fixed bug #33217, range check error when loading/saving colors, patch from Andreas Friess
git-svn-id: trunk@38325 -
2018-02-24 10:09:52 +00:00
michael
5d5e38ec84 * Do not continue if visible=false for elements
git-svn-id: trunk@37676 -
2017-12-05 12:54:59 +00:00
michael
2dfa1254d2 * Refactor expression variables
git-svn-id: trunk@37675 -
2017-12-05 12:50:26 +00:00
michael
9b219e5a6e * Small refactoring, moving processaggregates to where it belongs
git-svn-id: trunk@37667 -
2017-12-03 11:23:46 +00:00
michael
4467ff81a6 * Second grouping demo, showing fieldkind for user data loop and simple aggregates
git-svn-id: trunk@37666 -
2017-12-03 10:25:05 +00:00
michael
cc08fe73df * Second grouping demo, showing fieldkind for user data loop and simple aggregates
git-svn-id: trunk@37665 -
2017-12-03 10:24:42 +00:00
michael
f0ad28ae4a * Second grouping demo, showing fieldkind for user data loop and simple aggregates
git-svn-id: trunk@37664 -
2017-12-03 10:24:34 +00:00
michael
cec9667eb3 * Refactor band prepare, move element specific stuff to actual elements
git-svn-id: trunk@37663 -
2017-12-03 09:58:58 +00:00
michael
7be8f05079 * Restore handling of simple aggregates in memos
git-svn-id: trunk@37662 -
2017-12-03 09:45:12 +00:00
michael
ad1ebe0667 * Fix compilation
git-svn-id: trunk@37509 -
2017-10-23 12:36:46 +00:00
michael
7b12811f52 * Some more fixes from Pascal Riekenberg to simplify AfterPrintBand
git-svn-id: trunk@37508 -
2017-10-23 12:17:51 +00:00
michael
2547643cbb * HandleOverflowedBands can use a single enumerated, does not need a set
git-svn-id: trunk@37507 -
2017-10-23 10:40:33 +00:00
michael
46da90ce8e * Patch from Pascal Riekenberg with some fixes
* fixed: group footer with position fpStackAtBottom 
  * refactored: footer handling
  * fixed: if StartOnNewSection is set to rsColumn in more than one group in multi column mode

git-svn-id: trunk@37506 -
2017-10-23 10:30:25 +00:00
michael
e4976dd314 ShowBandWithChildren: further simplification, single loop
git-svn-id: trunk@37505 -
2017-10-22 10:18:35 +00:00
michael
89db233a0e * Remove use of continue
git-svn-id: trunk@37504 -
2017-10-22 10:02:25 +00:00
michael
a171ad319e * Patch from Pascal Riekenberg to avoid try/finally in block
git-svn-id: trunk@37503 -
2017-10-22 09:54:58 +00:00
michael
fc638ed7ba * Patch from Pascal Riekenberg: better naming for TOverFLowAction
git-svn-id: trunk@37502 -
2017-10-21 22:09:05 +00:00
michael
9e08dd108b * Fix data fetching optimization
git-svn-id: trunk@37501 -
2017-10-21 19:11:50 +00:00
michael
42ac9457a2 * Original patch of Pascal Riekenberg to replace previous one
git-svn-id: trunk@37500 -
2017-10-21 19:10:07 +00:00
michael
0796eefe50 * Refactoring
git-svn-id: trunk@37499 -
2017-10-21 18:50:31 +00:00
michael
427792aa29 * Some refactoring of ShowBandWithChildren
git-svn-id: trunk@37498 -
2017-10-21 15:22:27 +00:00
michael
d28a790a43 * Patch from Pascal Riekenberg:
* fixed and extended nested grouping in column mode
  * updated nestedgroups demo

git-svn-id: trunk@37493 -
2017-10-20 14:22:02 +00:00
michael
b5f9cce9e4 * Patch from Ondrej Pokorny to improve QR drawing code interface (bug ID 32580)
git-svn-id: trunk@37492 -
2017-10-20 07:17:56 +00:00
michael
2af27756da * Patch from Pascal Riekenberg: ApplyBandWidth: handle child bands like main parent band
git-svn-id: trunk@37481 -
2017-10-17 20:02:47 +00:00
michael
2ffad85470 * Patch from Pascal Riekenberg:
* corrected setting of state variable IsGroupDetailPrinted
  * when printing group footer do not consider height of repeated group footer in footer space calculation
  * removed some unused local variables

git-svn-id: trunk@37477 -
2017-10-16 19:00:04 +00:00
michael
aacd13d347 * Patch from Pascal Riekenberg: intermediate group footer should use previous field values if group footer overflows
git-svn-id: trunk@37472 -
2017-10-16 15:04:02 +00:00
michael
c19c39a956 * Patch from Pascal Riekenberg to fix some issues with columns
git-svn-id: trunk@37464 -
2017-10-16 07:37:09 +00:00
pierre
d18627f0af * Update all fpcsrc Makefile's using latest fpcmake version 2017-09-21 rev 37286
git-svn-id: trunk@37462 -
2017-10-16 00:27:27 +00:00
michael
7abc3af339 * Some cosmetic, license text and other changes based on code review by Nayuki
git-svn-id: trunk@37440 -
2017-10-10 06:51:44 +00:00