Garbage characters when using CR XI R1 with Sharp M350 printer PCL5e driver

My application uses CR XI R1. We have a customer who has a Sharp M350 printer. When printing or previewing a report from my application with this printer set as the default, the text is garbled - the characters look like gibberish.
If they change the default printer to another printer, it works fine. but they need to be able to print to the Sharp printer so I need to find a solution to the problem.
Changing the printer driver to a PCL6 has no effect. Does anyone have any suggestions for fixing this?

A few questions:
1) What development language are you using?
2) Have you ever applied any CR Service Packs?
3) Have you checked for any updated for the Sharp M350 printer driver?
4) Can you duplicate the issue on your development system?
5) Are you able to print correctly to that printer using the CR designer? (even if you have to as a test, install it on one of the client machines?)
6) What Crystal Reports SDK are you using? RDC? If so, what is the CR dlls referenced in your app?
Ludek

Similar Messages

  • Leading garbage characters when using CipherInputStream

    So, after receiving an encrypted message, I can decrypt it perfectly except that I get a random amount of leading garbabe characters. Using the same plaintext, here are examples of the beginning of the output file for two runs (using od -c to look at the files):
    0000000 315 7 004 371 242 \0 w ` t h e L L S E
    and
    0000000 1 " 246 317 0 j 321 V t h e L L S E
    The part beginning with "The LLSE..." is correct.
    The fact that the leading garbage appears to be random leads me to believe that there is something wrong with the crypto rather with the file I/O.
    Here's the relevant code chunk:
    Cipher sharedCypher = Cipher.getInstance("DES/CFB8/PKCS5Padding");
    SecretKeySpec DESKeySpec = new SecretKeySpec(clientDESKey.getEncoded(), "DES");
    IvParameterSpec iv = new IvParameterSpec(clientDESKey.getEncoded());
    sharedCypher.init(Cipher.DECRYPT_MODE, DESKeySpec, iv);
    CipherInputStream cis = new CipherInputStream(new FileInputStream(WD), sharedCypher);     
    String time = ""+System.currentTimeMillis();
    File outputFileW = new File("/tmp/new_wireless_data."+time);
    System.out.println(System.currentTimeMillis()+": Output file is" + outputFileW.getAbsolutePath());
    outputFileW.createNewFile();
    FileOutputStream fos = new FileOutputStream(outputFileW);
    byte[] putCypherBytes = new byte[8];
    int i=0;
    while((i=cis.read(putCypherBytes)) !=  -1) {
       fos.write(putCypherBytes, 0, i);
    }Any thoughts on cleaning this up would be greatly appreciated.
    Best,
    Glenn

    Well, I seriously doubt its the JDK or JCE. I dont have time right now to
    download that exact version and test it, but instead I'll give you the code
    I pieced together from your posts. Put your text to be encrypted in a file
    called plaintext.txt in the directory you run the class in. The decrypted
    text should be appear in new_wireless_data...
    If you can run this without error, then your problem most likely lies
    on your server-side.
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import javax.crypto.Cipher;
    import javax.crypto.CipherInputStream;
    import javax.crypto.SecretKey;
    import javax.crypto.spec.IvParameterSpec;
    import javax.crypto.spec.SecretKeySpec;
    import sun.misc.BASE64Decoder;
    public class CryptoTest {
        public static String encryptedFile = "encrypted.txt";
        public static String plainTextFile = "plaintext.txt";
        public static SecretKey clientDESKey;
        public static String keyString = "emePXfjmLNw=";
        public static void main(String [] args) {
            try {
                BASE64Decoder base64Decoder = new BASE64Decoder();
                byte[] keyBytes = base64Decoder.decodeBuffer(keyString);
                clientDESKey = new SecretKeySpec(keyBytes, "DES");
                _main(args);
            } catch (Exception e) {
                System.out.println("ERROR! : " + e.getMessage());
                e.printStackTrace();
        public static void _main(String [] args) throws Exception {
            Cipher serverCypher = Cipher.getInstance("DES/CFB8/PKCS5Padding");
            serverCypher.init(Cipher.ENCRYPT_MODE, clientDESKey,
                new IvParameterSpec(clientDESKey.getEncoded()));
            File inputFileW = new File(plainTextFile);        
            CipherInputStream cis1 =
                new CipherInputStream(
                    new FileInputStream(inputFileW),serverCypher);               
            File outputFileW1 = new File(encryptedFile);
            FileOutputStream fos1 = new FileOutputStream(outputFileW1);
            byte[] putCypherBytes1 = new byte[8];
            int i1=0;
            while((i1=cis1.read(putCypherBytes1)) !=  -1) {
               fos1.write(putCypherBytes1, 0, i1);
            inputFileW.delete();
            //=========================================================
            Cipher sharedCypher = Cipher.getInstance("DES/CFB8/PKCS5Padding");
            SecretKeySpec DESKeySpec = new SecretKeySpec(clientDESKey.getEncoded(), "DES");
            IvParameterSpec iv = new IvParameterSpec(clientDESKey.getEncoded());
            sharedCypher.init(Cipher.DECRYPT_MODE, DESKeySpec, iv);
            CipherInputStream cis = new CipherInputStream(new FileInputStream(encryptedFile), sharedCypher);     
            String time = ""+System.currentTimeMillis();
            File outputFileW = new File("new_wireless_data."+time);
            System.out.println(System.currentTimeMillis()+": Output file is" + outputFileW.getAbsolutePath());
            outputFileW.createNewFile();
            FileOutputStream fos = new FileOutputStream(outputFileW);
            byte[] putCypherBytes = new byte[8];
            int i=0;
            while((i=cis.read(putCypherBytes)) !=  -1) {
               fos.write(putCypherBytes, 0, i);
    }

  • When using facetime having difficulty with video, sound is ok.screen says reconnecting.

    When using facetime having difficulty with video.msound is ok. Screen says reconnecting

    There have been numerous reports of FaceTime problems for the last several days and it is unclear what the cause if. Following is one of many discussions of the issue: https://discussions.apple.com/thread/6096640?tstart=120

  • LabView (8.2) hangs when using I/O operations with traditiona​l NI-DAQ 7.4.4 after aborting LabView program

    Hello!
    We have the following problem:
    LabView (8.2) hangs when using I/O operations with traditional NI-DAQ 7.4.4 after aborting LabView program
    We freshly installed LabView 8.2 (2006) and NI-DAQ 7.4.4 on a PC running Windows XP (Service Pack 3). We built a larger vi that remotely controls a traditional NI-DAQ card (AT-AO-10) on a second PC via NI-VISA 5.0.3. We were successfully running this program until a power failure caused the first computer to crash. After this crash we were unable to start the program again: LabView freezes while loading the vi. LabView itself can be started but freezes when adding I/O operations from the NI-DAQ palette to a block diagram.
    We have tried to re-install NI-DAQ 7.4.4, but it did not help. We then re-installed all NI software, but still no improvement. In the end we decided to reinstall ALL software, first Windows XP, then LabView and finally NI-DAQ 7.4.4. This worked. However, after a few days of running the program we had to abort LabView via Windows Task manager and afterward we again experienced the same problem as before: LabView freezes when loading the program.
    Obviously, we cannot afford to reinstall Windows every time. Are there any known Windows XP / NI-DAQ issues that might cause the freezing of LabView? We would be very grateful for any idea.
    Best regards,
    Matthias

    Hello Sprice,
    Browse the shipping examples according to “Directory Structure” and then select
    DAQ to find the Traditional DAQ examples. 
    There a lot of examples that are written for counters (Counter >>
    daq-stc.llb >> Count Edges (DAQ-STC).vi). 
    What kind of signals are your photons creating?  Are they TTL compatible at a certain
    frequency?  You don’t care about overwriting
    your buffer?
    Respectfully,
    Rob F
    Test Engineer
    Condition Measurements
    National Instruments

  • How to numberformat when using sql:query alogn with c:forEach JSTL tags

    Is there anyway to format the numeric values returned from the database when using <sql:query> alogn with <c:forEach> tags
    Here is my jsp code
    <sql:query..../>
    <c:forEach var="row" items="${queryResults.rows}">
    <tr>
    <td><c:out value="${row.COL1}" /></td>
    <td><c:out value="${row.COL2}" /></td>
    </tr>
    </c:forEach>
    Col1 values are numeric without any formats Eg: 1000, 10000, 1000000 etc.
    how can i format them to 1,000 , 10,1000 , 100,000 etc

    It is polite to mention what your answer was. These posts are not just here for you to ask questions, but to be used as a resource for other people to find answers. Saying "I solved it" with no details helps noone.
    I presume you discovered the JSTL <fmt:formatNumber> tag?

  • HT201178 when using apple bluetooth keyboard with iPad, hitting the enter/return key while typing in iMessage only adds another line not 'send' the message? is there a setting to change that somewhere?

    when using apple bluetooth keyboard with iPad, hitting the enter/return key while typing in iMessage only adds another line not 'send' the message? is there a setting to change that somewhere?

    Everywhere that I've checked it is not possible to do this. I would like to even do this using the vkb. I hate having to stretch my thumb all the way up just to send a message. It's messaging, not a report or email. Seems backwards. Hopefully some day Apple can add this option.

  • Sand Box has stopped working error when using System Exec.vi with wait until completion is true

    I get the following error message in Windows 7 "Sand Box has stopped working" when using System Exec.vi with wait until completion set to true, if I set it to false there is no error message.

    Hello JJVerdi
    mmm well System Exec.vi simulates a DOS command window, can you run the sandbox from the cmd window using the same commands without any errors? 
    you may take a look to this KB, it may be related to your issue:
    http://digital.ni.com/public.nsf/websearch/2393462​BD57B854186256C4F007B706A?OpenDocument
    Regards
    Mart G

  • Is there any way to forse user to put at least 5 characters when using LOV?

    Hi gurus,
    I have a question.
    Is there any way to force user to put at least 5 characters when using LOV?
    I want user to put at least 4 characters before/when using LOV.
    Is there any way to do that?
    Thank you for your answers.
    Nerijus

    Hello,
    i've tested it both on 6i and 10g and also set the lov name at runtime.
    All i can say is, it does what it is supposed to do.
    So you should give it one more try:
    - leave the item properties NULL ( LOV name ) and NO ( Validate_From_List )
    - add following code in the WVI - Trigger
    IF :AUFTRAG_NEU.PN IS NOT NULL AND LENGTH ( :AUFTRAG_NEU.PN ) < 5 THEN
      Show_Message ( 'Bitte 5 Zeichen eingeben' );
      RAISE FORM_TRIGGER_FAILURE;
    ELSIF :AUFTRAG_NEU.PN IS NULL THEN
      NULL;
    ELSE
      SET_ITEM_PROPERTY ( 'AUFTRAG_NEU.PN', LOV_NAME, 'LOV_PN_PROJEKT' );
      SET_ITEM_PROPERTY ( 'AUFTRAG_NEU.PN', VALIDATE_FROM_LIST, PROPERTY_TRUE );
      IF SHOW_LOV THEN
        NULL;
      END IF;
      SET_ITEM_PROPERTY ( 'AUFTRAG_NEU.PN', VALIDATE_FROM_LIST, PROPERTY_FALSE );
      SET_ITEM_PROPERTY ( 'AUFTRAG_NEU.PN', LOV_NAME, '' );By the way, what exactly doesn't work?
    Bernd

  • When using i-Cloud PAGES with another shared person, how to you shift ownership control of the file to the other who started as a collaborator?

    When using i-Cloud PAGES with another shared person who is a collaborator, how to you shift ownership control of the file to the shared person who started as a collaborator and needs to take over file ownership responsibilities?

    Thanks, but I have searched here but have not found or heard a direct answer to my question as stated above...

  • Am using PS Elements 8 with Vista.The print menu shows: "Paper Type:Unknown"

    Am using PS Elements 8 with Vista.The print menu shows: "Paper Type:Unknown".I want to use glossy photo paper.How do I do this ?
    Veblen

    Make sure the Printer is installed on your machine. If the printer is not installed on your machine the paper type will come as unknown.
    After installing the printer :-
    1. select the printer in the "Select Printer" setting.
    2. In the Printer setting option click on "Change Settings" button.
    3. Select the paper in the "Paper type" dropdown list.

  • Cannot rename file with non-ASCII characters when using the

    My application moves files from one directory to another by calling File[] srcFiles = srcDir.listFiles() to get a list of files in the source directory, and then calling srcFiles.renameTo(destFile) to rename each file.
    This does not work (renameTo returns false and the file is not moved) under the following circumstances:
    - the file's leaf name contains non-ASCII characters, for example "�"
    - the OS is Solaris 9
    - the LANG and LC_* environment variables are unset, i.e. the C locale is being used
    If I set the LANG environment variable to, for example, en_GB.UTF-8 then the rename succeeds.
    I have tried calling srcFiles[index].getName().getBytes("UTF-8") and the non-ASCII characters are being replaced with ? (0x3f) characters when LANG is unset.
    Is this a bug in the JRE? I would argue that since my code does not actually manipulate the filename (I just use the File object that File.listFiles() gives me) then the rename should succeed. Of course I would not expect the file name to be displayed correctly if I printed it out.
    I have reproduced this behaviour with JDK 1.4.2_05 and 1.5.0_04 on Solaris 9.
    Francis

    Thanks for the info Alan.
    I considered setting the locale in the environment (this sounds like the "correct" fix to me and we might implement it later), but this application shares a WebLogic server with many other applications so we would have to do a huge amount of testing to make sure that the locale change wouldn't break the other apps. In the end I worked around the problem by making the code that generates the filenames in the first place strip out any non-ASCII characters (the names of the files are not critically important).
    Looking forward to JSR-203, in the meantime perhaps a note about this behaviour in the java.io.File javadoc would be useful.

  • Multibyte character was garbage characters, when multipart requested (Multipartリクエストで文字化けが発生する) on WebLogic12(12.1.2.0)

    When using File Upload functionality of Servlet3 specification, other item's value(<input type="text">) was garbage characters.
    Need special settings?
    WebLgic12c(12.1.2.0)のファイルアップロード機能(Servlet3仕様の機能)にて、アップロードファイル以外の項目の値が文字化けしました。
    これは、何か設定が必要なのでしょうか?
    【Note】
    When normal request(application/x-www-form-urlencoded), submitted value is not garbage characters.
    Filename & File content of uploaded file is not garbage characters.
    I confirmed by debugger that stored value in temporary file is not garbage characters.
    HttpServletRequest#setCharacterEncoding("UTF-8") is used.
    enctype="multipart/form-data"を指定しないリクエストでは文字化けは発生していません。
    アップロードしたファイルのファイル名及びアップロードファイルの中身自体は文字化けしていない。
    アップロード時に出力される一時ファイルの中身をデバッグ実行して確認したところ、この段階では文字化けしていなかった。
    HttpServletRequest#setCharacterEncoding("UTF-8")も実行しています。
    【Environment Information】
    OS : MacOS X 10.8.5
    JVM : Oracle Java7
    VM Encoding : UTF-8 (-Dfile.encoding=UTF-8)
    WebPage Encoding : UTF-8
    OS LANG : LANG=ja_JP.UTF-8
    IDE : STS(Spring Tool Suite)
    Boot Platform : WTP for Weblogic12.1.2.0
    Framework : Spring MVC(3.2.4)
    I want to know how to solve this behavior.
    なにかご存知の方いましたら、解決方法をご教授頂ければと思います。
    Message was edited by: user11123661 modified main language.(japanese -> english).

    The basic problem is not obscure, it has come up countless times since Tiger was released. See this note and try Fix C (dingbat) to see if it will help:
    http://homepage.mac.com/thgewecke/woutlook.html

  • ORA-00907: missing right parenthesis when using group by clause with xmlagg

    I have the following query and I am getting ORA 00907 Error when I am using group by clause with the xmlagg function.
    select xmlelement("Mitigation",
                    xmlelement("m_szMethodName",tm.DisplayName),
                    xmlelement("SubstanceInterferenceProtocolList",
                                (select xmlagg(xmlelement("MitigationProtocol",
                                        xmlelement("m_szMethodName",tm.DisplayName),
                                        xmlelement("m_szInterferenceProtocolName",tmp.protocol_name),
                                        xmlelement("m_szInterferenceSubstance",tmp.intf_mtrl_prod_code),
                                        xmlelement("m_ProtocolParameters",
                                            xmlelement("m_szProtocolName",tmp.protocol_name),
                                                xmlelement("m_Consumables",
                                                    xmlelement("Consumable",
                                                        xmlelement("m_szConsumId", xrl.rgnt_pack_name),
                                                        xmlelement("m_szProductCode",xrl.pack_prod_code),
                                                        xmlelement("m_nVolume",tmp.fluid_vol),
                                                        xmlelement("m_szProtocolStep",xps.protocol_step_name))),
                                                    xmlelement("m_ProtParamList",
                                                        xmlagg(
                                                        xmlelement("ParameterValues",
                                                            xmlelement("m_szProtocolName",tmp.protocol_name),
                                                            xmlelement("m_Time",xpsd.parameter_ntime_value))
                                                        group by tmp.ccd_test_id,tmp.intf_mtrl_prod_code)
                    order by tmp.ccd_test_id, tmp.intf_mtrl_prod_code, xps.protocol_step_intprotocolstep )
                    from XPR_tdef_mitigation_protocol tmp, xp_reagentlist xrl,
                    xpr_protocol_settings xps, xpr_protocol_settings_default xpsd
                    where tmp.ccd_test_id = tm.ccd_test_id
                    and tmp.ccd_test_id = xrl.ccd_test_id
                    and tmp.pack_prod_code = xrl.pack_prod_code
                    and tmp.intf_type = 1
                    and xps.protocol_name = xpsd.protocol_name
                    and xps.protocol_step_name = xpsd.protocol_step_name
                    and xps.ps_action_parameterlist = xpsd.ps_action_parameterlist
                    and xps.protocol_name =  tmp.PROTOCOL_NAME
    from XPtoXPRTdef_defn_mapping tm
    where tm.DisplayName = 'SYPH'If I remove the xmlagg clause along with the group by clause, the query runs fine and give me the output.
    But in that XML format of the output is incorrect for my application.
    Could someone help here?

    Hi,
    userAtoZ wrote:
    I have the following query and I am getting ORA 00907 Error when I am using group by clause with the xmlagg function.
    ... xmlagg(
    xmlelement("ParameterValues",
    xmlelement("m_szProtocolName",tmp.protocol_name),
    xmlelement("m_Time",xpsd.parameter_ntime_value))
    group by tmp.ccd_test_id,tmp.intf_mtrl_prod_code)Please don't post unformatted code. When posting any formatted text on this site, type these 6 characters:
    \(small letters only, inside curly brackets) before and after each section of formatted text, to preserve spacing.
    If the code above were formatted well, so that you could match each '(' with its closing ')', it would look something like this:... xmlagg ( xmlelement ( "ParameterValues"
                        , xmlelement ( "m_szProtocolName"
                                       , tmp.protocol_name
                        , xmlelement ( "m_Time"
                                       , xpsd.parameter_ntime_value
    group by tmp.ccd_test_id
                        ,     tmp.intf_mtrl_prod_code
    This is exactly what you posted, only the whitespace has been changed.
    This makes it clear that the GROUP BY is inside the parentheses with the argument to XMLAGG.  You can have an ORDER BY clause there, but not a GROUP BY clause.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Bad performance when using  complex database view with Toplink

    Hi
    Problem description
    1. I have a complex query that collects the data from many DB tables. For this reason I create a database view based on this select. Using EJB 3.0 with Toplink I
    mapped this view to a java object the same way I map database tables. The method I use to get the results is:
    snippet code...
    public List<VwKartela> VwKartela(Integer pperid) {
    List<VwKartela> results = null;
    Session session = getSessionFactory().acquireSession();
    ExpressionBuilder bankfile = new ExpressionBuilder();
    Expression exp1 = bankfile.get("perid").equal(pperid);
    ReadAllQuery query = new ReadAllQuery();
    query.setReferenceClass(VwKartela.class);
    query.setSelectionCriteria(exp1);
    results =(List<VwKartela>)session.executeQuery(query);
    When running the select on the view prom SQL Plus I haven’t any performance problem.
    2.Question: How can I improve the performance? I referenced to Toplink docs but I didn't improve the it.
    Have anyone any experience is such cases?
    Thank you
    Thanos

    Hi
    After my last tests I conclude at the followings:
    The query returns 1-30 records
    Test 1: Using Form Builder
    -     Execution time 7-8 seconds
    Test 2: Using Jdeveloper/Toplink/EJB 3.0/ADF and Oracle AS 10.1.3.0
    -     Execution time 25-27 seconds
    Test 3: Using JDBC/ADF and Oracle AS 10.1.3.0
    - Execution time 17-18 seconds
    When I use:
    session.setLogLevel(SessionLog.FINE) and
    session.setProfiler(new PerformanceProfiler())
    I don’t see any improvement in the execution time of the query.
    Thank you
    Thanos

  • Oracle 9i Problem when using multicolumn bulk update with "save exceptions"

    I'm running into a problem with Oracle 9i when running a multicolumn update with "save exceptions". The problem occurs when updating 4 or more fileds. (The data being updated are 40 character text strings)
    I'm updating 1000 records at a time, in bulk.
    The problem goes away when I don't use "save exception" (i.e. catch the exception the normal "pre-Oracle 9i" way) or when I use "save exception" with 3 or fewer fields.
    (I don't get any exceptions when running without the "save exception")
    Thanks

    The problem is an ORA-14403 error detected during bulk updates only when "save exception" is used with more than 3 fields being updated.
    Remove the "save exception" I can update any number of fields.
    or
    Reduce the number of fields being updated to 3 or less and use save exceptions and the 14403 error goes away.
    (I'd like to use "save exception" without having to break the "update" into two separate 3 field updates.)
    Thanks,
    Len

Maybe you are looking for

  • XCode 5 for Mac OS X 10.7.5

    Hi, I want to develope Apps for IOS 7, so I need Xcode 5. I have a Mac Pro with Mac OS X Lion 10.7.5 installed. For Xcode 5 I need Mountain Lion. So I tried to install Mountain Lion from the App Store. However the App Store tell me, that Mountain Lio

  • Error accessing web application in OC4J-reg.

    Hi All, We deployed a web application into oc4j 903. We got the ERROR 1 when trying to access the application. Then we replaced the jaxb-rt-1.0-ea.jar & jaxp.jar in oc4j with the latest version from jwsdk1.1. Then we got the ERROR 2. This error is th

  • Deploying a New Forms .ear File in Oracle Applications Release 12-FATAL ERR

    Hello everyone, I am applying a scurity patch 7605070 to our R12 applications. As part of the post-install step, I need to follow Metalink Note 397174.1 to deploy a new forms .ear file. However, I am getting following FATAL ERROR: :->$FND_TOP/bin/txk

  • How do I downgrade Firefox to 4.0

    I have to use an application for work which requires a downgrade to Firefox 4.0 - where do I find that?

  • APPEND (direct path) - redo size

    I am sure, I might be missing something obvious. I am under the impression that DIRECT PATH loads (such as inserts with APPEND hint )would generate less redo. But, not sure why I am seeing this... Regular Insert (Not direct path): ===================