Use of sub report in Crystal reports - crystal-reports-xi

CAn you tell me when you would use sub-report in Crystal Reports? I have not used them a long time.
IN the past, I would use them, if I needed to run 1 report first and then based on some output from the first report, then I need to run a sub-report. But seems this is not needed anymore.
Also would you say that a cross tab is basically a grid?

Some thoughts on Subreports from Brij Mohan:
subreport link
Seems to cover the key points.
As to cross tabs .... reports are a 1 dimensional list. A cross tab is a 2 dimensional table.

Related

Printing in SSRS vs. Crystal Reports

I am trying to decide on a reporting service to use and so far I have the general feel that many people believe that SSRS is gaining ground on Crystal if it has not already surpassed it. From what I've researched, it seems that looking forward SSRS would be the best choice but one major flaw/weakness that it has opposed to CR is that when it comes to printing the reports CR is much more accurate and user-friendly than SSRS. The reason being is that in order to present most of these reports they must be in either a .pdf or paper format so this would be a major hiccup in regards to choosing SSRS.
Would anyone that has experience with this issue from either the CR or SSRS side have any advice or opinions on this?
The only printing-related feature I've can think of that is difficult in SSRS is the ability to place a background image and print fields on top of that. This can be done, but from what I understand, it is easier in Crystal than SSRS.
When simply creating a report in SSRS, you can easily forget to set some of the PDF related options such as page size and orientation, but if you remember to set these appropriately and preview your report output in PDF, I don't think you'll have many problems. Like printing Excel documents, without some optimization, page breaks can show up in awkward places, but it is easy to fix this, or catch this in desigining the report, if you are aware of the issue.
SSRS doesn't necessarily assume that reports will be printed. The designer is not aimed exclusively at page layout. And some of SSRS's features, such as dynamic expand/collapse of sections, won't work with printed output of course.

TeeChart fast draw in TFastLineSeries

I am using evaluation version of TeeChart VCL v2012 in Embarcadero C++Builder XE. In my program I get about one thousand of points every second and put them into FastLineSeries. To put points into seraies I use AddXY method. When I run my application, it tooks about 20% of processor time on 3 series. I was wonder if you could give me some advice how to improve performance of adding and drawing series?
I'd suggest you to try to implement as many tips as possible from those explained in the Real-Time Charting article here. Resuming:
Disable/hide some chart elements
Populate series with data. Use arrays and remove unneeded points. See an example in the features demo at "All features\Welcome !\Speed\Fast Dynamic Arrays"
Other tips:
If you are adding many points at a time, try setting AutoRepaint=false before the addition, and back to AutoRepaint=true after it.
Use the TFastLineSeries's DrawAllPoints property. See an example in the features demo at "All features\Welcome !\Speed\Fast Line Speed DrawAll".
Use the TDownSampling function. See an example in the features demo at "All features\Welcome !\Functions\Extended\Reducing number of points".
And also look at the other examples in the features demo under "All features\Welcome !\Speed".
NOTE: The features demo is an application shipped with the installation that shows the majority of features supported by the component.

Delphi histogram component?

Does it happen that no one ever needs histogram in Delphi ?
Google gave me a bunch of half-baked code snippets. But it means that each time you need one - you have to invent one more ad hoc bycicle.
Torry mostly told me about some very expensive closed source Math Statistics or Financial packages, that as a subproduct have histograms. But they are very expensive and since you have no source code, each time you install update onto IDE/RTL/VCL you're probably screwed, until the vendor would make (soon ? ever?) updated packages. Given thatvendor is still does exists.
S.O. told me nothing, nil.
For what i found...
Mitov.com provides some histograms in PlotLab. which told to be free for non-commercial. Alas, it is again closed-source, and if the Histogram - quite fancy let's admit -is the onlything i need from it - why pay the whole price ?
One more example http://DSpatial.sf.net
Just few years ago i used it in Delphi 5, but even then i felt the author is loosing interest in the project. I made few enhancement, fixed some bugs, he merged them and that's all. The component was not very useful and lacked upon features, yet better than nothing. Now the project seems to be completely dead. Good old days, etc. But i do not want them back :-)
And Stack Overflow seemingly carries no single question about it. But maybe just no one bothered to create topic, after search found nothing ? I mean, Delphi was created for database access, histograms are one of basic ways to visualize data, and no one crosses them ? Something with nice style, with rich mouse tooltip like in HTML/CSS/JS on http://www.moskva.fm/stations/FM_95.2 ?
Or is this too domain-related and not ever possible to have good abstraction ?
TChart is a control that ships with most versions of Delphi. TChart can be used to make histograms (bar charts) in style. The following give you some ideas about how to use it: http://www.digitalcoding.com/tutorials/delphi/Simple-steps-to-create-Delphi-chart.html and http://delphi.about.com/od/adptips2006/qt/chart_selectbar.htm .
If you need something with code, google the pages at delphiforfun.org/programs/oscilloscope.htm . These are not controls. The oscilloscope article has a histogram with source. Some of the other projects at the site have other histogram graphs with source..not elegant but useful and free. Use them as a template to make your own control.
The link at http://delphiforfun.org/programs/Math_Topics/probability_distributions.htm shows how to make your own statistics displays with "histograms." This example makes use of TChart.
Here is some more stuff to try I found looking at my resource file:
http://wiki.lazarus.freepascal.org/TAChart, http://members.home.nl/mvanwesten/en_lazarus.html , http://www.martinole.org/TAChart.html ...some of these are GPU components that supposedly work with some versions of Delphi. Perhaps this is your lucky day as there is some source code. The first and third listed probably will work reasonably for histograms. You may have to write your own statistics algorithms.
Found this thread while doing some searching. The ImageEn component suite has a THistogramBox component. It's the NOT prettiest thing in the world, but it's the only one I've found so far.
http://www.imageen.com
I came across a histogram example in a gdiplus package available for download from code central. I don't know if it will do what you need but when I saw it I remembered your SO question.
HTH.
If you were using firemonkey, you could just created a series of TRectangles in series. They can be made unclickable by turning hittest off. Or is that too easy and straightforward?

How to get dataset to populate data into dbgrid in Delphi 6?

I have created a DBGrid in Delphi 6 and tied it to a DataSource contained in a DataModule. The Dataset for that source in also located in the same module. In the OnShow event for the form, I activate the dataset and set a label equal to the rowcount for the dataset. This shows several hundred rows but nothing shows in the dbgrid. If I activate the dataset in the IDE, the grid populates with the expected data. Does anyone have any idea why this behaviour would change between the IDE and normal runtime? We are also using SDAC connection components.
All 3rd party component choices are not mine to change.
I can elaborate as necessary for clarification, but I mainly need troubleshooting ideas to start at.
I have observed many times in D6 that the data controls can lose their settings at runtime, particularly the ones that associate one control with another. You might like to try setting the relevant names explicitly in your OnShow code before activating the data source.
I haven't been working with delphi for a few years, but I remember that the datasource property sometimes get lost if the dataset is kept active = true in design time.

Charting Progress in JIRA

With JIRA, there are features that allow you to Start Progress and Stop Progress on an issue or various issues at any given time. Is there a way for me to go back and see a chart or a graphical representation of how my time was spent over a set period of time?
If I wanted to see how many bugs I worked on in April, and see how much time (graphically) was spent on each bug, could that be done, and if so, which version of JIRA would allow me to do that?
I dont think you can see for a given month how much time was spend on a task. You can see how much time was spent on a task, but not what time period it was for.
I'm sure you've already seen this:
http://www.atlassian.com/software/jira/docs/v3.13.3/timetracking_report.html
There's a Time Sheet Summary report that comes with the Timesheet Report and Portlet plugin - it shows you a list of the JIRA issues you've been working on together with the time per day for a configurable period. No charts, though, I'm afraid.
I think in general that time tracking is ripe for someone to write a really good JIRA plugin; I'm not totally happy with any of the current ones.
Go with the Tempo plug-in for jira. It is brilliant.
You can implement this visualization with the JIRA PDF View Plugin, like this:
Create a filter that returns the issues to be used for this visualization. Run it and invoke the plugin from the "View" dropdown menu.
Write a little Groovy script that iterates over the returned collection of issues, and:
Builds a mapping from "month" (key) to a data structure which holds a triplet of "totalTimeSpent, issuesWorkedOn, issuesFixed" (value).
At each issue compute the sum of the "time spent" records and add it to "totalTimeSpent".
Increment the two other counters accordingly.
When your script completes you have all input data to draw a timeseries chart.
Generate a JFreeChart TimeSeriesCollection dataset. It should contain 3 TimeSeries (3 lines) for the 3 types of values.
Create a simple PDF template that displays a single timeseries chart, which takes the dataset returned by the previous script to render a timeseries chart. Check the timeseries chart example in the tutorial for directions.
The final chart will be something like this:
Disclaimer: this is a paid add-on for JIRA, and I'm a developer working on it.

Resources