FX-2190 PRINT CHARACTER MODE ESC / P USING PRT

Dicas e truques sobre Oracle Reports Builder - modo gráfico ou modo caractere, ascii, arquivo .PRT, etc
Post Reply
bertosro
Rank: Analista Júnior
Rank: Analista Júnior
Posts: 88
Joined: Fri, 18 Aug 2006 11:13 am
Location: São Paulo - SP
Bertosro
MSN / TALK - roberto.fernandes@gmail.com

Hello everyone, good afternoon!
I'm doing a Reports for invoice printing in character mode in the EPSON FX-2190 printer.
I already made the PRT file that is as follows:

Select all

 
printer "eps2wide" 
 
height    66 
width     279 
 
after     page control(J) 
 
return    control(M) 
linefeed  control(J) 
 
code "64"        esc 64 
code "77"        esc 77 
code "80"        esc 80 
code "12"        esc 12 
code "15"        esc 15 
code "18"        esc 18 
code "450"       esc 45 0 
code "451"       esc 45 1 
code "96"        " " 
code "94"        "  " 
code "95"        "   " 
code "98"        "     " 
code "981"       "       " 
code "99"        "         " 
code "97"        "                          " 
code "870"       esc 87 0 
code "871"       esc 87 1 
code "1190"      esc 119 0 
code "1191"      esc 119 1 
To run the PrT file commands I use the "Printer Code Before" property or "Printer Code After "from the field, which I will print, however the same is not recognizing the codes for example one of them" Esc 15 "to condense.

The printer setting "Emulation" is with "ESC / P", I can not configure for "IBM PPDs" what would work.
In short, I can not change "ESC / P" to "IBM PPDs", in the electanto this way I can not pass the printing codes because the printer does not understand the code and prints a type ? character.

I await your help.
Berasto: -O
bertosro
Rank: Analista Júnior
Rank: Analista Júnior
Posts: 88
Joined: Fri, 18 Aug 2006 11:13 am
Location: São Paulo - SP
Bertosro
MSN / TALK - roberto.fernandes@gmail.com

Hello Galera | Good morning !!!!
I was able to operate the printer configuration must like this:
"Print directly to the printer" on the advanced tab of the printer properties.

Berasto: -O
User avatar
dr_gori
Moderador
Moderador
Posts: 5024
Joined: Mon, 03 May 2004 3:08 pm
Location: Portland, OR USA
Contact:
Thomas F. G

Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered

You are completely right!
Windows spool places strange characters in the middle.
Whenever we use character mode we have to disable spool.
Edna Bernardo
Rank: Estagiário Pleno
Rank: Estagiário Pleno
Posts: 6
Joined: Thu, 09 Jul 2009 11:20 am
Location: FORTALEZA

Good morning,

I would like to understand the printer command used in the PRT file of the Report. Because I need to create a file of this for printing labels in Epson LX 300 matrix printers.
can anyone help me?
RodrigoValentim
Moderador
Moderador
Posts: 367
Joined: Tue, 25 Mar 2008 3:41 pm
Location: Salvador - BA
Rodrigo Valentim
Analista de Sistemas
Oracle Developer

Campanha: Faça uma pesquisa antes de perguntar!!!

In LX 300 has a blessed manual that tells you all about the commands ... it's command to leave a: -The !!! I'vê been through it! rsrsrsrs

Follow pro manual pro.
http://www.suporte-epson.com.br/drivers/down.asp
I hope I have helped
Edna Bernardo
Rank: Estagiário Pleno
Rank: Estagiário Pleno
Posts: 6
Joined: Thu, 09 Jul 2009 11:20 am
Location: FORTALEZA

Hello Rico,

Thanks for the manual site, I will check.

What are the command below:

After Page Control (J)
Return Control (M)
LineFeed Control (J)

What does the letters J, M?

Grata for the attention,
Edna Bernardo
Rank: Estagiário Pleno
Rank: Estagiário Pleno
Posts: 6
Joined: Thu, 09 Jul 2009 11:20 am
Location: FORTALEZA

:( Sorry Rodrigo, I made a mistake.
RodrigoValentim
Moderador
Moderador
Posts: 367
Joined: Tue, 25 Mar 2008 3:41 pm
Location: Salvador - BA
Rodrigo Valentim
Analista de Sistemas
Oracle Developer

Campanha: Faça uma pesquisa antes de perguntar!!!

Relax!! : Shock:

Good, to be honest? It's been 4 years since I do not use more prt in my reports ... thank God! rsrsrs ... but in the manual you have informing everything !!
Edna Bernardo
Rank: Estagiário Pleno
Rank: Estagiário Pleno
Posts: 6
Joined: Thu, 09 Jul 2009 11:20 am
Location: FORTALEZA

: lol: Thank you !!!!
Edna Bernardo
Rank: Estagiário Pleno
Rank: Estagiário Pleno
Posts: 6
Joined: Thu, 09 Jul 2009 11:20 am
Location: FORTALEZA

Good morning Rodrigo,
returning to the subject of the PRT file, I made the configuration and set in the DESFORTAT parameter the PRT file, but when running the report does not run the command, and as if the report ignored the file defined in DESFORTAT. Is there anything else that has to be defined for the recognition of the report with this PRT file?
RodrigoValentim
Moderador
Moderador
Posts: 367
Joined: Tue, 25 Mar 2008 3:41 pm
Location: Salvador - BA
Rodrigo Valentim
Analista de Sistemas
Oracle Developer

Campanha: Faça uma pesquisa antes de perguntar!!!

Good morning, Edna.

Your PRTs are in the same folder that is configured reports_path in regedit ?

When you remove PRT, do you notice any difference between prints?

follows an example of a PRT for direct mail label.



For you to know if your impression is using or not the PRT, in your outermost frame repeat, include the code 123 ] In the Previous Printer Code property [/b] and 321 in the later printer code .

This option is for you to compress (reduce pixels spacing in print).

I hope I have helped ...
Edna Bernardo
Rank: Estagiário Pleno
Rank: Estagiário Pleno
Posts: 6
Joined: Thu, 09 Jul 2009 11:20 am
Location: FORTALEZA

: D Good morning Rodrigo,

Do not place the .prt file on the paths defined in the report_path, place my .prt file on the same path of the dftl.prt that Oracle uses with default in the reports ( C: \ orant \ Report60 \ Printers).
I'll take the test and put my .prt file on the defined report_path path.
Thanks for the support.
RodrigoValentim
Moderador
Moderador
Posts: 367
Joined: Tue, 25 Mar 2008 3:41 pm
Location: Salvador - BA
Rodrigo Valentim
Analista de Sistemas
Oracle Developer

Campanha: Faça uma pesquisa antes de perguntar!!!

It also makes the tests I passed. It helps a lot to know if this or not using PRT.
rcd_tech@hotmail.com
Rank: Programador Pleno
Rank: Programador Pleno
Posts: 42
Joined: Thu, 08 Sep 2011 1:13 pm
Location: SP

Guys, I see you're driving on the subject.
Can you help me?
I have a system that I just finished, bought a non-heat printer from EPSON model TM-4.
At a certain moment of the system he printed the order of service I did in Reports.
I'vê tried several forms, do with that run_product forms command send the report to the standard printer of the machine, but I can not.
I'm using 6i desktop.
If anyone can give me a light.

follows the code I'm trying to use:

Select all

 
 
DECLARE   
   
  PL_ID  PARAMLIST; 
 
BEGIN 
  PL_ID := GET_PARAMETER_LIST('TMPDATA'); 
  IF NOT ID_NULL(PL_ID) THEN 
     DESTROY_PARAMETER_LIST(PL_ID); 
  END IF; 
  PL_ID := CREATE_PARAMETER_LIST('TMPDATA'); 
	 
	Add_Parameter(PL_ID, 'DESTYPE', TEXT_PARAMETER, PRINTER); 
  Add_Parameter(PL_ID,'P_ID_OS',TEXT_PARAMETER,to_number(:TB_OS.ID_OS)); 
	Add_Parameter(PL_ID, 'DESNAME', TEXT_PARAMETER, 'HP Deskjet D1600 series');   
  --ADD_PARAMETER(PL_ID,'PARAMFORM',TEXT_PARAMETER,'NO'); 
  --ADD_PARAMETER(PL_ID,'ORACLE_SHUTDOWN',TEXT_PARAMETER,'YES'); 
  RUN_PRODUCT(REPORTS,'C:\Documents and Settings\Ricardo MMO\Desktop\SistemaDryDream\Fonte\rel_ordem_servico.rdf', synchronous, runtime, filesystem,PL_ID,NULL); 
END; 
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 12 guests