Stimulsoft报告显示所有列的相同颜色

时间:2016-01-20 20:15:50

标签: reporting stimulsoft

我在Stimulsoft设置了一个条件 - 交叉选项卡表,让单元格背面颜色显示"绿色"如果它的值大于数字。我添加了另一个条件,让单元格背面颜色显示为"红色"如果它的值小于数字。

生成报告,将所有单元格显示为绿色。

如何根据条件让报告显示正确的背景颜色?

我正在使用Stimulsoft 2014.1.1900

这是我的输出:

Store_Number Net_Sales

19 *37060.5700*  
 43 *65500.1400*  
 13 *51757.6800*  
 32 *120306.5400*  
 15 *57593.2100*  
 19 *53917.7200*  
 26 *78487.1700*  
 90 *105606.6100*  
 14 *118246.8800*  
 55 *79873.8300*  
 Total 768350.3500

在Italic中显示所有绿色的列。高于55000的数字应显示为"绿色"下面应该显示"红色"

1 个答案:

答案 0 :(得分:1)

CrossTab中的条件设置不同。 你应该使用值变量。例如,

                URL url = null;
                try {
                    url = new URL("http://www.cbu.edu.zm/downloads/pdf-sample.pdf");
                } catch (MalformedURLException e) {
                    e.printStackTrace();
                }
                String tDir = System.getProperty("java.io.tmpdir");
                String path = tDir + "tmp" + ".pdf";
                File file = new File(path); file.deleteOnExit();

                try {
                    FileUtils.copyURLToFile(url, file);
                } catch (IOException e) {
                    e.printStackTrace();
                }

                Intent printIntent = new Intent(MainActivity.this,
                        PrintDialogActivity.class);
                printIntent.setDataAndType(Uri.fromFile(file),
                        "application/pdf");
                printIntent.putExtra("title", "Android print demo");
                startActivity(printIntent);

您可以在Stimulsoft User Manual中获得更多信息。

相关问题