How to conditionally re-position crystal reports XI objects - crystal-reports-xi

I am using Crystal Reports XI as a Stand alone and not using Visual Studio. I have text box objects which dynamically grow in size according to the data. If the text box grows and has 2 lines of data instead of 1, I want the text box below it to be automatically re-positioned down. Is there a way to do use conditional programming to achieve this.
At the moment I have a formula that counts how many characters are in the text box objects so I can use this in my conditional statement but am wondering about how to code the object properties and methods such as the X position of the object.
Thanks.

Related

Fastreport and Delphi Berlin: How to put multiple records fields in one line

I would like to make a master-detail report with fast reports in Delphi Berlin where the detail field date should be printed next to each other in one line. Can someone tell me which property must be set for printing next to each other?
Thanks
ANd here is the result:
You can get a multi-column detail band by setting the Columns property of the band to the number of columns you want instead of the default of one column and providing a ColumnWidth (note: the dark squares on the designer are 1 wide).

Where to set displayed data vs plotted data in Highcharts?

I am looking for a setting in Highcharts/stock that would allow me to apply a different format to displayed values of data, but not to the actual data as it is loaded into the series data. For example, we would like to plot y-axis data with precision up to 16 significant digits, and likewise, time values that use 6-8 sig figs. But that's not the precision we would like displayed in the tooltips, or other labels. However I am unable to find a way to format it without affecting both what is plotted and what is displayed. Here is an example of why this is a problem: let's say we have data points taken at .0001234s, .0001244s, .0001254s, and .0001264s, but we want to format the display of the time to ".0001" for all 4 data points. If we format it, then the "plotted" data ends up looking like it occurred at the same time-stamp, thus producing a stair-step look to our waveform.
I have looked at the custom functions that I can create to override tooltip display, but it doesn't appear that there is an easy way to make that very generic so that I can apply to all of the various chart instantiations (we use lots of different chart types), and that only covers tooltips; X-axis labels and Y-axis labels would also need separate functions for overriding those display values; there's possibly other places I haven't thought where the display might be affected as well. Is there any single, centralized place where the data points display value or format can be changed?
Example of stair-step appearance:
TIA
If you want to display various numbers (axis labels, tooltip, etc.) with various number of decimal places, you can use Highcharts.numberFormat function.
API Reference:
https://api.highcharts.com/class-reference/Highcharts#numberFormat
Example:
http://jsfiddle.net/eg0vepgq/

How to duplicate (not extend) conditional formatting rule?

I have a conditional formatting rule (color scale) applied to a row (e.g. A1:Z1). I want the to duplicate this rule for another row, but when I use Paste Special -> Paste Conditional Formatting Only (or Paint Format tool), it simply makes the color scale rule to apply to the sum of ranges (e.g. A1:Z2). The problem is that it won't process ranges separately, it will just join them into a single range and find the biggest / smallest number over the joint range, rather than in individual ranges.
The same applies if the range is defined in format "A1:Z1,A2:Z2".
What I want is just to avoid defining the same color scale rule for different rows manually.
Note that Google Sheets behaves here differently from MS Excel. In Excel I get the desired behaviour very easily and intuitively: I create a rule for a row, select it, copy, then paste special formatting only. For a scale from smallest red to biggest green, this is the output:
!Excel colour scale example]1
If I do the same steps in Google Sheets, the output is quite different:
It is clear that GS does not duplicate a rule, but simply adds a new range to the computed joint range the original rule applies to.
Is there a way in GS to do the same conditional rule duplication that Excel does, or I just have to re-create it manually?
Click any cell covered by the original conditional formatting
In the menu, pick format/conditional formatting...; this opens a side panel with all conditional formats that apply to that cell
Click the format you want to duplicate
Do not edit anything yet
Click "Add another rule" on the bottom. This will save any changes you made to your original format ... and open a new clone.
Change the range on the newly created clone.
Repeat 5 and 6 until you enter the last range
Click "Done".
I am not saying I LIKE this answer, but it is the only solution I can come up with:
Apply Custom Formatting using a Custom formula for each color value. In your example, this means 6 entries in the Custom Formatting. For each one, use the below formula. For the Highest value, use:
=A1=LARGE($A1:$G, 1)
For the second highest value, use:
=A1=LARGE($A1:$G, 2)
Increment the last number for each ranking, setting a color for each as well. I hope your range to Z does not mean you are color coordinating that many items. My concern there would be not just having that many conditional format items, but having that many colors be meaningful.
There is also the MAX() and MIN() functions if you just want the highest and lowest.
=A1=MAX($A1:$G)
or
=A1=MIN($A1:$G)
as well as MEDIAN() and SMALL() which is the opposite of LARGE(). In case you want the X largest and Smallest, or Maximum, Minimum, and Median.

How to format the column in column chart in Microsoft Word 2007 or 2010

I'm using column chart in Microsoft Word 2010. It differentiates columns by its color. The problem comes when I have to print that page out, but not in color. So all columns are the same, all in black.
So, can I change the column format so as to differentiate them even in black only? For example, one column has vertical stripes, another has horizontal stripe,...
If Microsoft Word can't do that, please recommend me another tool to achieve it. Thank you so much.
Right click on a column in your chart.
Click Format Data Series > Select the FIll tab > Select Pattern Fill
Choose a pattern you like.

FastReport CrossView does not calculate column width correctly if column header is printer vertically

I have a FastReport CrossTab report with long column names, which would expand into multiple pages if I were to print it. I thought maybe I can rotate the column headers in order to save some space. But FastReport does not compute column widths correctly, and the generated report looks like this:
Any thoughts?
I have gotten good help from the Fast-Report website by opening a ticket. This seems like the kind of question you might need to ask there.

Resources