PDF output in character mode
Hi,
We are trying to print a XML out put in PDF format using dot matrix printer. The problem is, the dot matrix printer is printing in graphic mode, i.e. each line is printed as two halves. We need each character to be printed as a whole character. Due to graphic mode printing the report is not legible. Suggest some font that can be used in the template which will appear legible in dot matrix.
Or any other way to print the PDF output in character mode.
Regards,
Anupam
Hi,
this sounds like a printer driver / firmware issue. I'd suggest to discuss that issue with the printer vendor and maybe get support from them to get the printer working for PDF files.
Another option is to put some filters in the print queue to convert the PDF into other formats, bitmap or postscript or whatever the printer understands.
I don't think this is a problem related to BI Publisher, as long as the PDF displays fine on your screen.
best regards,
David.
Similar Messages
-
Report output in character mode
Hi,
I have a group by report with sub totals after each grouping. I need this report output in a text file in character mode.
The output looks fine, but the sub totals are not being displayed in character output format.
When I run it to the screen then I do see the sub total. The report is developed in 10g.
Please help.
TIA.hi there
go to property inspector of report and set correct setting in charactermode category.
hope this helps
asp -
Unable To Produce RTL (Right To Left) Output in Character Mode Reports
hi
Work environment
- Oracle Forms 6i(client/Server) With pacth 18
- dot matrix printer
- Window xp
Create Report with property "Direction" is "Right to Left"
NLS_LANG is set to AMERICAN_AMERICA.AR8MSWIN1256.
While running this report with mode=bitmap, the output columns
are flipped. The leftmost column appears to the right of the output. This is the expected
behaviour.
While running the same report with mode=character and desformat=dflt leftmost column
remains on the left. The column order is not changed from Right to Left.
Based on note 332829.1 in metalink
Should I change dflt.prt file as follows:
printer "dflt"
height 66
width 80
nls locale "arabic"
nls datastorageorder
"logical" nls
contextuallayout "no"
nls contextualshaping "yes"
after page control(L)
return control(M)
linefeed control(J)
i changed, but did not change something
Where is the problem
thanks for helpmy Regional and Language settings are:
standards and formats : Arabic (U.A.E)
Location : United Arab Emirates
Language for non-Unicode Programes : Arabic (U.A.E)
My NLS Settings
NLS_LANG : ARABIC_UNITED ARAB EMIRATES.AR8MSWIN1256
USER_NLS_LANG : ARABIC_UNITED ARAB EMIRATES.AR8MSWIN1256
DEVELOPER_NLS_LANG : AMERICAN_AMERICA.AR8MSWIN1256
My Report Object Settings:
Report Direction : Right to left
all Objects (Frame,Repeating Frame,Fileds..) Setting
Direction : Right To Left
Justify : Right To Left
Note :
- the Labels frame Direction is ok but Repeating Frame Have Direction Problem
- Print on Network printer Epson dot matrix
thanks for all -
Problem with pdf output of an internal table
Hi,
My requirement is to get the internal table out put to be displayed through pdf in a table form.
Internal table :
Matter Matter Description -
> Table Head
0011 Standard -
> Table contents
0022 Clerk
I want this to be displayed through pdf in same format.
I searched sdn and tried this way.
Please help if am wrong anywhere.
Thanks,
Sandeep
Edited by: SandeepReddy on Jun 9, 2010 9:13 AMtypes:begin of ty_mara,
matnr type matnr,
end of ty_mara.
data i_mara type standard table of ty_mara.
data itab like line of i_mara.
DATA: v_handle LIKE sy-tabix,
v_spool_id type RSPOID,
v_rc TYPE c,
v_errmessage(100) TYPE c,
gd_spool_nr type RSPOID,
gd_bytecount type i,
v_text(70) TYPE c.
types ty_pdf type tline.
data it_pdf_output type standard table of ty_pdf.
data i_pdf like line of it_pdf_output.
gd_spool_nr = sy-spono.
SELECT matnr FROM mara INTO TABLE i_mara.
CALL FUNCTION 'RSPO_OPEN_SPOOLREQUEST'
EXPORTING
dest = 'LP01'
LIFETIME = '8'
IMPORTING
handle = v_handle
spoolid = gd_spool_nr
rc = v_rc
errmessage = v_errmessage.
LOOP AT i_mara into itab.
v_text = itab-matnr.
CALL FUNCTION 'RSPO_WRITE_SPOOLREQUEST'
EXPORTING
handle = v_handle
text = v_text
IMPORTING
rc = v_rc
errmessage = v_errmessage
EXCEPTIONS
handle_not_valid = 1
OTHERS = 2.
ENDLOOP.
CALL FUNCTION 'RSPO_CLOSE_SPOOLREQUEST'
EXPORTING
handle = v_handle
IMPORTING
rc = v_rc
errmessage = v_errmessage
EXCEPTIONS
handle_not_valid = 1
OTHERS = 2.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = gd_spool_nr
IMPORTING
pdf_bytecount = gd_bytecount
TABLES
pdf = it_pdf_output
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
LOOP AT it_pdf_output INTO i_pdf .
TRANSLATE i_pdf USING ' ~'.
CONCATENATE OUTPUT i_pdf INTO OUTPUT IN CHARACTER MODE.
ENDLOOP.
TRANSLATE OUTPUT USING '~ ' .
app_type = 'APPLICATION/PDF;'.
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
text = output
mimetype = 'APPLICATION/PDF;'
IMPORTING
buffer = l_xstring.
CONCATENATE cl_abap_char_utilities=>byte_order_mark_little
l_xstring
INTO l_xstring IN BYTE MODE.
CONCATENATE 'attachment; filename=NIM2_matter_Summary_'
sy-uzeit
'.pdf'
INTO l_content.
CALL METHOD cl_bsp_utility=>download
EXPORTING
object_s = l_xstring
content_type = app_type
content_disposition = l_content
response = _m_response
navigation = _m_navigation
Edited by: SandeepReddy on Jun 9, 2010 10:30 AM -
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. -
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... -
Reports in Character Mode - Can I generate a PDF?
Hi, i'm working with Forms 6i in Character Mode. Forms and Reports are in Unix Server.
Now, all the forms call the reports like this:
run_product(REPORTS, lower(lv_reporte), SYNCHRONOUS, BATCH, FILESYSTEM, list_id, null);
HOST('sh imprime '||lv_salida||' '||to_char(ln_cantidad)||' '||lv_ccola, NO_SCREEN);
"Sh Imprime" is a JOB, it's redirect the output to the printer.
I need, in character mode, Run the Report to a PDF, ¿It can be possible?
I don't wanna create the .lis, i wanna run the report and generate a PDF.
Thanks.
Regards.I can't generate a PDF, but if the form call the report in "BITMAP" mode and non character without archive.prt, i'ts generates a PostScript in UNIX.
Later, I transform the Ps to PDF, with ghostscript PS2PDF. -
Character mode runtime incompatible with DESFORMAT of PDF
Hi Learned ones,
I am trying to generate a report in pdf format in unix however it errors out with:
REP-0004: Warning: Unable to open user preference file.
REP-1920: Character mode runtime incompatible with DESFORMAT of PDF, HTML, HTMLCSS, or RTF.
Now i generate the same report in windows to pdf format and works fine.
Please help.Hello,
Add MODE=BITMAP in the parameters .
http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwmsgs/1920.htm
Cause:
You are attempting to run a report with a destination format of PDF, HTML, HTMLCSS,SPREADSHEET or RTF. These formats are only available when running in a bitmap environment and producing a bitmap output.
Action:
Re-run the report with a bitmap executable or set MODE=BITMAP if already running with a bitmap executable.
regards -
Special character displaying as ? in PDF output
Hi,
I am generating BI publisher report through Oracle application.
My Pdf output is ok for Finnish and German language. But for polish font I am getting ? in PDF output. When I open XML file it says
" The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
An invalid character was found in text content. Error processing resource"
In database Polish font is stored perfectly.
I tried this <?xml version="1.0" encoding="UTF-8" ?> for generating XML. But I did not work.
I do not know what is the problem. Please help me.
Regards,
Faiyazcreate or edit xdo.cfg file.
For XML Publisher Desktop it is ( in my case) c:\Program Files\Oracle\XML Publisher Desktop\Template Builder for Word\config\.
Find section fonts, add your font, that support polish. like that
<font family="Times New Roman" style="normal" weight="normal">
<truetype path="C:\WINDOWS\Fonts\times.ttf" />
</font>
For XML publisher is Note:399518.1. I think it can help you. -
ECC6.0 - PDF issue - Junk Character output after Upgrade from 4.7c
Hi All,
I am working in Uprgade project(from 4.7c Non-unicode system to ECC6.0 unicode system).
We are facing PDF output issue in ECC6.0 that means we are getting junk character output(screenshot is attached for your reference).
In 4.7c , we have stroed the OTF data in table after generated from smartform as we should not get different output in future. Whenever we need output of the same then we are getting the OTF data from that table and we will generate pdf through "Convert_otf" function module.This logic is working fine in 4.7c.
In ECC6.0 ,the same logic is not working as system is unicode sytem and we are getting junk character output.
As per my old upgrade project experience , i have used the below piece of code for solve this junk character issue but still I am facing the same issue.
Kindly note that in my old upgrade project i have regenerated the OTF data in ECC6.0 and used the below piece of code then I got correct output but here I have to use the old OTF data (from table) which was generated in 4.7c.
Please any one can give solution for this issue.
Regards
Anandakumar.K
+91 9486963561.
REPORT z_display_notification_tst.
Local Vairable Declaration
TYPES: lt_pdf_table(1000) TYPE x.
Local Vairable Declaration
DATA :
lv_otf_data TYPE STRING, " OTD data in string format
lv_length TYPE i, " OTF Length
lv_lines TYPE i, " No of lines
lv_no_of_recs TYPE int4, " No of OTF Lines
lv_offset TYPE int4, " Offset
pdf_fsize TYPE i,
lv_binfile TYPE xstring,
gv_reportsize TYPE i,
l_url(80) TYPE c,
l_pdf_data TYPE STANDARD TABLE OF lt_pdf_table ,
l_pdf_line TYPE lt_pdf_table,
l_offset TYPE i,
l_len TYPE i,
lt_pdf_table TYPE rcl_bag_tline,
lt_otfdata TYPE tsfotf,
ls_otfdata TYPE itcoo. " Line type of OTF data
DATA:
g_html_container TYPE REF TO cl_gui_custom_container,
g_html_control TYPE REF TO cl_gui_html_viewer.
******************GET OTF data from Table ******************************
Primary Keys used for selection : BUSKEY,
NTFTYP,
TRNTYP,
SELECT SINGLE otf_data FROM znotif_otf
INTO lv_otf_data
WHERE buskey EQ 'LS_000000000010001470'
AND ntftyp EQ '0037'
AND trntyp EQ 'ACT'.
Get the length of the OTF data stored as stream of string************
l_len = STRLEN( lv_otf_data ).
Compute the OTF lines
lv_lines = l_len / 72.
lv_no_of_recs = lv_lines + 1.
Set the offset to initial
lv_offset = 0.
*Reconstruct the OTF data from the string
DO lv_no_of_recs TIMES.
IF sy-index NE lv_no_of_recs .
Get OFT format: command ID
ls_otfdata-tdprintcom = lv_otf_data+lv_offset(2).
lv_offset = lv_offset + 2.
Get OTF format: command parameters
ls_otfdata-tdprintpar = lv_otf_data+lv_offset(70).
lv_offset = lv_offset + 70.
ELSE.
Last line contains only the OFT format: command ID "//" (End of file)
ls_otfdata-tdprintcom = lv_otf_data+lv_offset(2).
lv_offset = lv_offset + 2.
ENDIF.
Append the OTF data to Export OTF table
APPEND ls_otfdata TO lt_otfdata.
CLEAR ls_otfdata.
ENDDO.
*************************Convert OTF to PDF**************************
IF lt_otfdata IS NOT INITIAL.
clear: lv_binfile,
pdf_fsize.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
IMPORTING
bin_filesize = pdf_fsize
bin_file = lv_binfile
TABLES
OTF = lt_otfdata
lines = lt_pdf_table
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
OTHERS = 4.
IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDIF.
Call screen***********************************
Call screen
CALL SCREEN 100.
RETURN.
*& Module STATUS_0100 OUTPUT
text
MODULE status_0100 OUTPUT.
SET PF-STATUS '100'.
SET TITLEBAR '100'.
Convert bin file
clear :l_len,
l_offset.
free l_pdf_data[].
l_len = XSTRLEN( lv_binfile ).
WHILE l_len >= 1000.
l_pdf_line = lv_binfile+l_offset(1000).
APPEND l_pdf_line TO l_pdf_data.
ADD 1000 TO l_offset.
SUBTRACT 1000 FROM l_len.
ENDWHILE.
IF l_len > 0.
l_pdf_line = lv_binfile+l_offset(l_len).
APPEND l_pdf_line TO l_pdf_data.
ENDIF.
Initialise and create the HTML container
IF NOT g_html_container IS INITIAL.
CALL METHOD g_html_container->free
EXCEPTIONS
OTHERS = 0.
CLEAR g_html_container.
ENDIF.
CREATE OBJECT g_html_container
EXPORTING
container_name = 'HTML_CONTAINER'.
Initialise and create the HTML control that will display the
PDF output as URL
IF NOT g_html_control IS INITIAL.
CALL METHOD g_html_control->free
EXCEPTIONS
OTHERS = 0.
CLEAR g_html_control.
ENDIF.
CREATE OBJECT g_html_control
EXPORTING
parent = g_html_container
saphtmlp = 'X'.
Load the pdf data and obtain the URL
CALL METHOD g_html_control->load_data
EXPORTING
size = pdf_fsize
type = 'application'
subtype = 'pdf'
IMPORTING
assigned_url = l_url
CHANGING
data_table = l_pdf_data
EXCEPTIONS
OTHERS = 1.
IF sy-subrc NE 0.
raise cntl_error.
ENDIF.
CALL METHOD cl_gui_cfw=>flush.
Show the URL
CALL METHOD g_html_control->show_url
EXPORTING
url = l_url.
ENDMODULE. " STATUS_0100 OUTPUT
Edited by: Anandakumar.K on Oct 25, 2011 12:47 PM
Edited by: Anandakumar.K on Oct 25, 2011 12:54 PMHi,
as you can see in SAP notes 842767 and 1349413, spool data cannot be converted properly for all types in a Unicode conversion.
This might be possible if you have English (US7ASCII) characters only, but with Chinese characters I do not think that a small piece of code can do it ...
Hence I think you need to recreate the data on the Unicode system ...
Best regards,
Nils Buerckel
Edited by: Nils Buerckel on Nov 3, 2011 1:51 PM -
Some of Chinese character is not displaying correctly in PDF output
Hi all
I'm involved in the 1st Peoplesoft project in Korea and having a difficulty with displaying Chinese character in PDF output.
Usually Koreans can translate their name in Chinese and that Chinese name is displayed in personal information in their company as well as Korean name.
With Oracle BI Publisher I made rtf template that includes employees' Chinese name and tried to export to PDF output.
Most of Chinese character was fine but '李' character that was ok in HTM output was crashed in PDF output.
So I researched and tested some solutions.
Here's what I did.
I downloaded and installed five fonts(ALBANWTS.ttf, ALBANWTT.ttf, ALBANWT.ttf, ALBANWTK.ttf, ALBANWTJ.ttf) in client machine(c:\windows\fonts\) and did mapping job with xdo.cfg configuration file.
After that I previewed PDF output in the rtf template and checked embeded fonts in the PDF file.
I can see the newly installed font was embeded but still '李' character is crashed.
My problem is little bit different from others becuase only one Chinese character is crashed by for now.
The Chinese character '李' is very common last name in Korea and I believe Simplified Chinese character font have in it.
Please let me know if you have any solutions or experiance.
Thanks and best regards
Kwangbock.Hi James
Oh~ It perfectly works!!
I've been tried to solve this problem for a long time and
I really appreciate for your help~
Thanks~
Kwangbock. -
PDF output not printing specific Czech character
Hi,
On the XML template i have harcoded some Czech characters like, měna & Peněžní
if any Czech character has small v on top of the character, then the report output prints as ? instead of that character. For examplae, měna & Peněžní in PDF output prints as m?na & Pen??ní . It prints rest of the Czech characters correctly. The issue happens only with PDF output. When i keep the Format as EXCEL then it prints the Czech characters correctly. Can any one help me on this issue.
Thanks
ShankarCan somebody help me on this.
Thanks,
Shankar -
Chinese character in PDF output file ?
I have trouble to display Chinese characters (traditional Chinese) on PDF output file. Is there anyone can help ?
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Rene Kello ([email protected]):
From 'Reports 6i Release Notes'...
Reports supports PDF 1.1.
The Adobe Acrobat Reader cannot read .PDF report files generated by Report Builder if the report contains certain types of non- English character set languages (typically multi-byte) or Unicode character set.
Same with reports 6.
Install Acrobat Reader 4.X. Print to Acrobat Distiller printer. Works for Baltics.
cheers,
Rene.<HR></BLOCKQUOTE>
It works ! Thank you ! -
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 -
Reports 6i - Character Mode Printing
Hi all,
I am working on Oracle Reports (6i) and I had to generate the report to a physical file using Forms and Reports 6i. I have been generating the report to Screen and saving the report output to a PDF. But if I select the File int he DesType and give the filename to the DesName as "MyDrive:\ReportOutput" with any extension (.txt, csv, pdf, xml) I could not see the file in the drive sepcified. Whereas when I generate the report from the Report Builder with the same name as the DesName Parameter i could see the report. I hope it to be a configuration issue. Can anyone help me in this regard. And one more thing, If I got the file with extension as ".PDF" I could not open the file as such. But if text or csv then i could see the report output.
Thanks.
Ravi
Edited by: user10902305 on Jan 16, 2012 5:00 PMSince a solid line is a bitmapped object, the only way you'll be able to get something like that is to run in bitmapped mode. Sorry, but that's pretty much the difference between running in bitmap vs. character mode.
Hope that helps,
Toby
Maybe you are looking for
-
Why I'm not allowed to create post in support of apple online?
Trying to post a question, but seeing a message that I'm not allowed to do that, Why? Thanks
-
*BARCODE USING SMARTFORMS*
hi experts, i need examples on barcodes using smartforms...... in smartform dev(wht are the fields to take) rewards points will be there.... thanks and regards fareeda
-
Getting ORA-00600 when using table functions
Hello, I am trying to use simple table function: create or replace type StatCall AS OBJECT ( dial_number varchar2(255), start_date date, duration number(20) create or replace type StatCallSet AS TABLE OF StatCall; create or replace package ref IS typ
-
Set up book. The program then started the process. When it got to upload part it froze my computer. No progress on the progress bar. I have a cable modem and great upload and download speed. When I tried to exit program my iMac froze and wouldnt allo
-
Black flickering screen after 10.6.3 update
Hi, Am using a Samsung 22" SyncMaster monitor with my 2009 Mac Mini connected via VGA with resolution 1680 x 1050 at 60Hz and after 10.6.3 update the screen flickers allowing me to see the desktop for around 1-2 seconds. Its really annoying but the o