How to show arabic data in to crystal reports ?How to aligh crystal report right to left

<p>we are trying to make a crystal report for both english and arabic..All the arabic data is stored in data base tables.And for arabic screens we need tables and datas come right to left.. </p><p>1)How can we get the arabic data and right to left alignment in crystal reports? </p><p>2)Is thee any direct method to change the report alignments? </p><p>can u please send some sample codes. </p><p>we are using java version= 1.5 </p><p>database using =Oracle 9i </p><p>char set we are using for arabic= CP1256</p><p> Tomcat using=4.1 </p><p>we are using Crystal Reports11 </p><p>We are not having seperate rpt files for reports. we are making each Sections and adding this sections to FieldObjet to make the report dynamically. A sample Employee report in english is attached..Can u instruct how can i get this report in arabic assuming all datas are stored in database. </p><p><br />import java.awt.BorderLayout;<br />import javax.swing.JFrame;<br />import com.crystaldecisions.ReportViewer.ReportViewerBean;<br />import com.crystaldecisions.sdk.framework.CrystalEnterprise;<br />import com.crystaldecisions.sdk.framework.IEnterpriseSession;<br />import com.crystaldecisions.sdk.occa.managedreports.IReportAppFactory;<br />import com.crystaldecisions.sdk.occa.report.application.ReportClientDocument;<br />import com.crystaldecisions.sdk.occa.report.data.;<br />import com.crystaldecisions.sdk.occa.report.definition.;<br />import com.crystaldecisions.sdk.occa.report.lib.PropertyBag;<br />import com.crystaldecisions.sdk.occa.report.lib.ReportSDKException;<br />import com.crystaldecisions.sdk.occa.report.reportsource.IReportSource;<br />public class ReportSample {<br /> ReportClientDocument rptDoc=null;<br /> int fldTop=0;<br /> int fldWidth=1440;<br /> int fldHeight=400;<br /> int pageWidth=11500;<br /> ReportSample(){<br />  try{<br />   IEnterpriseSession oEnterpriseSession= CrystalEnterprise.getSessionMgr().logon("Administrator", "","zzzza","secEnterprise");<br />   IReportAppFactory oReportAppFactory = (IReportAppFactory)oEnterpriseSession.getService("", "RASReportService");<br />   rptDoc = oReportAppFactory.newDocument(java.util.Locale.ENGLISH);<br />   Table oTable = new Table();<br />   oTable.setConnectionInfo(getConnectionInfo("zzzzz","zzzz","zzz", "zzz"));//Connectin to oracle database<br />   oTable.setName("EMP1");<br />   rptDoc.getDatabaseController().addTable(oTable, null);<br />         String[] columnName={"EMPNAME"};<br />       Section dtlSection=(Section) rptDoc.getReportDefController().getReportDefinition().getDetailArea().getSections().getSection(0);<br />   int fldLeft=100;<br />   for (int i=0;i<columnName.length;i+)<br />   {<br />    <br />    dtlSection= (Section) rptDoc.getReportDefController().getReportDefinition().getDetailArea().getSections().getSection(0);<br />     try{<br />     FieldValueType fldValueType = FieldValueType.stringField;<br />     String javaDataType="String";<br />      add_db_field(<br />      dtlSection, <br />     oTable.getName()"."columnName<i>, <br />     fldValueType,javaDataType,<br />     fldLeft, fldTop, fldWidth, fldHeight);<br />     }catch(Exception e){<br />      e.printStackTrace();<br />     }<br />    fldLeft = fldLeftfldWidth;<br />   }<br />   <br />       <br />   try { <br />          //Create and set up the window.<br />          JFrame frame = new JFrame("ReportsViewer");<br />          frame.setTitle( "Crystal Reports Viewer");<br />          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);<br />          ReportViewerBean viewer = new ReportViewerBean();<br />          viewer.init( new String[0], null, null, null);<br />          IReportSource rptSource = rptDoc.getReportSource();<br />          viewer.setReportSource( rptSource );<br />          frame.getContentPane().add( viewer, BorderLayout.CENTER );<br />          frame.setSize( 700, 500 );<br />          frame.setVisible(true);<br />          viewer.start();<br />   }catch(Exception e)<br />    {<br />     e.printStackTrace();<br />    }</p><p>   }catch(Exception e)<br />   {<br />    e.printStackTrace();<br />   }<br /> }<br /> public ReportObject add_db_field(Section oSection, String field_name, <br />   FieldValueType oFieldValueType,String fldDataType,<br />   double x, double y, double w, double h)<br /> throws ReportSDKException<br /> {<br />  DBField oDBField = new DBField();<br />  oDBField.setName(field_name);<br />  oDBField.setType(oFieldValueType);<br />  FieldObject oFieldObject = new FieldObject();<br />  oFieldObject.setDataSource(oDBField.getFormulaForm());<br />  oFieldObject.setFieldValueType(oDBField.getType());<br />  IndentAndSpacingFormat indentSpacing = new IndentAndSpacingFormat();<br />  IStringFieldFormat stringFieldFormat = oFieldObject.getFieldFormat().getStringFormat();<br />  stringFieldFormat.setIndentAndSpacingFormat(indentSpacing);<br />  oFieldObject.getFieldFormat().setStringFormat(stringFieldFormat);<br />  rptDoc.getReportDefController().getReportObjectController().add(oFieldObject, oSection, -1);<br />  return oFieldObject;<br /> }<br />  public ConnectionInfo getConnectionInfo (String new_username, String new_password, String new_dsn, String new_database)<br /> {<br />  <br />      ConnectionInfo oConnectionInfo = new ConnectionInfo(); // Make a copy, don&#39;t change the original.<br />      PropertyBag oPropertyBag1 = oConnectionInfo.getAttributes();<br />      oPropertyBag1.put("QE_ServerDescription", new_database);<br />   oPropertyBag1.put("Database DLL", "crdb_oracle.dll" );<br />   oPropertyBag1.put("DSN", new_dsn);<br />   // Set new table logon properties attributes<br />   PropertyBag oPropertyBag2 = new PropertyBag();<br />   oPropertyBag2.put("Server", new_database);<br />   oPropertyBag1.put("QE_LogonProperties", oPropertyBag2);<br />   oConnectionInfo.setAttributes(oPropertyBag1);<br />   oConnectionInfo.setUserName(new_username);<br />   oConnectionInfo.setPassword(new_password);<br />   // The Kind of connectionInfos is CRQE (Crystal Reports Query Engine).<br />   oConnectionInfo.setKind(ConnectionInfoKind.CRQE);<br />   return oConnectionInfo;</p><p>  }<br /> public static void main(String[] args) {<br />  // TODO Auto-generated method stub<br />  new ReportSample();<br />  //String cmsName = "admin-42cdvir7e(2)";<br />  <br />  <br />  <br /> }<br /> </p><p>}<br /></p>

<p>This issue can be  solved when you create the reports without needing to write any extra code.  I haven&#39;t tested this solution because I don&#39;t have any data to test it against.</p><p>First you want to make sure that you are using a UNICODE font which I&#39;m sure you are probably already doing.  Then to configure the "Right to Left" you can right click on any field and select "Format Text" or "Format Field".  You should see a "Paragraph" tab.  In there you can set the content to be "Left to Right" or "Right to Left".  The button on the right allows you to make this setting conditional on a parameter value or something like that.  I hope this helps. </p><p>Rob Horne<br /><a href="/blog/10">Rob&#39;s blog - http://diamond.businessobjects.com/blog/10</a></p>

Similar Messages

  • At the top of my homepage, I'm getting a message "Downloading the latest applications", but the circle to the left keeps spinning, and no applications are downloaded. I don't know how to stop this, tried right and left clicking on the bar. This occurs

    At the top of my homepage, I'm getting a message "Downloading the latest applications", but the circle to the left keeps spinning, and no applications are downloaded. I don't know how to stop this, tried right and left clicking on the bar. This occurs every time I open Firefox. How can I stop or disable this?
    == This happened ==
    Every time Firefox opened
    == Several weeks ago.

    See http://kb.mozillazine.org/Software_Update (Software Update not working properly)
    Remove the files in the ''updates'' and ''updates\0'' folder:
    Vista/Windows7:
    C:\Users\&lt;user&gt;\AppData\Local\Mozilla\Firefox\Mozilla Firefox\ (updates)
    C:\Users\&lt;user&gt;\AppData\Local\VirtualStore\Program Files\Mozilla Firefox\ (updates)
    %LOCALAPPDATA%\Mozilla\Firefox\Mozilla Firefox\updates\

  • How do i readjust the right and left speaker in iPod nano 2nd gen.

    How do i readjust the right and left speaker in iPod nano 2nd gen.

    Are you playing a song in iTunes that listed in contents of iPod while it is connected. Try going to your music lib and play a song and disconnect your iPod.
    Also, make sure you are not located in some sub dir that utililizes iTunes.
    You can also hit 'ctrl,alt,delete' to see what applications are running on your PC.

  • How can I create a right-to-left .pdf in MS Publisher with Acrobat Pro 9?

    Hello.
    We have a specialized application, and I was unable to find an answer by searching.
    We need to create a right-to-left diglot (multi-language) Bible translation in MS Publisher. It will have Hebrew and/or Aramaic on the right hand side, and English (and/or other languages) on the left. We need MS Publisher to get the layout we want (as well as for source document compatibility).
    When the document is done I need to create a single .pdf of the document, 8.5 x 11" (standard US_ paper), for the printer. How can I do that?
    I will be using Acrobat Pro 9.
    Thank you very much,
    Norman.

    Sorry, I forgot to specify that the page order needs to go from right to left (backwards from standard English documents).

  • Premiere Elements 13 - how to write Hebrew from  right --- to  left?

    I can see Hebrew fonts, but I can`t write Hebrew from right to left. Thanks!

    LAJRS
    I have not been involved in languages for Premiere Elements other than English. What I have been reporting to you relates
    to from what I have read.
    Your chances for obtaining the right to left text in Photoshop CS6 are likely to be good.
    On the video end of things, there was a report of a workaround with text generated in another program and then copy paste
    into the Premiere Pro Titler.
    http://www.clasener.eu/arabic-premiere-pro-solve/
    CreativeCOW
    I am not sure if that concept could be extended to Premiere Elements and its Titler.
    ATR

  • Bi content is not showing statistics data while running the report in porta

    hi friends,
    I  installed the BI Admin Cockpit to collect the statistical information.
    I can see the statistics informatio in portal only when i run the query in bex. if i run the report in portal it's not showing any statistics.
    could you guide me the exact reason and pls guide me to rectify this problem
    thanks in advance,
    sruthi.

    Any help on this....

  • How do I switch to right to left writing direction?

    In pages there is an option in the text layout section, however I cannot find it in keynote.

    Maggie..
    Follow the instructions here >  Learn how to set up iCloud on all your devices

  • Arabic data from Sybase database fails to display correctly in Crystal Reports XI

    Post Author: shajad
    CA Forum: Crystal Reports
    In Crystal Reports XI, reports created with a ODBC (SQL server) connection to a Sybase data source fails to show Arabic data correctly. Arabic data is stored in Sybase under character set Windows-1256, but fails to display as Arabic in Crystal Reports 10. Some junk values like 'ÕæÑÉÇáÓÌá ÇáÊÌÇÑí ÓÇÑíÉÇáãÝÚæá'  appears in the report.
    How can I resolve this issue? Please help me with a solution.

    Hi Raju
    Please let us know the following information:
    - Exact version of Crystal Reports.
    - The type and the version of the database.
    - Connection i.e. ODBC, OLEDB or Native used to connect your database with Crystal Reports.
    - Are you able to create and refresh newly created report using the same database?
    - If you are using ODBC connection, please download the SQLCON32 test utility and try to fetch the data from the database using the query from the "Show SQL" from Crystal Reports and let us know the outcome.
    Hope this helps!
    Thanks

  • How to show duplicate data in reports

    Hi experts,
    I need to show duplicate data also in my reports.
    1. I have removed Distinct in advance tab in report.
    2. In rpd unchecked the distinct supported.
    still i am not getting the duplicate records. report is showing distinct data only...how can we resolve this...
    Thanks,
    F

    Hi,
    Is BI show
    jan-08 customer 001 amount 200
    or
    jan-08 customer 001 amount 100 ?
    What is the aggreagation for amount?
    If it is sum then it shoud be 200 for amount.
    is there a column in your table that is different for those 2 lines with jan-08 customer 001 amount 100 like an ID or something?
    if yes then add that id in you dimmension table and then in your report.
    In this case you will get those 2 lines.
    There is another way but I know it shoudn't be used. To set none for aggregation rule.
    Regards
    Nicolae

  • Report 6i Arabic Date alignment problem in Windows 7

    Hi
    We have 6i Forms and Report and wanna run in windows 7. But we found arabic Date disaplay problem in reports. As you know arabic writting from right. But date display like 21/10/1431 and I wanna like 1431/10//21.
    I tried from regional setting and change date format from report. but this is problem from system it self,
    not accept right alignment. Even I install left to right patch (KB979643-x86).
    Please Help
    Thanks

    Like others have said you need to run the bootcamp installer to install the drivers.
    The time issue was a constant annoyance rebooting with OSX and my old XP bootcamp setup but it's gone with Windows 7 once you set your time to UTC format in the date and time properties instead of local time which OSX uses and XP couldn't support.

  • How to create a report with data using the Crystal Reports for Java SDK

    Hi,
    How do I create a report with data that can be displayed via the Crystal Report for Java SDK and the Viewers API?
    I am writing my own report designer, and would like to use the Crystal Runtime Engine to display my report in DHTML, PDF, and Excel formats.  I can create my own report through the following code snippet:
    ReportClientDocument boReportClientDocument = new ReportClientDocument();
    boReportClientDocument.newDocument();
    However, I cannot find a way to add data elements to the report without specifying an RPT file.  Is this possible?  I seems like it is since the Eclipse Plug In allows you to specify your database parameters when creating an RPT file.
    is there a way to do this through these packages?
    com.crystaldecisions.sdk.occa.report.data
    com.crystaldecisions.sdk.occa.report.definition
    Am I forced to create a RPT file for the different table and column structures I have? 
    Thank you in advance for any insights.
    Ted Jenney

    Hi Rameez,
    After working through the example code some more, and doing some more research, I remain unable to populate a report with my own data and view the report in a browser.  I realize this is a long post, but there are multiple errors I am receiving, and these are the seemingly essential ones that I am hitting.
    Modeling the Sample code from Create_Report_From_Scratch.zip to add a database table, using the following code:
    <%@ page import="com.crystaldecisions.sdk.occa.report.application.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.data.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.document.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.definition.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.lib.*" %>
    <%@ page import = "com.crystaldecisions.report.web.viewer.*"%>
    <%
    try { 
                ReportClientDocument rcd = new ReportClientDocument();
                rcd.newDocument();
    // Setup the DB connection
                String database_dll = "Sqlsrv32.dll";
                String db = "qa_start_2012";
                String dsn = "SQL Server";
                String userName = "sa";
                String pwd = "sa";
                // Create the DB connection
                ConnectionInfo oConnectionInfo = new ConnectionInfo();
                PropertyBag oPropertyBag1 = oConnectionInfo.getAttributes();
                // Set new table logon properties
                PropertyBag oPropertyBag2 = new PropertyBag();
                oPropertyBag2.put("DSN", dsn);
                oPropertyBag2.put("Data Source", db);
                // Set the connection info objects members
                // 1. Pass the Logon Properties to the main PropertyBag
                // 2. Set the Server Description to the new **System DSN**
                oPropertyBag1.put(PropertyBagHelper.CONNINFO_CRQE_LOGONPROPERTIES, oPropertyBag2);
                oPropertyBag1.put(PropertyBagHelper.CONNINFO_CRQE_SERVERDESCRIPTION, dsn);
                oPropertyBag1.put("Database DLL", database_dll);
                oConnectionInfo.setAttributes(oPropertyBag1);
                oConnectionInfo.setUserName(userName);
                oConnectionInfo.setPassword(pwd);
                // The Kind of connectionInfos is CRQE (Crystal Reports Query Engine).
                oConnectionInfo.setKind(ConnectionInfoKind.CRQE);
    // Add a Database table
              String tableName = "Building";
                Table oTable = new Table();
                oTable.setName(tableName);
                oTable.setConnectionInfo(oConnectionInfo);
                rcd.getDatabaseController().addTable(oTable, null);
        catch(ReportSDKException RsdkEx) {
                out.println(RsdkEx);  
        catch (Exception ex) {
              out.println(ex);  
    %>
    Throws the exception
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: java.lang.NullPointerException---- Error code:-2147467259 Error code name:failed
    There was other sample code on SDN which suggested the following - adding the table after calling table.setDataFields() as in:
              String tableName = "Building";
                String fieldname = "Building_Name";
                Table oTable = new Table();
                oTable.setName(tableName);
                oTable.setAlias(tableName);
                oTable.setQualifiedName(tableName);
                oTable.setDescription(tableName) ;
                Fields fields = new Fields();
                DBField field = new DBField();
                field.setDescription(fieldname);
                field.setHeadingText(fieldname);
                field.setName(fieldname);
                field.setType(FieldValueType.stringField);
                field.setLength(40);
                fields.add(field);
                oTable.setDataFields(fields);
                oTable.setConnectionInfo(oConnectionInfo);
                rcd.getDatabaseController().addTable(oTable, null);
    This code succeeds, but it is not clear how to add that database field to a section.  If I attempt to call the following:
    FieldObject oFieldObject = new FieldObject();
                oFieldObject.setDataSourceName(field.getFormulaForm());
                oFieldObject.setFieldValueType(field.getType());
                // Now add it to the section
                oFieldObject.setLeft(3120);
                oFieldObject.setTop(120);
                oFieldObject.setWidth(1911);
                oFieldObject.setHeight(226);
                rcd.getReportDefController().getReportObjectController().add(oFieldObject, rcd.getReportDefController().getReportDefinition().getDetailArea().getSections().getSection(0), -1);
    Then I get an error (which is not unexpected)
    com.crystaldecisions.sdk.occa.report.lib.ReportDefControllerException: The field was not found.---- Error code:-2147213283 Error code name:invalidFieldObject
    How do I add one of the table.SetDataFields()  to my report to be displayed?
    Are there any other pointers or suggestions you may have?
    Thank you

  • How to show a data in Higher fonts with write statement

    Hi.
    how to show a data in Higher fonts with write statement
    I want to show a statement in large fonts with write statement.How can I do that.
    write : 'Company Address'.
    Regards
    Mave

    Mave,
      I would precribe you to use the FORMAT options available with the WRITE Statement.
    Because this allows us to differentitate between the HEADIngs and the LINEs in the report.
    Here u go dear:
      http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9e7135c111d1829f0000e829fbfe/frameset.htm
    Thanks
    Kam

  • How to show only date in BO webi 3.1 text box

    how to show only date in BO webi 3.1 text box for e.g:-
    01/01/2005  (no time only date)

    hi,
    just check by which format your date is coming
    just create a one variable and check =UserResponse("Transaction Date From (mm/dd/yy)")
    if your output is in format of("mm/dd/yyyy hh:mm:ss a")
    then some format we have to write in todate syntax
    then your final formula for date would be
    =FormatDate(ToDate(UserResponse("Transaction Date From (mm/dd/yy)");"mm/dd/yyyy hh:mm:ss A");"dd/mm/yyyy")

  • How to show grouped data in the same table?

    Hi,
    I am using JDev 11.1.1.2.0 with ADF 11g.
    I have a below requirement
    I have a tbl as below
    Columns -==> RC TL Code
    Data ==> 0 0 Prof
    0 1 Prin
    0 2 Tech
    1 0 Prin
    1 2 Prof
    I prepared a query with a grouping on TL so that I can show my data as below
    TL - 0
    RC Code
    0 Prof
    1 Prin
    TL - 1
    RC Code
    1 Prin
    TL - 2
    RC Code
    0 Tech
    2 Prof
    Really confused on to what type of component should I use and how can the component be repeated once dragged and dropped onto the canvas. Is this possible using ADF? If not what is the alternative?
    Thanks in advance.

    Hi Bharat,
      Unload the Repository and Delete the Table and fields in Hierarchy table and Recreate and reload the data.OIther wise you have to lot of manual work.
    Thanks
    Ganesh Kotti

  • How to register/configure a Data Provider with Crystal Report Designer

    Hi,
    Iu2019m in the process of developing an ADO .Net XML Data Provider which works with Data Sets. I want to use this custom Data Provider through Crystal Report Designer 2008 so that I can access it from the u201CStandard Report Creation Wizard\Available Data Sourcesu201D section. How can I do this? I read the following in the u201Ccreating custom adddins.docu201D documentation.
    u201CCrystal Reports (CR) 2008 installs a new managed dll called DotNetExternalCommandAdapter.DLL and installs it into the Global Assembly Cache (GAC).  CR 2008 uses this dll to search and load files with a csc prefix in CR 2008u2019s AddIns subdirectory in a similar way it looks for database drivers, export drivers and UFLs. To create an Add-In the developer needs to reference this dll and inherit two classes from it, ICommand and ICommandDLL.u201D
    I have the following questions,
    1) As it mentions above how can I make Crystal find my custom Data Provider when it searches for the database drivers?
    2) Is there another class I can inherit from when creating my custom data provider? If so where can I find some documentation regarding this?
    3) Can I register my custom data provider in to the GAC and will Crystal find it if so how can I register my custom Data Provider? Will GACUtil work for Crystal as well?
    Thanks in Advance,
    Regards,
    Chanaka

    Baron, thank you for providing that link.
    Chanaka see if that article helps you out. It should - had I got to this thread earlier, I'd have sent that link also. Certainly DE place to start.
    Ludek

Maybe you are looking for

  • Is there a way to reduce the effective surface area of a magic mouse?

    I apparently cannot hold my mouse the "correct" way. My palm still wants to rest on the back half of the mouse, particularly when I want to scroll. And sometimes when I grab the mouse, my finger will swipe the edge and cause the screen to scroll. All

  • Error in SAP_R3_SelfServiceGenerics_MetaData JCo.

    Hi All,    While checking the ESS home page i get the following error. <b>com.sap.dictionary.runtime.DdException: 'SAP_R3_SelfServiceGenerics_MetaData' not properly defined! Unable to create Metadata connection for Dictionary Provider. Either the log

  • Module pool : Radio Buttons

    Hi experts, Need Small help on radio buttons in module pool.. my requirement is i have r1 and r2 radiobuttons. If i select r1. field1 and field2 has display and field3 and field 4 has to be not to display. and viceversa .. how to do pls send some cod

  • How can I get surround sound to export through the correct speakers?

    Hello there! I am experienced with Soundtrack Pro and can successfully export 5.1 surround. I'm moving over to Logic Pro to try out 7.1 surround, but I can't even export 5.1 surround successfully since dialogue for example comes out of all speakers,

  • Latest software for blackberry 9300

    hello.. can you tell me please how can i download the new software for blackberry 9300?  thanks