Crystal Reports每个详细信息值的摘要

时间:2018-10-06 15:05:31

标签: crystal-reports

我创建了一个报表(Crystal Reports 2011),该报表在明细部分显示付款数据,发票日期为组。 明细字段为InvoiceNo,Amount和PaymentCode。后者对于现金为“ 1”,对于VISA为“ 2”,对于MC为“ 3”。 现在,“组和页脚”具有用于发票数量的计数字段和用于金额的总和。我还需要在此处添加计数以及每个PaymentCode的总和。如何进行?

1 个答案:

答案 0 :(得分:0)

我的解决方案(可能不是最佳方案)是根据需要创建尽可能多的全局变量,这次创建6个(每个SumPaymentCode 3个,每个Count 3个)。将它们在页眉中设置为0,然后在“详细信息”中放置一个字段,其条件为求和适当的值。如果我没记错的话,应该是这样的:

全局变量的声明:

flutter doctor

有条件的声明:

[√] Flutter (Channel beta, v0.8.2, on Microsoft Windows [Version 
6.1.7601],
cale en-US)
ΓÇó Flutter version 0.8.2 at D:\FlutteSrc\flutter
ΓÇó Framework revision 5ab9e70727 (4 weeks ago), 2018-09-07 12:33:05 
-070
ΓÇó Engine revision 58a1894a1c
ΓÇó Dart version 2.1.0-dev.3.1.flutter-760a9690c2

[X] Android toolchain - develop for Android devices
X Unable to locate Android SDK.
Install Android Studio from: 
https://developer.android.com/studio/index
ml
On first launch it will assist you in installing the Android SDK 
compon
s.
(or visit https://flutter.io/setup/#android-setup for detailed 
instruct
s).
If Android SDK has been installed to a custom location, set 
$ANDROID_HO
to that location.

[!] Android Studio (version 2.3)
ΓÇó Android Studio at C:\Program Files\Android\Android Studio
X Flutter plugin not installed; this adds Flutter specific 
functionality.
X Dart plugin not installed; this adds Dart specific functionality.
X Unable to find bundled Java version.
ΓÇó Try updating or re-installing Android Studio.

[√] Android Studio (version 3.1)
ΓÇó Android Studio at C:\Program Files\Android\Android Studio1
ΓÇó Flutter plugin version 29.0.1
ΓÇó Dart plugin version 173.4700
ΓÇó Java version OpenJDK Runtime Environment (build 1.8.0_152-release- 
102
02)

[!] Android Studio
ΓÇó Android Studio at /path/to/android/studio
X Flutter plugin not installed; this adds Flutter specific 
functionality.
X Dart plugin not installed; this adds Dart specific functionality.
X android-studio-dir = /path/to/android/studio
X Android Studio not found at /path/to/android/studio
ΓÇó Try updating or re-installing Android Studio.
ΓÇó Consider removing your android-studio-dir setting by running:
flutter config --android-studio-dir=

[!] VS Code, 64-bit edition (version 1.25.1)
ΓÇó VS Code at C:\Program Files\Microsoft VS Code
ΓÇó Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[!] Connected devices
! No devices available

! Doctor found issues in 5 categories

对其他字段执行相同操作。

希望有帮助!