Printing special character from report
I was reading thru the other discussion on the same subject as I hv a similar problem. I am trying to print the character ' in a report. Note that it is not coming from the database. It is a hard typed character in the text of the report. It works fine on NT but doesn't work when we run the report under Unix. Currently our report server is on Unix so.. It just prints a '?'. Any suggestion will be highly appreciated.
Thanks,
I was wondering if there is a way to bypass
Unix fonts and send the character to the
printer using PL-SQL code in this
particular case. Any idea?Ideas, maybe, answers, no. I haven't had
that particular problem, but if I did, I
would:
1) First step: make sure you can generate
a report that has the correct character
code value and that your Unix OS doesn't
force it to '?' because of US7ASCII.
2) Second step: make sure the printer is
given something it can understand; the
character has to be in it's font palette
too. Either it has to know what to do
with B1 hex, or you have to put a header
in your output file telling it how to
interpret that.
Good luck, sorry I couldn't help more.
-- Allan Plumb
Similar Messages
-
Problem about printing special character in bex query analyzer
Hi,
in bex query analyzer i have created one restricted key figure , in which i have substracted two date with the help of replacement path.
So i got result.
But i am facing one problem. when in both date, if one date is null or # then it is giving some big value like -734567.
But i want some special character like X instead of this big values.
So how can i do this?
With the help of if and else it can be done.
But how can we print special character in report.
Please help me
Thank you in advancehi,
You cannot show X in a formula result. You can highlight the row using exception.
Still if you want to show X in the result then you need to create a formula variable on a char which returns X value all the times.
Then you can use the three formula variable to write a formula so that it shows the difference:
date1 -- formula variable
date2 -- formula variable
charx -- formula variable.
the formula will be
Count(date1)Count(date2)(date1 - date2) + charx *(count (delta(date1) + delta(date2))).
this would return the X value if any of the dates are empty otherwise their difference.
regards.
Arvind. -
Printing of Character Mode Reports on 3 tier on Dev 6i
Has anyone done character mode printing of reports on Dev6i? We are facing problem of REP: 3002. We have already loaded Orarrp on server and client and also tried changing the service property from log on as System Account to Log on as Administrator and also vice-versa, but nothing seems to work.
Any help will be appreciated.
Plz repond to email: [email protected]
B.SuryaprakashThe first thing to do is to make sure that you can print a character mode report on the server box just using the rwrun60 executable.
If you can do this then you should take a look and make sure that the user that's started the reports server has access to the printer that you're trying to print to (you seem to have changed from the localsystem log on to Administrator, but are you sure that Administrator can access those printers).
I think that orarrp is a red herring here - and I'm not sure why you're trying to set it up.
Hope this helps,
Danny -
Hello All,
I work on JTextPane , and want to don't print special character when the user press on this the JTextPane ,like "a" character,
the application will test is this character is "a" or "A" , it won't print the character , else print it , So how can i do that code.??
Thanks.There are other ways, but the best is probably to use a documentFilter.
The Java Tutorials: [Implementing a Document Filter|http://java.sun.com/docs/books/tutorial/uiswing/components/generaltext.html#filter]
luck, db -
How to insert special character from Oracle form builder 10g
Dear all,
I need help. how to insert special character like 'Superscript or Subscript ' from oracle form builder 10g. I had try in Oracle form builder 6i with press ALT+ASCII code in the text item and it work, but in the oracle form builder 10g this method doesn't work... would you like to help me...somebody please...
Best Regard,
Dedy P.T.What do you mean by insert ... from Forms Builder? Do you mean you want to add it as text in a string of pl/sql code or as part of boiler plate text (label) or a value on the Property Palette?
For special characters you would need set NLS_LANG to something that would support the characters you want to use. For the Builder to see the change, you would need to set NLS_LANG to something like:
NLS_LANG=AMERICAN_AMERICA.UTF8
This can be done in the Windows Registry or system. As I mentioned, this will only apply to the Builder and will have nothing to do with a running form. For running forms you would need to set this in default.env. As for things like super and sub scripts, these are font formats and not necessarily characters. For the most part, I don't believe these are supported in Forms. -
EP6.0 SP2: Howto print special character in hbj:textview
Hello,
i tried to print the character ä (special german) in the textView.
<hbj:textView
id="Text_ZIP"
text="vorläufiger Stand 23.12.2004"
design="EMPHASIZED"
/>
But the iView didn't run. I get an error.
Has anybody of you an idea?
Thank you
Message was edited by: Stephan BorchertHi Stephan,
within Eclipse, please save all documents in UTF-8 (Window -- Preferences -- Workbench -- Editors -- Text File Encoding -- Other --UTF-8). If you have saved them in Cp1252, you will get problems to switch to UTF-8, so copy the content of such a file, delete it, switch to UTF-8 and insert again.
Hope it helps
Detlev -
Help! Print OLE object from report builder.
Dear OTN Members,
I would like to know how to print out a OLE object from
report builder, because currently I face problem to print out
the whole contain of the winword document file, because when I
display the OLE on the form it will only display according the
size I declare for it, it seems that it will not automatic
extend the size itself. i.e. if I drag the size to one page in
fact the maximum is one page, then when it display, it will only
display maximum one page eventhough the document file maybe
contain 10 page inside it. So when I print out the report it
will only show me one page, so if you have any solution, pls
share with me, thank you.
nullAs far as I know you have to use OLE Item to work with the information. Unfortunately there is not any standart way to extract a source document from OLE. Some applications such as Word, Excel support OLE Automation, so you could use OLE2 package to save the document as a file, that is the easest way. But others don't, so you may have to use an undocumented way to extract a document.
Take a look at the following thread:
Subj: 6i to 9i Ole to LOB translations, How do you know the App. server?
Re: 6i to 9i Ole to LOB translations, How do you know the App. server?
P.S. If you can't extract some types of your documents, please let me khow.
P.P.S. To extract a document through OLE2 package you could use something like the following. /I'm not sure the code is correct/:
DECLARE
handle ole2.obj_type;
BEGIN
ACTIVATE_SERVER('OLE1');
handle := forms_ole.get_interface_pointer('OLE1');
BEGIN
-- Save a document to disk
Args :=OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(Args, 'C:\test.doc'); -- file name
OLE2.INVOKE(handle, 'SaveAs', Args);
OLE2.DESTROY_ARGLIST(Args);
EXCEPTION WHEN OTHERS THEN
Message('Error');
END;
-- OLE2.RELEASE_OBJ(handle);
END; -
Detect special character from a String
Hello guys,
Some of the files in unix box contain special characters . I need to strip these special character in the filename to underscore. however, I do not want to strip off special character like _ - ^ . @
Pattern escaper = Pattern.compile("([^a-zA-z0-9_-^.@])");
I couldn't strip off the caret. Appreciate any advice please. Thanks in advance!
Cheers,
MarkHi Alice,
I tried your suggestion:
public static void main(String[] args) throws IOException {
rename(args[0], args[0].replaceAll("[^a-zA-Z0-9\\\\/:@._^-]","_"));
public static void rename(String from, String to) throws IOException{
// File (or directory) with old name
File file1 = new File(from);
// File (or directory) with new name
File file2 = new File(to);
// Rename file (or directory)
boolean success = file1.renameTo(file2);
if (!success) { // File was not successfully renamed
System.out.println("failed to rename : " + file1);
C:\workspace\TestOnly\bin>java -cp . com.test.TestClass C:\Apps\mud\1~2.txt
C:\workspace\TestOnly\bin>java -cp . com.test.TestClass C:\Apps\mud\1^2.txt
failed to rename : C:\Apps\mud\12.txt
C:\workspace\TestOnly\bin>java -cp . com.test.TestClass C:\Apps\mud\[email protected]
C:\workspace\TestOnly\bin>java -cp . com.test.TestClass C:\Apps\mud\1@2$-_3mn.txt
C:\workspace\TestOnly\bin>java -cp . com.test.TestClass C:\Apps\mud\1@2$-_3mn.txt
failed to rename : C:\Apps\mud\1@2$-_3mn.txt
C:\workspace\TestOnly\bin>java -cp . com.test.TestClass C:\Apps\mud\1@2$-_3m'n.txt
C:\workspace\TestOnly\bin>java -cp . com.test.TestClass C:\Apps\mud\1@2$-_3m'^n.txt
failed to rename : C:\Apps\mud\1@2$-_3m'n.txt
C:\workspace\TestOnly\bin>java -cp . com.test.TestClass C:\Apps\mud\1@2$-_3m'^n.txtbut however, whenever I put in a caret in the filename, it always failed to rename. Appreciate your further advice please. thanks in advance!
Cheers,
Mark -
How to discard the special character from field-Table.
Hi
In my data i am having a lot of SPECIAL CHARACTER also involved, I want to display only the consumer name (PURELY), is there any method/function module to discard the special character and display only the A-Z character as stored in DB.
Gauravif itab-field CA 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
or
if itab-field CP 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.
then do ur else calculation.
else.
delete itab.
Edited by: tahir naqqash on Feb 17, 2009 4:27 PM
Edited by: tahir naqqash on Feb 17, 2009 5:21 PM -
Can we open a Print dialog box ( as the one which opens from File->Print in MS Word document) which list all the configured Printers from an Oracle Report (9i/10G) deployed in web environment running on OAS.
Thanks in Advance.Hi,
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = l_c_form
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
fm_name = l_f_fname
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3
data :l_t_out TYPE ssfcompop,
l_t_control LIKE ssfctrlop.
Here pass the Selection screen printer name to the below variable*
l_t_out-tddest = p_print.
IF sy-subrc = 0.
CALL FUNCTION l_f_fname
EXPORTING
archive_index = toa_dara
ARCHIVE_INDEX_TAB = TSFDARA
archive_parameters = arc_params
control_parameters = l_t_control
output_options = l_t_out
user_settings = space "This should be passed as space then only it works
p_langu = p_langu
TABLES
g_t_item = g_t_final
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
Hope it helps!!
Rgds,
Pavan -
Export and Print icons missing from report viewer
I'm currently embedding crystal within a wicket application in which I'm making use of the getHtmlContent() method to retrieve the report's HTML. For whatever reason, I'm not able to get either the export or print icons (on the top left side of the viewer). Is this because I'm using the getHtmlContent() method or do I have something misconfigured somewhere? Setting the setHasExportButton(true) and setHasPrintButton(true) on the report viewer object has no effect.
If I run the same report using the generated JSP outside of my application (within tomcat), I see the export/print buttons. I notice the JSP makes use of the processHttpRequest() method. Any help will be greatly appreciated.
Thanks!
LouisHi Louis
- The getHtmlContent() method handles the user's request to generate the HTML for the report and returns the HTML as a String.
Note: Either the getHtmlContent method or the processHttpRequest method can be used to handle the user's request to generate the HTML for the report, depending on how you write your JSP. If the viewer's content is displayed more than once, then the getHtmlContent method is more efficient, because the request is processed once and the resulting HTML string can be used multiple times. In this case, you must set the content type of the HTML, as recommended in the table. Additionally, using getHtmlContent sets setOwnPage to false and disables exporting and printing.
- The setOwnPage(true) and processHttpRequest() method should be used if you want the export and print button to appear in the report viewed through Crystal Report Viewer.
Following is the snippet of code which shows you how to use these 2 methods.
//Get the IReportSource object from sesion and pass it to the viewer
IReportSource reportSource = (IReportSource)session.getAttribute("reportSource");
Create the viewer and render the report -
//create the CrystalReportViewer object
CrystalReportViewer oCrystalReportViewer = new CrystalReportViewer();
//set the reportsource property of the viewer
oCrystalReportViewer.setReportSource(reportSource);
//set viewer attributes
oCrystalReportViewer.setOwnPage(true);
oCrystalReportViewer.setOwnForm(true);
//set the CrystalReportViewer print mode
//oCrystalReportViewer.setPrintMode(CrPrintMode.ACTIVEX);
oCrystalReportViewer.setPrintMode(CrPrintMode.PDF);
//process the report
oCrystalReportViewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
Hope this helps you .
Thanks
Soni -
How to select special character from OLE DB source in SSIS?- Truncation error.
Hi,
I have to pull data from one Oracle table and for that I am using OLE DB source in SSIS. In OLE DB source I write query like,
SELECT DESCRIPTION
FROM INV.ITEMS_LOCATION
and packages failed with truncation error. When I redirect this column for truncation I see below result in data viewer,
ErrorCode
ErrorColumn
DESCRIPTION
ErrorCode - Description
-1071607693
8884
HC Afd Set__ZDV?N07-03075
The data was truncated.
-1071607693
8884
HC Afd Set__Ventiel 4DO1-?
The data was truncated.
-1071607693
8884
HC Afd Set__Ventiel 3DO3-?
The data was truncated.
-1071607693
8884
HC Afd Set__Ventiel 4DP01-?
The data was truncated.
-1071607693
8884
HC Afd Set__Ventiel DBDS-10-?
The data was truncated.
-1071607693
8884
HC Afd Set__Filter TXW?
The data was truncated.
-1071607693
8884
HC Afd Set__ZDV?N07-03075
The data was truncated.
-1071607693
8884
HC Afd Set__Ventiel 4DO1-?
The data was truncated.
-1071607693
8884
HC Afd Set__Ventiel 3DO3-?
The data was truncated.
-1071607693
8884
HC Afd Set__Ventiel 4DP01-?
The data was truncated.
-1071607693
8884
HC Afd Set__Ventiel DBDS-10-?
The data was truncated.
I don't how to put this value in table. I use code page 65001(UTF-8) and 1252, but it is not working, and giving error like
[OLE DB Source [16]] Error: Column "DESCRIPTION" cannot convert between unicode and non-unicode string data types.
Data Type of 'DESCRIPTION' source(External) column is varchar(240) and same- varchar(240) I used for output column and in my table's data type. I also tried with varchar(1000) for output column in OLE DB Source but same truncation error.
I also tried to convert DESCRIPTION into navachar using below cast function but got error.
SELECT -- TO_NVARCHAR(DESCRIPTION) AS DESCRIPTION,
--CAST(DESCRIPTION AS NVARCHAR(240)) DESCRIPTION,
Please let me know how to load this value in table. Thank you in advance.
VickyThanks ArthurZ for reply.
But for testing I am just using OLEDB source and OLE DB destination only in my ssis package.
For Column "DESCRIPTION", data type is VARCHAR(240)
in external column, output column and target table column.
And I tried to cast source column into nvarchar and also set target column to nvarchar to handle this kind of special characters but package is failing,
I also tried TO_NCHAR(DESCRIPTION)
in my source query to convert it to nvarchar but error is something like character mismatch.
Vicky -
PO Not Printing special character
Hello Gurus,
We have printing issue with POs. Users in other countries need to be able to print the PO to display special characters like:
Ä/ä,Ö/ö, Ü/ü
However, when we preview the PO from ME9F, it looks just fine with the special characters in them. But when printed or trial-printed, those special characters are replaced by space, #, ", etc.
I will appreciate your solutions.Hi,
Plz check the following link.
Re: Few keyboard special characters are coming as # in printout
Thanks,
Sree. -
Reading a string containing special character from a result set
My Code....
PrintStream p = new PrintStream(fout);
if (connection == null)
connection = getConnection();
CallableStatement proc = connection.prepareCall("{call testing_read()}");
rs = proc.executeQuery();
while ( rs.next() )
String page2 = rs.getString(1);
System.out.println(page2);
rs.getString(1); is a string value eg. 'Rebekah \n Govender' that is being set in a stored procedure.
The output of my program is :'Rebekah \n Govender' , i need for it to read the special characters, and produce this output :
Rebekah
Govender
Without using a result set , it works fine.
eg.
String page2 = 'Rebekah \n Govender'
System.out.println(page2);
Will give an output of :
Rebekah
Govender
I need to read values from the results set, pls help me someone....
Please help....String page2 = rs.getString(1).replace("\\n", "\n"); When you include source code in your posts, please enclose it in CODE tags. There's a button for that above the input textarea.
ThE-MaRaC wrote:
Hi,
you can try something like this:
import java.io.UnsupportedEncodingException;;
* Main class, manages the complete game
public class Main {
public static void main(String[] args) {
String page2 = "Rebekah \n Govender";
try {
page2 = new String(page2.getBytes("ISO-8859-1"), "ETF-8");
} catch (UnsupportedEncodingException e) {}
System.out.println(page2);
}Regards,
Hercog MarioThat is a disgusting hack which you shouldn't be recommending to anyone, and it's totally irrelevant here anyway. Also, as written, it does absolutely nothing because you misspelled "UTF-8" and you swallowed the exception that would have told you so. -
Unable to print special character in SAP script
Hi,
There is an address which needs to be hardcoded in a SAP Script form.
It looks like:
Česká republika s.r.o
Karla Engliu0161e 3219/4
Česká republika
IČO: 25635972
The letters which has got a tilde and sign above them are appearing as a hash '#' in print. I have tried uploading it as an image and as standard text. But still not working. Can someone help please?
Thanks in advance,
AnitaHello,
Is your SAP Unicode? If no, then this can get very messy. If yes, I'd start with checking if the font used by the SAPScript supports that character.
Regards,
Michael
Maybe you are looking for
-
Can I change from iba to epub?
I was gung ho and created my book in iBooks author only to find out after it was in iTunes that it was iPad only. Needless to say I was a bit frustrated that I found out about that after the fact. Anyway, I transferred my content into Pages and crea
-
External Storage Solutions (but not computer backups)
There are many articles about external hard drives for backups, but what about as a source to store home videos and pictures? For example, I have a MacBook Air 128GB that can't store much. My backup drive is a Time Capsule 2TB. After extensive resear
-
Feature Request: The Ability to create hyperlinks to another program
Hi, I am hoping someone at Apple reads this! I have a program I use called Logos 4, and it works with both a Mac (or yuck a PC) on the PC side they have the ability to do this http://www.youtube.com/watch?v=wZMW1Mw3ZgI in PowerPoint. I would like to
-
Solution Directory----Merging two projects in Solution
Dear Team, I am working in Sol Man 4.0 SP 13. we have created two projects in Sol Man & we have done our entire implementation thro Sol Man. Now the two projects are gone live. Now we want to maintain "Solution Directory" merging these two project
-
Exported images are being exported as hidden file types
So when I export my images using the current up to date version of Aperture 2, the files were not visible until I clicked "show hidden files." This really ***** because then when I burn a CD it appears as the CD is blank. Has this happened to anybody