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.
Similar Messages
-
Character mode Report in Landscape Format
Hi All,
I want to print my character mode report in landscape format. But I am not getting it. Everytime I get print as Portrait. I am printing from live previewer of report builder.
I am using Oracle 9i and Report builder 6i (6.0.8.11.3).
I have done following settings:
System Parameter ORIENTATION=Landscape
DESFORMAT=DECLAND.PRT (Given by Oracle)
In the object navigator I have set following properties for Main Section
Width=11
Height=8.5
Orientation=Landscape
Char Mode Width=132
Char Mode height=66
I have done same settings for Header Section and Trailer Section. Please help me.
Thanks in advance.
Regards
MonaYou will need to edit prt files to add the printer escape sequences to change the page orientation to landscape. Printer escape sequences can be obtained from the printer manual, or the printer vendor.
For instance, HP printer escape codes can be obtained from the HP website under the printer support links.
The steps below describe how to print a landscape, character mode report from a Windows NT PC on an HP 4100N Printer. The 4100N is a dual mode printer that can use either PCL or Postscript printer language.
1. Use a web browser to navigate to the HP website and obtain the printer escape codes for the HP 4100N. If you are unable to locate the HP4100N printer, look for generic PCL information. The HP site also includes detailed information on the printer command syntax.
2. The HP4100N printer command for landscape page orientation is "ESC&l1O" - where ESC indicates escape, '&' (ampersand) is the parameterized character, 'l'(lower case letter l) is the group character, '1' (number one) is the printer value character and 'O' (upper case letter O) is the termination character.
NOTE: The HP documentation uses "EC" to signify the escape character.
It also suggests pressing CTRL and the letter P together, then
releasing both keys and pressing the ESC key. If this is done in
a dos editor, a left arrow will actually be displayed on screen.
This character cannot be interpreted by Oracle Reports and will
cause printing errors if used in a .prt file. Instead, just use
the letters "ESC" to indicate that the code that follows is a printer
escape sequence.
3. Make a copy of the wide.prt file and rename it to "mywide.prt."
4. Add the page orientation escapes to mywide.prt file:
printer "mywide"
height 66
width 132
before report esc "&l1O" *** Puts Page in Landscape Orientation***
after page control(L)
after report esc "&l0O" *** Resets page orientation to Portrait ***
return control(M)
linefeed control(J)
SYNTAX NOTES: The escape sequence must be enclosed in double quotes ("). The above comments regarding page orientation are used to clarify where the escape codes gets added, but they should NOT be used when editing
the actual .prt file.
5. Save mywide.prt file to the $ORACLE_HOME\report60\printers\ directory.
6. Go to Windows PC -> Start -> Settings -> Printers and open the properties for the HP printer. Ensure that the option to "Always Spool Raw Data" is checked. This option is usually under the General Printer
Options, or Spool Options. On Windows NT, you must have Administrator privileges to change this setting.
7. Test running the report to the printer and specify desformat mywide. It is not necessary to include the file extension (.prt).
8. The report will now print in landscape orientation. -
Reports 6i - character mode report - to reduce font size of field
HI, friends,
I am using Developer 6i with windows xp platform.
In reports how to change the font size of a perticular field in the layout.
In character mode report it is not possible to change the font size directly.
I tried using the properties Printer code before ,printer code after i.e for e.g by giving the values
printer code before - &1, printer code after - &1. But on printing the report on paper there is no change
in font size.
what to do? should i change any thing in printer files like .PRT files?? if so how?
or Any altenate method??
plz suggest.
with thanks
GMSHI, 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. -
READ-ONLY CHARACTER MODE REPORT OUTPUT
Hi,
I am using Developer Suite 10g Report Builder to create a character mode report. I use commands as below to open the report output;
PROCEDURE Run_Report (vReportname varchar2) IS
LINEBUF VARCHAR2(2000);
BEGIN
linebuf := NULL;
linebuf :='C:\DevSuiteHome_1\bin\rwrun ';
linebuf :=linebuf||vReportname;
linebuf :=linebuf||'destype=file desname=c:\windows\temp\L610.prn ';
linebuf :=linebuf||'&& "C:\Program Files\TextPad 5\TextPad.exe" C:\windows\temp\L610.prn';
host('cmd /c '||linebuf);
END;
The reason why I am using third party software is because customer wanted to view the report output first before proceed with printing and I had tried with all option PDF, HTML, Notepad, Wordpad, Ms Word Viewer 2003, they all got problem wether fail to preview the output nicely or printer cannot recognize the generic output. As for now Textpad is the best in both to preview nicely and printer with generic driver can print the output nicely.
But there is another problem. Anybody can edit the output preview onTextpad and customer do not want that to happend (security for accounting data).
So, can anyone suggest me how to create the ouput in READ-ONLY mode? But please do not advise me to print directly to the printer because on 9i PREVIEWER function works well while on 10g this function has been obselate so I need to find the replacement of PREVIEWER function to running on web.
Thanks.
Regards,
FaisalWhat about trying to view the text in the browser (IE/Mozilla)? That is what we do about reports produced by reports server: they are written in files on the reports server machine and opened with the browser, or they are sent directly to the printer.
Otherwise, i simply see no way to prevent a text editor from editing the file on screen. If, let's say you make the file read-omly, that won't do, for the user may change the data on screen and print what's on screen without saving the file... -
Character mode reports-another question
hi again!
i tested to create a new character mode report with a simple query, i sent the report output to a text file, because i want to import it into excel, but the content of the text file is very strang, i always thought this happend because i didn't create the reports in character mode, but now the same things happens
output looks like this:
!R!SEM6;EXIT;%-12345X@PJL
@PJL SET ECONOMODE=OFF
@PJL SET PAGEPROTECT=OFF
@PJL SET RESOLUTION=600
@PJL ENTER LANGUAGE = PCL
E*t600R&u600D*r0F!R!sir2;exit;&
any idea?Hi!
The contents of the file you got look like the PostScript. Check the MODE system parameter - it must be set to "Character".
Alex. -
How to send a character mode report from Oracle Form 10g to a printer.
how sending a character mode report from Oracle 10g report to a printer.
I'm sending to a printer located in the network
i have theses parameter report
desformat = prtname
desname=??????
destype= ?????
mode=character
i would like to preview the report before to send to a printer
sldsACCOUNTING SYSTEM
2006-2007 From Date : 01-JUL-06
Printed On : Friday August 31 2007 11:13 AM To Date : 30-SEP-07
G A/C. Code 99-99-9999 Description: xxxxxxxxxxxxx H
-- DOC. # -- -- DATE -Chq/Slip# ---------- N A R R A T I O N -- -- DEBIT -- -- CREDIT -- -- BALANCE --
Opening Balance: -999,999,999.00 Cr.
G *** Total *** 0.00 0.00 -999,999,999.00H
================= ================= =================
when i run character mode report in browser then display this output properly
but sir problem is that when i print the report
G(use for bold)
is not working
means not print in bold format in printer
same character print G
do you have any idea when i print through browser to printer G for bold purpose its work to printer ? -
Character Mode Report Print in Developer 6i
How i can create character mode reports for efficeint printing on dot matrix printers. I m not asking about the Character Mode Template(in the report wizard). And how i can convert the existing reports to Character Mode.
I am using Reports 6i.Please post this question in the Rpeorts forum: Reports
-
How to Apply XML PArtial definition in Character mode report
Hi All
I want to apply some XML code definition in Character mode report The same XML is working fine in Bitmap
Plese give me some idea.Any update? .please give some idea..... members..plz
-
Linebreak Code in Character Mode Report
Dear All
I m saving a Character Mode Report which is 132 column Wide, and i can access that report in Note Pad in proper format and alignment but when i m use WORDPAD, it open in un aligned format i mean with line break.
so any one can give me any Idea so i can open that report in WORDPAD too.Take a look at the .prt file that you are using. The linebreak code is stored in there and you can alter it to the appropriate code for your printer/platform/application to view correctly.
-
Font Size in Character Mode Report
Hi ,
I have to print a report in a pre printed Stationary, which has tabular columns The columns are little bit small . when i have bigger data say value like 9999999.45 it over prints on the pre printed text. is it possible to reduce the size of the data at these places and be normal in other parts of the report.
i.e. Font size reduced inside the tabular column and normal for the remaining part of the report
Will appreciate the helpFont size in character mode report cannot be control through Oracle Report.
<br><br>
You can use report .prt file or manually set the printer to print character in small size.
<br><br>
Raj<br><br>
<b>www.oraclebrains.com<a>
<br><font color="#FF0000">POWERED by the people, to the people and for the people WHERE ORACLE IS PASSION.</font></b> -
Update column in Character Mode Report
Hi,
I hope so you all r fine.M facing a problem in character mode reports.i want to increase width of item field but when i opens paper layout of rdf there is no such colum.actually this column depends on parameter value.but am astonish how it is displays when it is not exist.
Can anybody help me.
Report name:Transaction Register
Column:Item Description
Regards,
Shakeelbut am astonish how it is displays when it is not exist.So am I ;-)
I'm sure it exists. If the data model uses a lot of lexical parameters, it may be confusing to figure out where the data comes from. Without any more information on your report, it is impossible to tell. -
Problem in Character Mode Report (Urgent)
Dear All
i m designing a character mode report
and when i preview it ,,, it will display
different report font which is big in size
and width so it is not fit in the designed columns
can any one help me ,, y this problem is exist
though i m using Dot matrix printer EPSON DFX-8500
printer.Hi..
If you are directly giving Print from previewer..you need to set printer to 10 cpi (if you want bigger font) and 12 dpi to compress the larger font..
CPI is character per inch so in one inch 10 chr or 12 chr can fir acc to setting.
If you are uploading file on Oracle Apps then you need to set fonts if needed in concurrent manager,printer setting,Style,fonts ..
"But the hardware setting is vewry imp..set the font in DRAFT mode"..
tarak desai
[email protected] -
Problem to print character mode report in Landscape
I set orientation and select but it still print in landscape character mode. When it print in character mode report in portrait format its ok.
I Set and use all the option in report to print in Landscape in character mode.
I ask you please to give me information about the printing definition files and its codes, how to use printer codes. I use two printers
1. Epson LQ2180 2. HP 6L
I used HPLWIDE printing definition files put its still print in portrait format not to print in landscape.
Thanks for corporation
I will wait ur reply...
At this address
[email protected]
[email protected]Hi,
This sounds like a similar problem that I had (and still having). It was (is) a Bug. Go to metalink.oracle.com and reference this bug#1413754. See if this is your problem as well. My only work around was change the format of the file instead of using character mode I am now using PDF. Which is working fine for me.
~Vannette -
Any way to get Character Mode Report
In our company a lot of reports were made in character mode. in prev version Developer Rel 2.1
now Complete software is being compiled in 9ids.
Company wants to get most of reports in character mode.
I want to get character mode report at user end.
pls help meone main and more important think
in url password is display.[b]
for hide the password follow thses steps
user_name := get_application_property(username);
pass := get_application_property(password);
conn := get_application_property(connect_string);
con_url := 'userid='||user_name||'/'||pass||'@'||conn;
/* Convert the connect string into a hexadecimal character string. */
FOR i IN 1..LENGTH(con_url) LOOP
v_a := ltrim(to_char(trunc(ascii(substr(con_url,i,1))/16)));
if v_a = '10' THEN v_a := 'A';
elsif v_a = '11' THEN v_a := 'B';
elsif v_a = '12' THEN v_a := 'C';
elsif v_a = '13' THEN v_a := 'D';
elsif v_a = '14' THEN v_a := 'E';
elsif v_a = '15' THEN v_a := 'F';
end if;
v_b := ltrim(to_char(mod(ascii(substr(con_url,i,1)),16)));
if v_b = '10' THEN v_b := 'A';
elsif v_b = '11' THEN v_b := 'B';
elsif v_b = '12' THEN v_b := 'C';
elsif v_b = '13' THEN v_b := 'D';
elsif v_b = '14' THEN v_b := 'E';
elsif v_b = '15' THEN v_b := 'F';
end if;
con_url_temp := con_url_temp||'%'||v_a||v_b;
END LOOP;
path:='/reports/rwservlet?server=repserver4&destype=cache&'||con_url_temp||'&report='||rep_path);
web.show_document(path);
and enjoy your life:-)
kuljeet pal singh -
Printing Character Mode Report On Oracle 9i AS - Application Server
Hi All,
Even though I have put this problem in Reports Forum,
I thought it fit to put forward this problem in Forms Forum
since Forms Forum is being accessed by a large number
of developers across the world.
Now the problem :
I have developed a report in Character mode that runs in
hundreds of pages. The output will be taken on High speed
Dot Matrix Printer since the client requirement is fast printing
& economical printing. That is the reason to develop this report
in Character mode & not Bitmap mode. This report works
fine in Client-Server environment.
However, the problem lies in the Web Server environment.
The same reports will be run on Oracle 9i AS. Since the
browser supports only HTML & PDF format, Character
mode reports faces a major problem.
Can anybody help me to resolve this problem ??
I would like to remind you again that the constraint is NOT
TO USE LASER PRINTERS.
Thanks.
Mayur
[email protected]Hi Shahmayur,
I too am facing the same problem. If your problem is cleared then please let me know, so that i can continue the work.
Rgds
Bhaskar
Maybe you are looking for
-
ORA-27078: unable to determine limit for open files
I installed Oracle XE on my Gengoooraclexe@ghost ~ $ lsnrctl LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 25-JUN-2011 16:51:29 Copyright (c) 1991, 2005, Oracle. All rights reserved. Welcome to LSNRCTL, type "help" for information. LSNRCTL> s
-
Java.io.IOExecption; must be caugh or declared to be thrown - omg?
Hello everybody, I'm kind of new to java and as part of a school project I've got to make a fully functional program. When compiling (I use BlueJ, if it matters), I'm getting this message: java.io.IOExecption; must be caugh or declared to be thrown W
-
New gestures now available on iPad 1 with 5.0.1
Or so the message says when you begin downloading the upgrade. Mine is still updating, so I can't verify this, but if if it works, past user complaints should be put to rest.
-
i know how to create tax with taxinj, but i have new client were they have taxinn, i have tried to make tax code, but its not working in po.in taxinn but i dont know the exact condition and account keys. my tax is - excise inclusive+ 15% vat+2.5 add
-
Webservice call limitations with the & character?
Hi all, I'm trying to call a webservice from my flex application and in the url it ends with "/webservices?ver=2.1&wsdl" The error is "The reference to entity "wsdl" must end with the ';' delimiter" After some tests I found if I replace the & with ?