Crystal Reports is cutting right text on report and paper - wpf

I got this problem that drive me crazy. I have a project in VS2013 with v.13.0.15.1840. I'm using a auto grow field (has his own section) in crystal reports that is displaying a text interpreted as RTF. The problem is that on preview and even paper, the right side of the text is cut off (see screenshot). If the text is justified the it shows OK but I have situations when I need the text align to left.
So far I tried but with no effect:
Setting margins manually on Format Object, Paragraph.
Selecting no printer,Disassociating formatting page size and printer paper size.
Making the field smaller horizontally.
Does anyone know a solution for this?
The field on designer:
Edited for further explanations:
The RTF code can be viewed at https://gist.github.com/andySF/7ca61ffbe6ab6da53ca1
Also another try was to put my field in a textbox and then setting the right margin of the textbox to 3cm. It appears that the margin is somehow overridden after the first paragraph.

Use
Modyfi your datasource text rtf before send in to report CR
model.Document= model.Document.Replace("\pard", "\pard\ri380")

Related

SSRS Report Designer Cutting off Column Chart in Print Layout

I have a problem with my rdl report cutting off the column chart I put in when viewing it in print layout. The layout of the page is correct as no additional pages appear in the print layout.
I have a column chart that consists if 11 columns (categories) and it only seems to display 9 and half of the tenth off. It does not matter if I put the page orientation in landscape of portrait, the same problem exists. It also does not matter what size I make the chart, it seems to cut of the last column in print layout.
When I export the file to pdf then it works perfecty.
Can anyone assist me please?
Kind Regards
You can try to change size of the print page and orientation. press F4 on Design screen, you will see properties bar. There is a button (looks like a wierd spaceship or key) named "property pages".Paper size, orientation, mergins etc. can be set here

Winforms pie chart label text truncated

I'm using VS2019 and the default Winforms Pie Chart.
The legend appears as in the attached image.
I've tried playing with the chart size, and the larger I make the chart, the less truncated the legend text becomes, but it's going to have to be huge to fit it all in...
Any ideas why and how to change that so it's never truncated regardless of text length or chart size?
Thanks
EDIT:
Looking at the TextWrapThreshold and IsTextAutoFit properties of the Legend, the text is still graphically truncated, although it seems it is being "wrapped" like specified. This is still an undesired result..
What other solution is there besides enlarging the chart..?
#Yafim I'm moving the answer here because I need to post some images. You mean this is happening?
If this is the case, and you don't want the full legend text to appear inside the sections of the doughnut (because they are overlapping the doughnut itself), you can show the values only by setting the Series->Label->IsValueShownAsLabel property to true and get something similar to this:
Not sure if this was your problem, (you already showed in you photos you know about this)...

How can I neatly line up right-aligned check boxes with with other controls?

The Visual Studio WinForms designer lets you snap together text boxes, list boxes, buttons, and so forth reasonably well. However, a check box with CheckAlign=MiddleRight does not work quite like the others, because it has two components: the built-in label, and the check box itself. If you line up the text with other labels, the check box is left floating and will not automatically line up. You can turn off AutoSize and attempt to size the CheckBox control so the check box lines up, but this is touchy and will be thrown off by custom font sizes.
In this example, I've almost lined up the check box with the other controls, but not quite:
If I had several check boxes it would be a real headache, as with AutoSize turned off the position of the check box is relative to the end of the text, so each control has to be individually sized pixel by pixel.
What's the best way to line up check boxes with other controls?
One workaround is to not include text with the CheckBox and instead have a separate Label control. However, by doing so you lose the ability to click on the label to toggle the check box. On a high-resolution screen, clicking a 10x10 pixel is finicky, a poor UX experience. You could add an OnClick event to the label, of course, but that seems like solving the wrong problem.
Here's an example of someone else with the same issue: in the preferences panel in Oracle SQL Developer, when there's a mix of properties the check boxes are handled with separate labels and boxes:
Personally, i avoid that issue by not having the CheckBoxes aligned to the right:
rather than having the caption on the left.

Responsive text size

Is it possible to set font size so that the text fills the available space and then changes its size with the p element if the window is resized?
In my demo (link rotten as of March 2015) the text in paragraph two is set to fill the paragraph by trial and error and if the window is resized the text wraps.
FitText is just the ticket if you want to use it for a headline, not recommended for entire paragraphs though.
EDIT
FitText seems to need adjusting to get a proper fit...
Sure, every case is different. Out of the box it does work well though, here's a demo with the default $("#fittext1").fitText(); setting for the compressor and minor changes to the CSS.
http://jsfiddle.net/panchroma/mSt5Y/

SSRS indicator sizing

When adding an indicator to a report as per the image, is it possible to have all the indicators the same size regardless of the cell size (so centre them all rather than stretching to fill the cell)
Use rectangles within the cells of the table: within these, objects can be easily sized to not take full height or width.
Yes, sizing the rectangles and their contents can be annoying. I don't try to do much of this with the mouse, I quickly fall back to the properties window where I can type position and size.
try clicking on the indicator area (default name ie GaugeReportItem) within GaugePanel. You will get Size and position in Properties on the right hand side where you can choose AutoLayout. This will in effect center and resize gauges based on the cell width, height and your settings.
Hope it helps.
Exporting SSRS report to Excel did not go as expected.
Report with indicators in rectangles exported to Excel was randomly adding 0 height rows between the records which was not what I wanted. My indicators where simple green ticks and red crosses, based on true false. I have tried everything I found out there, even a subreport for indicator. No luck...
Figured it out that the indicators randomly outgrows the parent item when you export it, just like a chart. Ended up with saving a tick and a cross as an image. Then used an image control(with fit proportional set) and embedded Image with conditional statement to pick specific image. Also added some padding not to overlap borders.
The only problem I could think of is if the background of the report is not white as I could not change the background color of the cell the Image is and there is no option for the Image background.
Hope this helps someone else.

Resources