Issue related to vertical line in Crystal Reports - c#

I have Crystal Report in VS 2008. The report has group header section above the detail section and group like display in image below:
I have drawn vertical image in detail section but it displays like in following Image:
I also tried to scratched vertical line below the detail section but it in output line goes out of the box like in following Image
How can i solve this issue?

In VS2008 open this report. Select the line and go to Properties Window. There you can reduce the value of Bottom. So your line height will be reduced. Reduce the value of Bottom until the vertical line fits the horizontal line.
Hope this helps you, Leave comments if any !

in the report designer you should zoom the Section3, Details and resize the vertical line to end exactly when it reaches the horizontal line. I know it's a pain and in Crystal is not as friendly as it is in other reports designers (like in my favourite one DevExpress XtraReports) but still you can do it if you zoom and carefully handle the size of the line object.

Related

is possible to add text as watermark in Crystal report

I want to add dynamic text (that is coming from table) as a watermark using crystal report in visual studio 2019.
If it is possible, please share advice.
Thank You...
One option is to split the Page Header section into PHa and PHb sections (right click PH and select 'Insert Section Below' to split the section).
Make Page Header B section tall.
In the section properties turn on the option to 'Underlay Following Sections'.
Place the Watermark Field/Formula/Parameter in Page Header B and make the font size large and Gray. The image below shows an example.
Note: if you need fancier watermark, such as text orientation that is not limited to 0, 90, 270), there are a couple of other options. But the solution above is the simplest.

Rdlc report vertical barcodes

I have a problem in rdlc report in Visual Studio 2019 printing barcodes (2of5 or 3of9). In horizontal mode they are all OK, but in vertical property (WritingMode), the barcode does not show all bars correctly.
In design mode on screen, with a static barcode, all looks OK. But when is printed in PDF or on paper the barcodes have different struct. I try set DpiX and DpiY in DeviceInfo string to 1200 but nothing change. Is this an exist any bug? Any help?
Sample of barcodes:
sample2
From my experience, when something does not visualize on rdlc, it's usually a matter of size of the control placed on the report.
If the barcode you're trying to print is too big for the control size you set, then it will be removed by rdlc.
Try to test this by putting the barcode control in an empty area of the report and making it quite big and see if the barcode appears.
The elements you provided at the moment are insufficient to understand what actually is happening.

How to make an oval frame in RDLC ( Report Viewer )

Is it possible to round the corners of a rectangle in rdlc Report?
I'm trying to make an oval frame in which will be some parameter with text.
I don't think anything changed in that area since, but here is what I found when I was looking for similar feature: Rounded corners on report body and header borders. I think background image is your only option and you can create it dynamically too.
Also, here is the another suggestion: from SO, but I haven't tried that approach, so don't know if it works.

Scintilla .NET editor. Position cursor at the first visible line

I am using the Scintilla .NET text editor control (ScintillaNet.dll) to display SQL. I am using the following command to position the caret cursor at a given line number. In the example below, I am positioning the caret cursor at line 102 (0 based. The grid displays 1-based line numbers.)
scintilla1.GoTo.Line(102); //0 based
I'd like text in the viewport to be displayed at the top of the screen as shown below, as the first visible line
How can I identify how to do this?
Update
This looked promising:
scintilla1.Lines.FirstVisible.Number = targetLineNumber;
but after executing, scintilla1.Lines.FirstVisible.Number wasn't always equal to targetLineNumber and I don't know what is interfering with it.There are hundreds of lines following the targetLineNumber line.
Get/Set first visible line works for me https://www.scintilla.org/ScintillaDoc.html#SCI_SETFIRSTVISIBLELINE
You can keep the cursor position first (SCI_GOTOPOS) and then set the first visible line

How can I add a straight line on my chart on the basis of user input from drop down menu in asp.net c#

I have generated a chart in asp.net c#, which gets user data from the database and display it. Now I want to add a line to it which can indicate the baseline set by the user. I think it might be a new series which will be drawn from start to end. It will be ideal if the user is able to change it and on changing the line is redrawn. I have dates on x-axis and activity time on y axis. In the following picture I want line like Goal. Any suggestions?
There are two ways I know which can be used to achieve this line.
One is by adding the tag but the line will appear under the bars.
If you want the line to appear above the bars then you need to add another series of type line chart. Make its x axis secondary and specify the values so that it appears as a straight line. Hide the lengends and labels etc for line chart.

Categories