How to use rounded border to table and text zone in rdlc - c#

i found difficult to make Table and text zone rounded in rdlc (visual studio report)
is there any expression to use instead of Solid
Any help please

Related

Rdlc label sticker in c# alignment issue

2column rdlc 2column and 3column sticker I used but its difficult to set alignment label not printer exact lable place and barcode in left side only I used zen. Barcode library
I tried lot to time spending to alignment

Programmatically resize an image in a report

My C# application generates a Crystal Report that contains many images with varying size, orientation, and aspect ratio. To make them appear correctly in the report, I use a white Square Canvas and center the image inside. This makes lot of wasted space:
Is it possible to resize each picture in the report to the appropriate size from C#? I have found a way to resize the images here, but I don't know if I can perform these steps from c#, especially when it comes to "Calculating and setting Width and Height to the proper number of twips."
I know the size of my image in C#, but can it be passed to and implemented in the report? Images are inside an xml file in base64 format.
Designer View:
Okay, i don't have a working solution but an idea that might help you ( and i hope it will )
I searched a programmatically way to do what you want, and i don't find anything. Unless the fact that you can manipulate your FieldObject with C#, it can't be used in your report.
So, i'll try to guide you with some screenshoots, but i am French and my screens will be in french, so sorry for the bad translations !
You can write a formula to change the display of your BinaryImage in your subreport. I just found a way to change the width of you data, not the height.
So, assuming my image is stored in "ARTICLE" table, and the name of the column is "ART_IMAGE". I put my data in the detail section and create a new formula, ignore the created formula, you need to access to the "formatting formulas" :
Here in my screen it is called "Formules de mise en forme". In the left you can see my simple report and on the right the formula panel, i clicked on my details section and i can see my only field.
Now right click on this field and create a new formatting formula :
A pop up is displayed, you'll need to choose something like that in english "
Adjusting the width" :
Now, you have to return the new width of your current image, a way to know what is the current width is to store it in a field in your database.
So if in your database you have a field for your image, and a field like image_width. In my example i have a field name ART_DIMENSION and i store the width of the image.
The tricky part is that this formula accept twips not inch or cm. For you information 1 inch = 1440 twips.
So in my example here is the formula :
So for each image to display, the width of my image will be the width stored in "ART_DIMENSIONS" ( with the good convert : inch to twips )
In your report design, with a formula like this which set the width dynamically for your image, you can set the section and your image object with a very small width. In this case your images will be displayed one by another because the section width will be edited for each image to display.
I tried to be very clear, hope it will help you, ask me any questions if you don't understand something.
Regards,

Crystal Report Layout issue

I am designing a Crystal Report in Visual Studio 2012 and can't seem to manage the position of a vertical line. I need the line to stick the right edge of the page, but it resists. Even if I managed to align it on the right, it displays at a different position after deploying the software on another machine, even when just previewing.
Setting the page size to A4 doesn't help. How can I make this easier on me?
Designer View:
In Report preview the right hand side line is not shown properly:
If I move the line a bit to the left, like this...
...the row background goes beyond the line in preview.
You might have better luck using a Box object for the outer layers and only using lines for the inside columns. Just like the lines, the Box can span multiple sections and will resize vertically if the report has extra lines added in. At the very least this will make sure the outside borders always connect perfectly.
If you're still having problems with precision, try setting the Size and Position. Set the Left and Top to zero, and calculate the appropriate Width value based on the Width of your report.
In the end Crystal reports are a little finicky when it comes to layout, and different viewers/printers might jostle stuff around a little. But unless the report has a dynamic width, you should be able to get it pretty close with a Box and very specific Size/Position values.

Crystal Reports with Arabic text alignment

I'm using ASP.NET, Visual Studio 2013- SP4 with Crystal Reports v13.0.15 and I have problem of Arabic text alignment as follows:
Right and center aligned text always appear left aligned on printing, it is shown OK in browser and designer (I have tried
different printers:my Deskjet printer, Microsoft XPS writer and pdf
writer).
This problem is with Arabic text only, English text aligned well when printed.
I face this problem with TextObject and with multiline FieldObject (or FieldObject with CanGrow set to true).
Exporting to pdf works well, I have problems with printing only (using the ActiveX Mode in CrystalReportViewer, IE11).
For example the following picture is browser view (everything is aligned Right, gray boxes are text objects):
while the printed version is as follows:
I appreciate any help. thanks in advance.
This is due to use english word with arabic.
if only arabic text come it work good if english text come with arabic then it align automatically left.

Crystal Reports - Adding Arabic and English in the same field

I'm trying to add a paragraph in English and another in Arabic in the same cell, is there a way to set the Horizontal Alignment and the Reading Order with different values?
can I use a delimiter to split them and set their alignment and reading order?
Take text field add english then add delimiter then arabic..
Place the field on design and enable can grow property
Coding a split formula to adding specific alignment for each paragraph won't solve the issue.
Referring to crystal reports documentation, one field can't have multiple alignments or reading orders.

Categories

Resources