Font problem while printing russian characters

Hello,
I have a weird problem. When I print an exported crystal report document which has been exported by Crystal Reports for Eclipse 2.0 as PDF document, the printout misses a lot of russian characters. This area with the missing characters just stays blank, not even question marks or something similar is shown. It seems that the half of all characters of the document is not shown.
(But the document does not contain any missing characters when you just open it in Adobe Acrobat. You only see this behaviour when you print it. That's why we didn't recognize this error for a long time because we didn't print it but just opened it with Acrobat Reader)
I have an original document with russian characters which is saved as docx. When I export this document with MS Word to PDF and print this document, no characters are missing. So it's no printer problem.
There is a difference in both documents:
This document, where all characters work, has the following properties set in the font information tab:
Arial
   type: TrueType
   encoding: Ansi
   original font: ArialMT
   original font type:: TrueType
The document which has been created with Crystal Reports for Eclipse 2.0 just contains the following data:
Arial
   type: TrueType
   encoding: included
(I hope the right translation for this option set is "included" because my version of Adobe Acrobat is a non english version).
What exactly happened to this document. How can I solve this that russian fonts will be print correctly?
Regards,
Markus

By the way. I create the files in this way:
   private void createFile(String outFileName) {
      try {
         ByteArrayInputStream result = clientDoc.getPrintOutputController().export(ReportExportFormat.PDF);
         File newFile = new File(outFileName);
         FileOutputStream output = new FileOutputStream(newFile);
         int bytesRead = 0;
         byte[] byteArray = new byte[10000];
         while ((bytesRead = result.read(byteArray)) != -1) {
            output.write(byteArray, 0, bytesRead);
         output.flush();
         output.close();
      } catch (Exception e) {
         e.printStackTrace();

Similar Messages

  • Sap script - Problem while printing Hungarian characters during Unicode

    Hello Friends,
    We had done  unicode changes ie Version upgrade from 4.6 C to ECC and because of that sap script Hungarian characters are printing as Junk characters ex - #####.
    Can any one please help me on this issue. In SO10 Print preview also we are facing same issue.
    Thank you,
    Regards,
    Phaneendra

    Hi Phaneedhra,
    the below thread explains the font issue for Hungary..
    SAPScript with Hungarian characters on it.  Weh we review the output online it looks good, but when we print it we get a u2018#u2019 in place of Hungarian characters.  I found the following link in SDN and am wondering if you can help.
    Hungarian Character Printing problem
    Problem in displaying special chars
    Prabhudas

  • Getting font problem for printing form in Production server.

    Hi experts,
                   We are getting problem while printing form in production server. As it gives no problem in Quality server while printing the same, the print is fine. We applied packages from 26 to 28 level for version 4.7. When we moved this packages to Production server we got problem of font while printing the form for some of scripts. But the surprise is that in Quality server the print is fine, no problem at all.
                  Can any one suggest me on this issue.
    Regards,
    Sagun Desai.

    Hi sagun,
    Please check the spool request generated on production server using tcode SP01.
    Goto dispaly spool request and check the spool.If the spool too displays your script correctly then there is a problem in printer connected to production server.
    The printer connected to the test server  might be rightly conffigured to print the output.Please check the settings of the printer connected to the production.
    Hope this helps.
    Regards,
    Subodh

  • Problem in printing Portuguese characters

    Hi ,
    We are facing a problem while printing certain Portuguese character . Please guide how to print the PORT characters in SAP script?
    Thanks
    Saurabh

    Hi Saurabh,
    Did you [Search|https://www.sdn.sap.com/irj/scn/advancedsearch?query=chinesecharactersin+Script&cat=sdn_all] before posting...
    and also refer to this [link|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00adf4da-76f1-2910-43aa-81ad2a67332c]
    Regards!

  • Reader 10.0 Printing Problem - Font changing while printing

    Dear all,
    can anybody help me on my printing problem with Adobe Reader 10.0 ?
    While printing a pdf I cannot do anything else, it is not possible to touch the mouse
    because when I do this, the font is changing while printing to something like grecian.
    Can somebody help me on this ?
    Reader 9 did not cause this problem.
    Thanx and best Regards, Travelplan24

    I have the same problem, but I didn't realize it could be set off by my working on another task. It is also triggered when the pdf has scientific notation, or a very extreme change in font and font size. E.g., text in boxes, algorithms, etc. seem to trigger the problem.
    I have reinstalled my print driver (several times, latest on Sunday), and reinstalled Adobe Reader (now 10.0.1) but the problem remains.
    Printer:
    HP Officejet 6500 (E709n Series) wireless, now on USB.
    Document properties: Most recent font conversion - yesterday:
    Producer: Distiller 4.0.2 for Mac
    PDF version: 1.3 (Acrobat 4.x)
    Fonts: Helvetica-Neue, Type 1, Encoding: ANSI and Roman
    The font is not converting into Greek. E.g. "Problem-Solving Process" became "Qspcrfm . Tpnwjoh!Qspdftt"' with the kerning overlapping characters.
    The font 'conversion' has happened many, many times on a wide variety of pdf files in the past 6 months. Never had the problem before. I had downloaded new Reader, and purchased the new printer -- I do not know which change created the problem.
    I will cease doing anything when I print as a temporary workaround, but that is not a good solution.
    I sure hope you can figure out what the bug is. Thanks in advance.

  • Problem with computing Font width while printing in Landscape mode

    I have an application which prints a table and fills it with some text. I render it on a JComponent using the drawString(theStr, xPos, yPos) and the drawLine(rigtX, topY, rigtX, botY) methods in Graphics2D object. I want to take print-out of the table and also store the image of the table in, say, jpeg format. The print can be in Landscape or Portrait format depending on the size of the JComponent, which the user sets depending on the table size and the font size.
    I have a paintTable( ) method which contains all the drawString( ) and drawLine( ) methods. This method is called from the paint( ) method of the JComponent to achieve normal rendering. The same method is called to get a BufferedImage of the Table. The same method is further called from the implementation of print( ) method from the Printable interface.
    In the paintTable( ) method, I compute the pixel coordinates of the table grid lines and the texts positions in the tables depending on the font width and height obtained as shown below:
            // Set the Font             
            Font theFont = graphics.getFont();
            theFont = theFont.deriveFont((float)TableFontSize); // TableFontSize is an int of value 8,9,10 etc.
            graphics.setFont(theFont);
            // Get the Font Size      
            FontRenderContext frc = graphics.getFontRenderContext();
            float width = ((Rectangle2D.Float)theFont.getMaxCharBounds(frc)).width;
            float height = ((Rectangle2D.Float)theFont.getMaxCharBounds(frc)).height;
           System.out.println("FONT WIDTH HEIGHT [" + width + "," + height + "] ");I am getting the following value of width and height when the above print statement is executed with a value of 9 for TableFontSize. FONT WIDTH HEIGHT [18.0,11.3203125]
    The problem I face is :
    While Printing in Landscape mode the value of the 'width' variable printed as given above is becoming negative. Kindly see the values: FONT WIDTH HEIGHT [-9.37793,11.3203125]. This is happening ONLY DURING PRINTING IN LANDSCAPE MODE. This makes my calculation of table grid line coordinates and text positions completely wrong and the table goes out of place.
    Kindly note that, there is no problem during normal rendering and BuffereredImage creation and also while printing in Portrait mode. The problem happens irrespective of Linux or Windows. The value of 'height' is always correct.
    Kindly let me know: If the method I use to get the 'width' and 'height' is correct ? Is there any better way which will work fine in all platforms under all circumstances.
    Kindly help me to sort out this issue.
    Thanks a lot in advance and best regards
    -acj123

    I have extracted the relevent code and made a stand alone program.
    The complete code is enclosed; including that for printing.
    Kindly go through the same and help me to solve this problem.
    Thanks again and regards
    -acj123
    import java.awt.*;
    import java.util.*;
    import java.awt.geom.*;
    import java.awt.event.*;
    import java.awt.print.*;
    import java.awt.print.PrinterJob;
    import java.awt.font.FontRenderContext;
    import java.awt.image.BufferedImage;
    import javax.swing.*;
    import javax.print.attribute.*;
    import javax.print.attribute.standard.*;
    public class MyCanvas extends JComponent implements Printable, ActionListener
        int TableFontSize = 9;
        private Graphics2D graphics;
        public MyCanvas(JFrame frame)
            frame.getContentPane().setLayout(new BorderLayout());
            frame.getContentPane().add(this, BorderLayout.CENTER);
            frame.setJMenuBar(createMenuBar());
        public JMenuBar createMenuBar()
            JMenuBar menubar = new JMenuBar();
            JButton printButton = new JButton("Print");
            menubar.add(printButton);
            printButton.addActionListener(this);
            JButton imageButton = new JButton("Image");
            menubar.add(imageButton);
            imageButton.addActionListener(this);
            JButton drawButton = new JButton("Draw");
            menubar.add(drawButton);
            drawButton.addActionListener(this);
            JButton closeButton = new JButton("Close");
            menubar.add(closeButton);
            closeButton.addActionListener(this);
            return menubar;
        public void actionPerformed(ActionEvent evt)
            String source = evt.getActionCommand();
            if  (source.equals("Close"))
                System.exit(0);
            if  (source.equals("Image"))
                getImage();
                return;
            if  (source.equals("Print"))
                printCanvas();
                return;
            if  (source.equals("Draw"))
                repaint();
                return;
        public BufferedImage getImage()
            Dimension dim = getSize();
            BufferedImage image = (BufferedImage)createImage(dim.width, dim.height);
            this.graphics = (Graphics2D)image.createGraphics();
            System.out.print("\nImage ");
            paintCanvas();
            return image;
        public void paint(Graphics graph)
            this.graphics = (Graphics2D)graph;
            System.out.print("\nDraw  ");
            paintCanvas();
        public void paintCanvas()
            // Set the Font      
            Font theFont = graphics.getFont();
            theFont = theFont.deriveFont((float)TableFontSize);
            graphics.setFont(theFont);  
            // Get the Font Size       
            FontRenderContext frc = graphics.getFontRenderContext();
            float width = ((Rectangle2D.Float)theFont.getMaxCharBounds(frc)).width;
            float height= ((Rectangle2D.Float)theFont.getMaxCharBounds(frc)).height;
            System.out.print("FONT WIDTH HEIGHT [" + width + ", " + height + "] ");
            System.out.print(" SIZE "+ super.getWidth() +", "+ super.getHeight());
        public int print(Graphics graph, PageFormat pageFormat, int pageIndex)
            throws PrinterException
            if (pageIndex > 0) return Printable.NO_SUCH_PAGE;
            this.graphics = (Graphics2D)graph;
            graphics.translate(0,0);
            paintCanvas();
            return Printable.PAGE_EXISTS;
         *  Interface method for Printing the Canvas on Paper
        public void printCanvas()
            PrinterJob printJob =  PrinterJob.getPrinterJob();
            printJob.setPrintable(this);
            PrintRequestAttributeSet attr = new HashPrintRequestAttributeSet();
            if (super.getWidth() < super.getHeight())
                System.out.print("\nPrint PORTRAIT ");
                attr.add(OrientationRequested.PORTRAIT);
            else
                System.out.print("\nPrint LANDSCAPE ");
                attr.add(OrientationRequested.LANDSCAPE);
            Dimension dim = getSize();
            attr.add(new MediaPrintableArea(1, 1, dim.width, dim.height,
                                                  MediaPrintableArea.MM));
            attr.add(new JobName("MyCanvas", Locale.ENGLISH));
            attr.add(new RequestingUserName("acj123", Locale.ENGLISH));
            if (printJob.printDialog(attr))
                try
                    printJob.print(attr);
                catch(PrinterException ex)
                    ex.printStackTrace();
        public static void main(String[] arg)
            JFrame frame = new JFrame("MyFrame");
            MyCanvas canvas = new MyCanvas(frame);
            frame.setSize(800, 600);
            frame.setVisible(true);
    }

  • Problem while printing in ukraine language using smart form

    Hi All,
    Am facing an issue while printing the quality certificate in Ukraine language. I have created the smartform in English,later I maintained the transalations in Ukraine. I will execute the print program by passing the delivery number in selection screen.
    The problem is in print preview every thing is coming fine in Ukraine language except the ship-to party address,But when I issue the print only the ship-to party address in coming in UK rest all are coming as junk characters. Am using  HELVCYR font. I have tried creating form in UK as well but same result.
    Other Ukraine documents are printed correctly using the same printer.
    Please tell me what could be the problem here?
    Thanks in advance.
    Regards
    harris

    Hi Harikrishna,
                         Which printerdevice you using .Is it supports uk language.Try to findout proper printer device for this.

  • Problem while printing 132 col. report....

    We have one report of width 132 columns. But when we print this report,
    it prints only upto half width (Approx. upto 70 characters.)
    We are using Reports 6i on Red Hat Linux server.
    I tried to modify report width at developing time. But it is of no
    use.
    Which parameters needs to be changed to solve this problem?
    Thanks...
    Kiran.

    Hello Abid,
    I tried as you suggested. But problem is not solved.
    But when I run this report in Windows environment, it prints ok. i.e. I am getting full width of report. What I notice here that while printing thru Windows, I am geeting 'US STD FANFOLD' paper size . But in Red Hat Linux (Advanced Sever 2.1) I am not getting this page size. SO I think if I have this page size in Red Hat then my problem may get solved. Have you any idea how can we get this page size in Red Hat ?
    Thanks.... Kiran

  • Facing Problem while Displaying Russian words using HTP.TableData

    Hi,
    We are storing russian words in DB.While displaying these words, it is not displaying proerly.we are using "HTP.TableData" to display russian characters in the front end.Please suggest the solution to display russian words proeprly

    Hi Amith,
    I checked that way also, i put break point in database program of the copied LDB, but its not allowing to check the flow in that program also.
    Please suggest any other ways.
    Thanks,
    Nanda

  • Problem when printing Thai Characters in Smartform

    Hi All,
    When printing thai characters in smartform it takes more spaces between characters than required. I tried all possible font to adjust the character spacing.
    Can anyone help me out.
    Thanks,
    Khushboo Dand

    Dear Khushboo, Jag
    I have observed that tThe tiny boxes that are appearing in the Smartform text element is only occuring when you are printing a variable whose content is thai and nothing else with that. by nothing else i mean no THAI hardcoded text.
    if you try and check you will observe that when you try to print something like this in your Text element
    with your paragraph format alright/ output device and device type everythng in place
    eg:
    ของผู้มีเงินได้ &G_VAR& -
    is printing alright : content of G_VAR is thai characters
    but if you are printing just the variable
    eg:
    &G_VAR& --- it will print boxes
    to overcome this after trying no.of checks / online helps / settings etc etc which , ofcourse, did not help
    I did a lil bit trick with the system
    You can create a character format in your smartstyle with FONT : THANGSAN and maintain the COLOR as white
    now go to your text element key in a THAI character at the start or end of you variable and assign your new character format to that character. and Eureka! it will work
    eg: <CF> ข </>  &G_VAR&  - --- seen in your change editor
    where CF is the new "colorless" character format I have asked you to create.
    Thanks and Regards,
    Charu.
    Edited by: Charu Borkar on Aug 3, 2011 00.14 am

  • REP-1849: Failed while printing : Problem while printing on network printer

    I am getting this error message while printing the report on Network Printer.
    "REP-1849: Failed while printing"
    Reports Server is not installed on my machine.
    On shared printer, it has no problems.
    Platform is Win2000. Report Builder 6.0.8.11.3
    Plz help !
    Thanks in advance !

    Try the following if your printer is a network printer
    1. Add Printers - select Local Printer
    2. In the Add Printer wizard, select "create a new port" option and select "TCP/IP" as type
    3. Write the IP address of the network printer in the "Add standard TCP/IP Printer Port wizard". The port name becomes IP_<ip addr>. Click Next.
    4. Select the printer and printer type in "Add Printer" wizard.
    5. Select a driver and Write a printer name. This completes the setup. Use this printer name to print from Oracle reports.
    Hope this helps..
    Yogesh
    I am getting this error message while printing the report on Network Printer.
    "REP-1849: Failed while printing"
    Reports Server is not installed on my machine.
    On shared printer, it has no problems.
    Platform is Win2000. Report Builder 6.0.8.11.3
    Plz help !
    Thanks in advance !

  • Problem while inserting Latin characters

    Hi All,
    Version details
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE    10.2.0.4.0      Production
    TNS for Solaris: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - ProductionLanguage :
    SQL> show parameter nls_lang
    NAME                                 TYPE        VALUE
    nls_language                         string      AMERICANCurrently,we are facing problem in inserting Latin characters such as 'ʬ '
    We are receiving these characters from another DB via DB Link .What parameters should I change in my DB to accept those Latin characters.
    Please suggest an approach or charset that'll allow my Db to accept both English and Latin characters.

    Sorry for not providing exact information.But please consider the example character that I've mentioned 'ʬ'.
    While I'm trying to insert the above character in my Db with below nls_parameters
    SQL>  select parameter||'--> '||value from nls_database_parameters;
    PARAMETER||'-->'||VALUE
    NLS_LANGUAGE--> AMERICAN
    NLS_TERRITORY--> AMERICA
    NLS_CURRENCY--> $
    NLS_ISO_CURRENCY--> AMERICA
    NLS_NUMERIC_CHARACTERS--> .,
    NLS_CHARACTERSET--> UTF8
    NLS_CALENDAR--> GREGORIAN
    NLS_DATE_FORMAT--> DD-MON-RR
    NLS_DATE_LANGUAGE--> AMERICAN
    NLS_SORT--> BINARY
    NLS_TIME_FORMAT--> HH.MI.SSXFF AM
    PARAMETER||'-->'||VALUE
    NLS_TIMESTAMP_FORMAT--> DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT--> HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT--> DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY--> $
    NLS_COMP--> BINARY
    NLS_LENGTH_SEMANTICS--> BYTE
    NLS_NCHAR_CONV_EXCP--> FALSE
    NLS_NCHAR_CHARACTERSET--> AL16UTF16
    NLS_RDBMS_VERSION--> 10.2.0.4.0
    20 rows selected.My Table
    create table r_dummy (a varchar2(4000))
    /Insert Script
    insert into r_dummy values('ʬ' )But after inserting
    When I retrieve the inserted data
    SQL> select *
      2  from r_dummy;
    A
    ?Please lemme know how to insert the above character.

  • Problem while printing through citrix

    Dear Gurus ,
    We are facing the problem during printing through citrix .
    When we print locally without using citrix  were able to get the proper print as it displayed in the spool .
    But When we try to take the printout of  document having say 12 colum , only 10 colums r coming asthe print out .
    Please suggest as the views on this issue are valuable
    Thanks in advance .
    Chirag Kohli .

    Hi
    I am facing same problem
    Please let me know if you get any solution
    Thanks
    Rakesh Patel
    [email protected]

  • Problem while printing

    I am using adobe acrobat professional 8.1. while printing the printout will be jumbled. For this if i use print as image option an advanced, i will get the correct printout, if i give print as image the file size will be heavier, and printing gets slow. i am using windows xp professional, and thosiba E studio200 printer. please help me. thank u
    vijay

    hi! Krishna Kumar
    Check whether the Print immediately option is checked in Print properties.
    else
    if you have created a new print format for you Program , check whether that format has been Transported to Production.
    Regards,
    Nagulan

  • Problem over printing Vietnamese characters

    Hi,
    We installed the Vietnamese language. The Vietnamese charcaters can be
    displayed properly. But we encountered error over printing Vietnamese
    characters. The Vietnamese charcaters cannot be displayed properly.
    What device type settings is needed for printing Vietnamese characters ?
    Pls advise.
    Thanks.
    Edward

    Hi,
    As per your query you have to set swin type if you have any issue. If your system is given your country language then you can get the same with swin setting.
    Anil

Maybe you are looking for