HTML text in Crystal Report 2015 - tsql

It is possible to dispay a HTML text from DB to Crystal report?
Now I have this text:
<b>EMOCROMOCITOMETRICO</b> IN DATA 10-12-2017 ESITO: ; : BC : 4.240; HGB : 11.000; MCV : 78.000;
PLT : 375.000; WBC : 8.800; NEU% : 56.300; LYM% : 34.700; MON% : 5.600; EOS% : 3.100; INR : 1.050;
I want to create a PDF file with Crystal report but I see the tag HTML instead of bold text.
It is possible to do this and how can I do this?

Yes you can do it by changing the text interpretation to HTML.
Create a formula field and take the DB field into formula field and place it on the report.
Now Right Click formula field --> format ---> Paragraph --> text representation --> change to html
and click ok

Related

Drupal - Get "Year" value from a "Date" Field

I have a "Date" field named "X". I have another field "Y" that references a "Field" type.
I would like to get just the "Year" value from "X" into "Y".
I would prefer doing this using GUI instead of adding/modifying PHP code. Is there a module that can help accomplish this?
Both "X" and "Y" are in the same Content Type.
Thanks for the help!!
Within views module you can group by date without having to duplicate a datetime/timestamp field only to retrieve the year part. For you custom view :
Under format title, use "fields" beside "show", select your prefer settings
Under Fields title, select the date field you need to tune, Formatter as default and Date format as Custom. As Custom date format put Y (see here https://www.php.net/manual/en/datetime.format.php#refsect1-datetime.format-parameters). If desired field can be hidden from the view, up to you.
Return under format title, format -> Settings : there you can choose your grouping field you just created, even if hidden.
This is out of the box but I advise you to play around with views settings, one at the time, to understand what changes what.
Views is very powerful.

Export xls.sheet into a groups of pages, iReport java

I wan't to export a Jasper Report to Pdf & Excel.
When the export type is PDF : i need the pagination of document to
be ignored.
When the type id EXcel : i need even page on an excel sheet and rename these sheet's by the label of the un-repeated group.
To print the whole document in a single page, your report must ignore pagination by default. For this, you've to check ignore pagination to true.
Your_Report >> Properties >> ignore pagination = true
For excel sheet's, add the following variable in a field that changes for each group, it makes it possible to do the jump for a new sheet.
<property name="net.sf.jasperreports.export.xls.break.after.row" value="true"/>
For change the name of the sheet dynamically on excel, you can use :
<propertyExpression name="net.sf.jasperreports.export.xls.sheet.name"><![CDATA[$F{libUniteOrg}]]></propertyExpression>

Crystal 2013 - Is field in field possible?

i am creating a template for an invoice-document. There are some text-blocks i want to include from external via DB-Field so that i can manipulate the text without changing the RPT-File. As some of the Text-Block also inlude VARS i was wondering if there is a chance to also include the VAR itself into the text-block, meaning we have a Field including a Field.
Is this possible? My first tests failed as the Name of the Var is interpreted as text and just printed but not changed into the VAR-Value.
--- Edit ---
Example:
Database-Field: {Table1.Value} -> 4.00
Database-Field: {Table1.Text} -> 'The value is {Table1.Value}'
If i now add {Table1.Text} into the report, it should show as "The value is 4.00"
Yes this is possible. Create a regular text box and set its text. Then drag a database field or a formula from the field explorer on the text box.

CRM 2011+ SSRS Report + Currency Formatting

I have created a ssrs report in CRM online using BIDS.
Generated well but those currency field which is negative shows on the report with bracket.
All positive currency fields showing well on the report but negative currency field is showing with bracket like "(value)" on the report.
May do this like "-$value" or something else.
Please help.
You need to change the settings inside the placeholder properties, right click on the field in Design mode and you can choose also the format for negative values
You can try setting the textbox Format property using an explicit format string, something like:
$#,#;-$#,#;$0
To edit a textbox Format property click on the textbox then edit the Format value in the Properties tab:

Crystal Report TextBox

I am working on crystal report, i need to pass value(from Winforms) to crystal report
Textbox control's like Period:10-11-2009 To 13-11-20009 this value I want pass for crystal report textbox control
advance wishes...
see this link it shows how to pass parametar to crystal report.There are many more examples for this just ask google
link to an example
You can pass values to crystal using parameters. Then you can display these in the reports.
See the code below
//Initialize your report
sample_report yourReport = new sample_report();
CrystalDecisions.CrystalReports.Engine.TextObject variableName=
(CrystalDecisions.CrystalReports.Engine.TextObject)
yourReport.Section2.ReportObjects["nameoftheTextboxInyourReport"];
variableName.Text = "Period:10-11-2009 To 13-11-20009";
You can add the from date and to date in the details or header column that you are passing through the data source to the crystal report .. drag those fields from the field explorer and put them into the text field
Just use parameters and pass the Textbox value :
Example in VB.NET :
Dim rptList As ReportDocument = New ReportDocument()
With rptList
.Load(strPath)
.SetDataSource(dtsData)
rptList.SetParameterValue("SomeName", yourTextBox.Text.trim)
End With
strPath is the path to your .rpt file and dtsData is the dataset.
in SetParameterValue define a name and value, just notice that you should create a parameter with the same name in your crystal report.
' txtName = textbox name in crystal report
' txtValue = text value to be passed to report
Dim objText As CrystalDecisions.CrystalReports.Engine.TextObject =RtpDocument.ReportDefinition.Sections(1).ReportObjects(txtName)
objText.Text = txtValue
CrystalReportViewer1.ReportSource = RtpDocument