Print in text mode to detect escape sequences

Hello,
We have got an issu, on our .NET print program using Crystal 12 SP3. The issue has concequences on :
- Barcode print on matrix printer
- Barcode print on thermal printer
- Other commands send to a FAX printer driver
Using the SDK, the print driver receives print data in graphical print mode, but it has to be text mode for the printer driver to detect the correct escape sequences. The escapes sequences are used by the driver to switch the font or receive a command.
Is there a way to force the print in text mode ?
The same report printed from Crystal Reports 2008 SP 3 "works", but not from the .NET sdk.
Here is a little example. We made a simple Report, containing 2 simple Text Objects :
Code Barres $ [ /
+$$;111;6;1;1;0;2 z +
$$?0h0123456789$$?0/
We redirected the print driver spool in a file. Here are the outputs :
Printed from Crystal Report 2008 :
[0;4 r+<[3;031w[3;032w[7s2CH
x[1;2xF5-
JÃ$Code Barres $ [ /
J-$$$;111;6;1;1;0;2 z
J$$$?0h0123456789$$?0/@[0;4 r
Printed from .Net application using Crystal Report 2008 SDK :
[0;4 r+<[3;031w[3;032w[7s2CH
x
JÅ$*'úø u20AC u20AC u20AC u20AC u20AC<|u201Au20ACu20ACu20ACu20ACu20ACu20ACu201A||u201Au20ACu20ACu20ACu20ACu20ACA@u201Aÿu20ACu20ACu20AC|u2019u20ACu20ACu20ACu20ACu20ACu20ACu2018r u20AC u20AC?ÿu20AC @u20AC @u20AC @u20AC @u20AC @u20AC @u20AC u20AC!u20AC u20AC u20AC u20AC u20AC!"ÿu20ACu20ACu20ACu20ACu20ACu20ACÿu20ACu20ACu20ACu20ACu20ACu20ACu20ACu20ACu20ACu20ACÿu20ACu20ACu20ACu20ACu20ACu20ACu20AC|u2019u20ACu20ACu20ACu20ACu20ACu20ACu2018ru20ACÁ! u20AC u20AC u20AC u20AC u20ACŽu201A u201A u0192ààu201A BBD8ÿð@@@`u20AC`u20AC0À
J-*'7u201A u201A u0192ààu201A BBD8u201A u201A u0192ààu201A BBD8`àu2021u20ACu2021u201Eu20ACu20AC u20AC u20AC u20ACÿu20ACu20ACu20ACu20ACu20ACu20AC u20AC u20AC u20ACÿu20ACu20ACu20ACu20ACu20ACu20AC u20AC u20AC u20ACÿu20ACu20ACu20ACu20ACu20AC`àu2021u20ACu2021u201Eu20ACø>A u20ACu20AC!u20ACAu20ACAu20ACA@Ã@<`àu2021u20ACu2021u201Eu20ACu20AC u20AC u20AC u20ACÿu20ACu20ACu20ACu20ACu20AC`àu2021u20ACu2021u201Eu20ACu20AC u20AC u20AC u20ACÿu20ACu20ACu20ACu20ACu20AC`àu2021u20ACu2021u201Eu20ACü @u20AC@u20AC@u20AC ø`àu2021u20ACu2021u201Eu20ACu20ACu20AC u20AC@u20AC@u20AC@ u20AC@@u20AC@u20ACu20AC!u20ACu20ACu20ACu20ACu20ACu20ACu20AC u20AC@u20ACu20ACu20ACu20ACu20AC
J*'Tu201A u201A u0192ààu201A BBD8u201A u201A u0192ààu201A BBD8  u20AC 1u20AC Au20AC Au20ACu20ACü @u20AC@u20AC@u20AC ø@u20AC@u20ACÿu20ACu20ACu20ACu20ACu20ACu20ACÿu20ACu20ACu20ACü @u20AC@u20AC@u20AC øu20AC u20AC u20AC u20ACÿu20ACu20ACu20ACu20ACu20ACu20ACu20AC u20AC@u20AC@u20AC@ u20AC@@u20AC@u20ACu20AC!u20ACu20AC u20AC@u20AC@u20ACu20AC@u20ACu20AC@u20ACu20AC!A#xu02C6<u20AC@u20AC@u20ACÿu20ACu20ACu20AC@Au20ACAu20ACAu20ACAu20ACAu0192|ø>A u20ACu20AC!u20ACAu20ACAu20ACA@Ã@<p@@@@@u20AC@8AÀNp>!A@u20ACu20AC@u20ACu20AC@u20ACu20AC@u20ACu20AC@u20ACu20AC!A>u20ACu20AC @u20AC@ u20AC@ u20AC@ u20AC@! Bu0152ðu201A u201A u0192ààu201A BBD8u201A u201A u0192ààu201A BBD8  u20AC 1u20AC Au20AC Au20ACu20ACü @u20AC@u20AC@u20AC ø`u20AC`u20AC0À@[0;4 r
As you can see above, the characters contained in the report are sent "as this" in the print driver from Crystal Reports 2008. But the pixels represention of the characters are sent from the .Net SDK.

Hello,
thank you for your answer.
I forgot to add the 2008 com+ API output, that is exactly the same as Crystal Report 2008.
- From Crystal Reports 2008 : WORKS
- From a program using the 2008 com+ Runtime API : WORKS
- From a program using the 2008 .Net Runtime API : DON'T WORK
You wrote that all the runtime print engine sends to the printer is essentially a picture. But It do send text using the com+ API.
Should I understand : The .Net runtime print engine can't send text ?

Similar Messages

  • Printing only text within Forte app

    Hi,
    I have a simple (but insuperable for me) problem.
    How is it possible to print in text mode from a Forte application (3.0.M)?
    I need use the text only printers driver in Win OS, but reading the help of
    PrintDocument class, it seems only possible to print in graphic mode.
    Someone can help me?
    Thanks
    Alberto Zanoli

    Alberto,
    I may have misunderstood your note, but ...
    If you're interested in printing an arbitrary TextData object (rather than
    a window), try the attached method. I seem to recall that it was actually
    tested at one point under Windows NT with a Generic/TextOnly printer, but
    we're not at this point set up to repeat the test.
    For whatever it's worth, though, here it is.
    Tom Wyant
    E. I. DuPont de Nemours and Company.
    (See attached file: PrintText.txt)

  • Sending escape sequences to control command line printing

    Hello Java Community,
    I am interested in printing PDF files programatically by using a thread that used the runtime environment and the sending a command to print the file.
    I hava managed to print files directly to the printer using "cmd /c acrord32.exe /h /p filename.pdf" thanks to iText FAQ.
    The problem is that when I try sending the job to an Epson LX 300 printer, the job prints in letter quality while my intention is to print in draft mode.
    I imagine that this problem could be resolved by passing escape sequences to set draft mode printing programatically so as to speed up my printing.
    Anyone who can help me on how to achieve this.
    Will appreciate your help.
    Charles

    Reply 1 of http://forum.java.sun.com/thread.jspa?threadID=5226995&messageID=9958472

  • Printing bold text in char mode report

    Hi all,
    I have developed a character mode report. I am able to print some text in big letters and some in condensed. But I am not able to print some text in bold. What printer cde should be used for printing in bold. Please help.
    Thanks in advance
    Murthy

    Tanikella,
    The escape codes might be different for different printers. You might need to check with the printer documentation and use that appropriately in the deflt.prt file of reports or the .prt file you use in desformat
    Please refer to character mode printing chapter of
    http://otn.oracle.com/docs/products/reports/files/pbr_uxprt.pdf
    Thanks
    The Oracle Reports Team

  • Leopard Terminal.app no longer supports ANSI print escape sequences?!!

    I print my email using pine's "attached-to-ansi" option, which used to work great in Tiger with Terminal.app. It no longer works in Leopard. It also breaks things like the "ansiprt" Unix command.
    This is a start/stop escape sequence that diverts text between the start/stop sequences to the printer. See http://www.termsys.demon.co.uk/vtansi.htm as a reference.
    Is there some Terminal.app setting I need to use to enable this? Some specific terminal type perhaps?
    Suggesting that I use enscript or other techniques don't work, as I use the Terminal to ssh into my mail server, then run pine on the mail server.
    Anyway, any idea how to get this very desirable feature back?
    Thanks,
    -John

    HI,
    I tried to set "Escape non-ASCII input" without any change. I didn't see an option to change "Escape non-ASCII output". I tried a few other things without success either using a different terminal type and so forth. I looked in the .term file and didn't see anything text related to ANSI or ASCII or escape.
    If I change a Terminal preference do I need to quit and restart Terminal to test the change, or does the change take place as soon as I change it in the menu? I tried quitting and restarting after checking "Escape non-ASCII input" and when I restart the box was unchecked. I couldn't find a "save preferences option either.
    In Tiger, my terminal type was xterm-color- same in Leopard. I had checked off "Escape non-ASCII characters" under Tiger.
    Here's exactly what I do, *which used to work in Leopard*.
    I run Terminal.app on my MacBook, and ssh to a mail server. On the mail server, I run the pine command to read my mail. Pine has an option to print email using ASCII escape sequences. Terminal.app sees these escape sequences and diverts the text to the default printer on my MacBook.
    Under Leopard, the Terminal doesn't catch the ANSI escape code, and just spews the text to the terminal window. Nothing has changed on the mail server side. I;m using the sane ssh command.
    Enscript won't work, as the printer connected to the mail server is often as not in a different state than my MacBook.
    Not all terminal emulators support the ANSI print escape sequences. Terminal didn't before Tiger, if I remember correctly. I used to use a very nice terminal emulator called Data Comet which did it.
    ANSI printing used to be a fairly common way to print to a local printer connected to via a parallel cable. Besides pine, the Unix command ansiprt http://kb.iu.edu/data/abye.html could be used to print remote files on the local printer. Some terminal emulator programs used the idea to hook the ANSI escape sequence to the printing system, extending the functionality to use any printer accessible by the local system.
    Thanks again for all your help. I hope I've clarified what I'm trying to do.
    -John

  • Character mode report w/ esc sequences sent to printer using 10g reports.

    I am currently using 6i to generate character based reports that have escape sequences. Using 6i reports I am able to send the reports to a printer, this controls fonts, page breaks, formatting and loading of an embedded forms on the printer. Is anyone doing something like this. PS. I must be able to print on a printer that is on the client machine, I cannot see the server printers.
    Message was edited by:
    user522424
    Message was edited by:
    user522424

    HI, I My self writing , who created this question, as I got sucess in changing the font size.
    my dflt.prt in printer folder has the following,
    printer "dflt"
    height 46
    width 130
    after page control(L)
    return control(M)
    linefeed control(J)
    code "1" esc "G"
    code "2" esc "H"
    code "3" esc "4"
    code "4" esc "5"
    code "5" esc "W1"
    code "6" esc "W0"
    code "7" esc "C"
    code "8" control(O)
    code "9" control(R)
    I am able to increase the font size using code &5 and & 6 for the fileds or lables in report.
    But how to reduce the font size ???
    which code should I use in printer file. Our dot matrix printer is of type EPSON.

  • Command.text with ODBC escape sequence is not working in VC++, Bug in OLEDB ?

    Command.text with ODBC escape sequence is not working in VC++. The Code, which written in VB is working perfectly. Is there any different syntax in VC++ or bug in
    OLE DB provider ?. I am using OraOLEDB 8.1.7 version.
    Thanks
    Mani
    VB Code
    ' Enable PLSQLRSet property
    Cmd.Properties("PLSQLRSet") = True
    ' Stored Procedures returning resultsets must be called using the
    ' ODBC escape sequence for calling stored procedures.
    Cmd.CommandText = "{CALL corpuser.GetCorpUserRec(?, ?)}"
    Set Rst1 = Cmd.Execute
    VC++ Code (while execute it is giving error )
    pCommand->CommandText = "{CALL corpuser.GetCorpUserRec(?, ?)}";
    pRs1 = pCommand->Execute(NULL,NULL,adCmdStoredProc);

    Hi
    The odbc escape sequence for calling stored procedures works fine with VC++ also.
    You can check the sampe application at following url :
    http://otn.oracle.com/sample_code/tech/windows/ole_db/content.html
    Hope this helps
    Chandar

  • Signature Printing using escape sequence

    Hi Friends
    I am trying to print the signatures in cheque using printer escape sequence, But in output no output was printed.
    Customer provided the hexadecimal value for escape sequence, I checked the value in SPAD transaction also, both are same.
    But I am not able to identify the problem.where exactly-please give your valuable inputs on this.
    Thanks
    Gowrishankar

    Gowrishankar, you just closed 3 of your threads without giving any feedback (read forum rules if you didn't).
    Forum is not a self service: for each question you ask, you MUST give feedback to help others who might have the same question.
    Could you please give one in each of these 3 threads?
    Thx a lot
    sandra

  • Text Mode Printing

    I want to print reports in text mode on Dot Matrix Printers How Can I do that Using reports.

    See this similar link about using the "mode=character" parameter:
    To Show Bold Character in the browser in character mode

  • Printing in character mode (urgent)

    Hi,
    We would like to print the contents of the report in bold,italic and compressed format wich i have made in character mode (mode=character).
    i work with:
    Reports Builder 6i,
    Win 2000,
    a generic/text only printer(matrix printer: EPSON LQ-580).
    i have tied to call the bold.prt in DESFORMAT, and i have entred bold on and bold off in the section of "code after" and "code before", but no changes occurs when i print the report
    Thanking You in advance.

    Hi,
    First create your .prt file. In this file, you must define the printer escape sequence for making an object print in bold format, for example. Most of the supplied .prt files incorporate this code. An example of a HP printer setting is:
    code "1"          esc"(s7B"
    code "2"          esc"(s0B"
    Check your printer settings and/or consult your printer manual for more information on other effects, such as italic.
    Next build your character mode report.
    The report must now be set to the .prt file. Set the DESFORMAT system parameter for your report to test.prt (no need for .prt extension). This can also be set as a runtime parameter.
    Next, go to the object in the report that you want to print in bold; such as, boilerplate text. Click on the properties for the boilerplate text, and go to the 'Printer Codes' tab. References to the escape codes shown above must be entered here in the Before and After fields. You are interested in the BOLD On and Off printer escape sequences so we would put &1 in the before and &2 in the after field.
    Save and run the report directing the output to a valid printer. The printed version of the character mode report should incorporate your changes.
    NOTE: You do not have to use &1, and so forth, Long postings are being truncated to ~1 kB at this time.

  • Printing in character mode with MSWIN1250 cp

    Hi,
    A co-worker of mine has a very annoying problem with a report.
    The mission is creating a report which could be run on a matrix printer
    (e.g. epson 1170 , DFX-5000 or similar like these) and it must work well
    with MSWIN1250 codepage. The main reason we have to do it is that our client uses
    a secret salary envelope which contains two pages with carbon paper and we have to
    write the salary list on it (I bespoke it's an HR application). This kind of paper needs
    some physical pressure to be readable all of two pages. He tried several method or workaround
    to solve it, unsuccessfuly. The internal convert function unusable for this, if he convert the
    chars before printing the report will be unreadable in the preview but in print seems ok.
    Oracle support suggested to set the printer to the appropriate codepage but I we have not
    found it (The printer has only PC852 pre-set codepage and the database based on MSWIN1250.).
    In graphical mode printing on the matrix printer is correct but very slow.
    The character mode is fast enough but unusable in this way.
    Any idea or suggestion would be appreciated..
    ps: please drop a private mail too..: [email protected]
    thanks and bye.,Sanya

    Hi,
    First create your .prt file. In this file, you must define the printer escape sequence for making an object print in bold format, for example. Most of the supplied .prt files incorporate this code. An example of a HP printer setting is:
    code "1"          esc"(s7B"
    code "2"          esc"(s0B"
    Check your printer settings and/or consult your printer manual for more information on other effects, such as italic.
    Next build your character mode report.
    The report must now be set to the .prt file. Set the DESFORMAT system parameter for your report to test.prt (no need for .prt extension). This can also be set as a runtime parameter.
    Next, go to the object in the report that you want to print in bold; such as, boilerplate text. Click on the properties for the boilerplate text, and go to the 'Printer Codes' tab. References to the escape codes shown above must be entered here in the Before and After fields. You are interested in the BOLD On and Off printer escape sequences so we would put &1 in the before and &2 in the after field.
    Save and run the report directing the output to a valid printer. The printed version of the character mode report should incorporate your changes.
    NOTE: You do not have to use &1, and so forth, Long postings are being truncated to ~1 kB at this time.

  • Bold Printing in Character Mode

    Hi,
    We would like to print the contents of the report in bold format. We tried to change the bold.prt
    file accordingly but it is not working as expected. Is there any parameter in the report that has
    to be set and is there any example that you can give us for using escape sequence. We are using
    Generic/Text printer for printing the report output in character mode.
    Thanking You in advance.
    Chirag Desai.

    Hi,
    First create your .prt file. In this file, you must define the printer escape sequence for making an object print in bold format, for example. Most of the supplied .prt files incorporate this code. An example of a HP printer setting is:
    code "1"          esc"(s7B"
    code "2"          esc"(s0B"
    Check your printer settings and/or consult your printer manual for more information on other effects, such as italic.
    Next build your character mode report.
    The report must now be set to the .prt file. Set the DESFORMAT system parameter for your report to test.prt (no need for .prt extension). This can also be set as a runtime parameter.
    Next, go to the object in the report that you want to print in bold; such as, boilerplate text. Click on the properties for the boilerplate text, and go to the 'Printer Codes' tab. References to the escape codes shown above must be entered here in the Before and After fields. You are interested in the BOLD On and Off printer escape sequences so we would put &1 in the before and &2 in the after field.
    Save and run the report directing the output to a valid printer. The printed version of the character mode report should incorporate your changes.
    NOTE: You do not have to use &1, and so forth, Long postings are being truncated to ~1 kB at this time.

  • Escape Sequences for HP Color LaserJet 3600n

    I want to be able to print a file to my 3600n printer with certain text printed in color. I print from a Fedora14 box. For output to the screen, I can use the well-known VT100 terminal escape sequences to achieve colored display, in, say, red. I want to achieve the same effect with printed files.
    Does the 3600n respond to escape sequences? If so, where can I find a list of these escape sequences?
    TIA,
      Jon

    This seems to be a commercial product. For the best chance at finding a solution I would suggest posting in the forum for HP Business Support!
    You can find the Commercial Laserjet board here:
    http://h30499.www3.hp.com/t5/Printers-LaserJet/bd-p/bsc-413
    Best of Luck!
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • Escape Sequencing

    Hi All,
    Can some one help me with creating a escape sequence for printing? My client wants output for 2D barcodefor 500 characters whereas currently the system can give only for 255 characters, therefore on referring the SAP note 497380 it gives the said solution:  "If you want to output bar codes with more than 255 characters, you must generate the bar code using an escape sequence (print control using special
    nodes in the Smart Form). With this measure, you can output several fields in a text directly one after the other."
    The smartform part will be taken care by the ABAP, I would have to fix the escape sequence, therefore guidance required for the same
    Thanks

    Hi,
    Check out.
    [http://help.sap.com/saphelp_nw70/helpdata/en/d9/4a94fc51ea11d189570000e829fbbd/content.htm]
    [http://www.e-bizco.com/download/manual.pdf]
    Thanks,
    Manoj

  • How to print long text in ALV

    i want to print a description in text  mode which is 5-6 lines some times it have a blank line also so
    how to print in ALV .i m using READ_TEXT function but sumtime it not works when text exceed 4-5 lines
    what i sud do.

    hi,
    there is another way u can use yours internal table field like long text field. that is.
    parameters: salno type vbak-vbeln.
    data: begin of itab occurs 0,
      vbeln type vbak-vbeln,
      matnr type vbap-matnr,
      longtext type thead occurs 0,
      end of itab.
      data: itabstxl type standard table of stxl with header line.
      select single vbakvbeln vbapmatnr into (itab-vbeln, itab-matnr)
                                     from vbak inner join vbap
                                       on vbakvbeln = vbapvbeln
                                        where vbak~vbeln = salno.
        select single tdobject tdname tdid tdspras from stxl
                                                     into (itabstxl-tdobject,itabstxl-tdname,itabstxl-tdid,itabstxl-tdspras)
                                                           where relid = 'TX'
                                                            and  tdobject = 'VBBK'
                                                            and tdname = salno    "YOUR OWN TDNAME e,g
                                                            and tdid = 'Z003'
                                                            and tdspras = 'EN'.
    call function 'READ_TEXT'
      exporting
      CLIENT                        = SY-MANDT
        id                            = itabstxl-tdid
        language                      = itabstxl-tdspras
        name                          = itabstxl-tdname
        object                        = itabstxl-tdobject
      ARCHIVE_HANDLE                = 0
      LOCAL_CAT                     = ' '
    IMPORTING
      HEADER                        =
      tables
        lines                         = itab-longtext
    EXCEPTIONS
      ID                            = 1
      LANGUAGE                      = 2
      NAME                          = 3
      NOT_FOUND                     = 4
      OBJECT                        = 5
      REFERENCE_CHECK               = 6
      WRONG_ACCESS_TO_ARCHIVE       = 7
      OTHERS                        = 8
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    break abaper.
    I HOPE THIS WILL SOLVE THIS WILL SOLVE THE PROBLEM OF THE OTHERS AS WELL.

Maybe you are looking for

  • Error message unable to load a GUI

    HELLO THERE.  I AM TRYING TO READ A MANUAL BUT I MOST HAVE ADOBE READER WHEN INSTALLING I GET A MESSAGE UNABLE TO LOAD A GUI THEREFORE I HAVE NOT BEEN ABLE TO COMPLETE THE INSTALLATION PROCESS OF ADOBE NOR READ THE MANUALS THAT I NEED.  CAN ANYONE TE

  • Tax line items when travel expenses are posted to intercompany

    Hello Experts, We are posting a expense report  to a different cost center other than the Master cost center(IT0001). In this case system understanding as intercompany transaction and posting the travel expenses to different cost center and different

  • Form Distribution Issues

    I have two related issues regarding the distribution function in Arobat 9.0. We have an order form with a "submit by email" button on it. Myself and a co-worker, Leon, are responsible for completing that form for each order. I created the form in Liv

  • Itunes problem updating to ios 5

    My Itunes stays on ''control repair iphone at apple'' when I unwrapped the ios5 software. An ''preparing for replacing the software on the iphone'' My firewall is already turned off. Anyone got a clue what I can do?

  • Trying to register for Virtual Developer Day

    Hello I'm trying to register for Virtual Developer Day in the European time zone but I'cant figure out how to change the timezone.... Clicking on "view your local time" has no effect and clicking on "register online" gives a time out error. I've trie