on 11-05-2017 11:08 AM
I want the numbers as follows (٠١٢٣٤٥٦٧٨۹) after runtime
I'm use code to run CrystalReport :
Dim dt As New DataTable
With dt
.Columns.Add("ID")
End With
For Each dr As DataGridViewRow In Me.CalculationTableDataGridView.Rows dt.Rows.Add(dr.Cells("ID").Value)
Next
Dim rptdoc As CrystalDecisions.CrystalReports.Engine.ReportDocument rptdoc = New CrystalReportCount
rptdoc.SetDataSource(dt)
CRCountTotal.CrystalReportViewer1.ReportSource = rptdoc
CRCountTotal.ShowDialog()
CRCountTotal.Dispose()
So I pasted the text into a CR Text object and it shows fine.
The issue appears to be the Database driver you are using may be interpreting the wrong font.
Oracle for example has a Language property to set locale, others may have also.
Your code appears to be using the Dataset or XML data source so you need to look there for a solution.
Don
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is the appropriate font for the appearance of the figure as required is (٠١٢٣٤٥٦٧٨۹) ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Don Williams ,
I Try (MS Arial Unicode) but it did not work !
Is there a Font that numbers are like this (٠١٢٣٤٥٦٧٨۹) ?
I try one more then for code but not succeed :
Dim renderCulture AsCultureInfo = CultureInfo.CreateSpecificCulture("ar-IQ")
renderCulture.NumberFormat.DigitSubstitution = DigitShapes.NativeNational
Thread.CurrentThread.CurrentCulture = renderCulture
Dim rptdoc As CrystalDecisions.CrystalReports.Engine.ReportDocument
rptdoc = NewCrystalReportCount
rptdoc.SetDataSource(dt)
CRCountTotal.CrystalReportViewer1.SetProductLocale("ar-IQ")
Dim testLocale As CrystalDecisions.ReportAppServer.DataDefModel.CeLocale = CeLocale.ceLocaleArabicIraq
rptdoc.ReportClientDocument.LocaleID = testLocale
rptdoc.ReportClientDocument.PreferredViewingLocaleID = testLocale
rptdoc.ReportClientDocument.ProductLocaleID = testLocale
CRCountTotal.CrystalReportViewer1.ReportSource = rptdoc
CRCountTotal.ShowDialog()
CRCountTotal.Dispose()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Download SP 21, you are using SP 5, and try again:
https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads
Read the info on the WIKI, lots of info you need to know when updating your app.
Don
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks Don Williams , I'm Download and install (CRforVS_13_0_21) in Visual Studio 2012 but show error when run report:
An error occurred creating the form. See Exception.InnerException for details. The error is: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception >>> why ?
You need to format the field with a font that supports those characters.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks Don Williams , I try to change format the field with a font but did not succeed > what is the solution ?
Hi Don Williams , I use version CR for VS 13_0_5 _2
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.