Need to print new line when "," in string
Hi,
I have a string having value 12,221,23,67...
I need to print a new line after ", "
i;e 12
221
23
67....
Please suggest.
Thanks,
Ajit
Hi Team ,
its done.
I have used chr 13, chr10 and it print new lines for me
v_serial_num:=v_serial_num||','||CHR(13) || CHR(10)||rec.SERIAL_NUMBER;
Thanks,
Ajit
Similar Messages
-
Problem: Problem
is occurring in docx format; it is not printing “New Line” character in extracted txt using IFilter (offfiltx.dll) while with doc file IFilter (OffFilt.dll) is working fine.
Environment: -
Operating
System:
Windows XP SP2/7
Language:
C#
MS
Office Version: - MS Office 2007/2010/2013
Problem
Description: -
We
havedocx
file with new line character, and we are processing this file in IFilter for extracting text, and it is giving output with concatenation of lines.
Docx
file format (Sample.docx)
Test this music
Word processing
Testing docx file
Output:
- Test this music Word processing Testing docx file
Requirement:
- We
have requirement to get following text in particular format with New Line from docx because client is using docx format only.
Test this music
Word processing
Testing docx file
Attempt:
We have tried a lot after changing IFilter configuration,
but it is not giving required output. Then we saved same file in doc format (Sample.doc), which is giving required output.
Because it is application specific problem, kindly
assist to resolve issue on priority. We are sharing IFilter paths for extracting text for doc and docx.
Doc Filter Location: - %systemroot%\system32\OffFilt.dll
Docx Filter Location: - <Drive>:\PROGRA~1\COMMON~1\MICROS~1\Filters\offfiltx.dll
Code Snippet for setting property of filter
internal static IFilter LoadAndInitIFilter(string fileName, string extension)
IFilter filter
= LoadIFilter(extension);
if (filter
== null)
return null;
IPersistFile persistFile
= (filter as IPersistFile);
if (persistFile
!= null)
persistFile.Load(fileName, 0);
IFILTER_FLAGS flags;
IFILTER_INIT iflags
=
IFILTER_INIT.CANON_HYPHENS
|
IFILTER_INIT.CANON_PARAGRAPHS
|
IFILTER_INIT.CANON_SPACES
|
IFILTER_INIT.APPLY_INDEX_ATTRIBUTES
|
IFILTER_INIT.HARD_LINE_BREAKS
|
IFILTER_INIT.FILTER_OWNED_VALUE_OK;
if (filter.Init(iflags,
0, IntPtr.Zero, out flags)
==IFilterReturnCode.S_OK)
return filter;
Marshal.ReleaseComObject(filter);
return null;
Kindly
assist to resolve this issue and also let us know if any input is required.
For any help, we would be really
thankful.Kindly
assist to resolve this issue and also let us know if any input is required.
For any help, we
would be really thankful. -
How to print new line in jsp page
hi
how to print new line in jsp page
thanks\n - new line character is in java specific not HTML
specific.Well, if the correct line separator sequence (by far not always \n) would be used, it does add a new line to the HTML output. Too bad that you don't want to see HTML but formatted text. The BR tag is a formatting element for the displayed text, not a line break in HTML. ;) -
Office 2010 Don't print blank lines when data fields are empty
How do you do this in office 2010? Where do we go now?
This used to be under the Tools menu in previous versions:
On the Tools menu, click Mail Merge.
In the Mail Merge Helper dialog box, click Merge.
NOTE: You must select the main document and data source for the merge before doing step 2.
In the Merge dialog box, under When Merging Records, click either:
Don't print blank lines when data fields are empty.
-or-
Print blank lines when data fields are empty.
Click Close in the Merge dialog box, and then click
Close in the Mail Merge Helper.
NOTE: If you made no changes in the Merge dialog box, the
Close button is not available. Click Cancel instead.
Back to the topHi,
In Word 2007 or Word 2010, you can add
Mail Merge Helper to the Quick Access bar, and perform the steps then.
To add the
Mail Merge Helper command in the Quick Access Toolbar in Word 2007, follow these steps:
a.
In Word 2007, click the
Microsoft Office Button, and then click Word Options >
Customize.
In Word 2010, click File > Options > Customize Ribbon.
b.
Click
All Commands in the Choose commands from, and then click
Mail Merger Helper in the Choose commands from list.
c.
Click
Add, and then OK.
Best Regards,
Sally Tang -
Adding New Line character to String
Hi,
I want to add a new line while concatenating strings.
I am getting some string objects and put them together. while concatenating them i want new string to be displayed in new line.
The purpose of this is i am displaying this bunch of strings on a mouse over finction using javascript. Hence i want the different values to be displayed on a new line.
Any help is appreciated.You normally use \r\n or System.getProperty("line.separator") to get a newline in Java.
But since you're talking about Javascript, the whole question makes really no sense here at a Java forum. Don't you just mean a linebreak in HTML? If so, it is just
. If not, please elaborate or look for a Javascript forum. There are ones at webdeveloper.com and dynamicdrive.com. -
Force a new line when editing a SMS
Does anybody know how I can force a new line when editing a SMS for instance,
Starting the SMS with:
Dear xxx
Now I start editing the SMS on a new line....
Solved!
Go to Solution.Press the 0 button 3x times quickly usually works for me.
S.
History: Motorola MR30, Nokia: 7110, 7650, N70, N80, N82, X6 (32GB), Samsung Galaxy SII
Current: Samsung Galaxy Note3 Black -
How to make new-line when printing strings?
Please help me with code . I can't able to print the string in new line
Anil... the same question as your other post:
Printing the string -
Need help in how to print new line character in unix using java
Hi All,
I use the printstream class to print some line in a text using java.
here is the code:
FileOutputStream out; // declare a file output object
PrintStream p; // declare a print stream object
p.print("\t");
p.print(date);
p.print("\t\t");
p.print(RecCount);
p.println("\n");when i use this and output of this character in windows is
date RecCount
22-07-2007 23456
when i use the same code in unix it shows the following output:
date RecCount[]22-07-2007
it wont accept the new line character could any one give me an idea to solve this problem.PrintStream has a println() method. Use that. Or System.getProperty("line.separator").
Because a newline char doesn't necessarily specify a line break. It's system-dependent. -
What new line character in string is needed to show new line
If i need to show java string in a html text area with new lines(that is 2 -3 lines of text ) what new line character i need to add.
I tried \n and /n but these are not working fine. Can anyone help me.If i need to show java string in a html text area
with new lines(that is 2 -3 lines of text ) what new
line character i need to add.
I tried \n and /n but these are not working fine. Can
anyone help me.HTML ignores line breaks. You will need to use markup (<br>) to force a new line. -
How to print new line in webdynpro
Friends,
I want to print a success message in new line, the below shown is a one singe line and want to split two lines.
I used this:
wdComponentAPI.getMessageManager().reportSuccess("Example : this is the test message i would like to print in two lines, some how it is not working please help me how to "+
"/n/n print this in two new lines.")
when i execute the above code it is displaying on screen as succsess message as below shown in one line:
Example : this is the test message i would like to print in two lines, some how it is not working please help me how to print this in two new lines.
But my requirement expecting some thing below shown:
Example : this is the test message i would like to print in two lines, some how it is not
working please help me how to print this in two new lines.really? how? Ó.o
-
How to write this logic in EL expression ? (new line characters in string
iam using JSTL EL expression in my JSP.
iam printing a string in JSP as ${vobject.rmessage} where rmessage is a string .
problem is i want to identify the newline characters in the above rmessage string and print the line break <br> in html where ever the new lines character is present in the string.
How should i write an EL expression for the above.
Can anyone please guide me on writing EL expression for the above problem?Several ways. You can wrap the output with <pre> tags. You can apply CSS property white-space: pre; to the element. You can use String#replaceAll() in the Java code to replace each occurence of "\r\n" by "<br>".
-
Having problems PrintWriter and new lines in a string
I apologise if this topic is in the wrong place, but this is my first time asking on these forums.
At the moment I have a window with an output text area which I want to store the contents of into a file. I use getText() to store the contents to a string, and then write the string to a file using a BufferedWriter. the code is as follows:
BufferedWriter out = new BufferedWriter(new FileWriter(file));
String contents = output.getText();
out.write(contents);
out.close();The file-name is specified by a FileChooser. All of this works fine, and the text is actually written to the file ok, except that there are no line breaks in it (it's just one continual line of text). I have tried the same process using a string containing "test\ntest" to see if it is just a problem getting the contents of the text area, however it still gives me the same problem.
Any help on this would be much appreciated.Take a look at PrintWriter.
o See if you can wrap it around a BufferedWriter. (It
may alrady BE one.)
o Use it's .println(...) method.That'll still make it appear as one line though. The one-and-only "line" will have the correct platform-specific line terminator (\r\n I suppose), but the string he is writing has embedded \n characters in it, which he is expecting to show up as new lines.
The OP needs to realize that there really aren't any such thing as "lines". It's all up to the software rendering the text to treat "newline" characters/sequences special. If you were to open that file with a different tool (not Notepad, which only recognizes \r\n as newline sequences), it may display it the way you are expecting.
Or, you'll have to parse the text and convert it to the proper newline sequences before you write it to the file. -
How to print new line using DBMS_OUTPUT package
Hi,
I am trying to print a new line using DBMS_OUTPUT package. but it do not print the new line.
set serveroutput on size 200000
set feedback on
BEGIN
DBMS_OUTPUT.PUT_LINE('First Line');
DBMS_OUTPUT.PUT_LINE('');
DBMS_OUTPUT.PUT_LINE('Second Line');
END;
I expect following output ...
First Line
Second Line
but i got following output....
First Line
Second Line
why DBMS_OUTPUT.PUT_LINE( '); is not printing a new line ?You can try the following:
SQL> ED
Wrote file afiedt.buf
1 BEGIN
2 DBMS_OUTPUT.PUT('ONE LINE...');
3 DBMS_OUTPUT.PUT('SECOND LINE...');
4 DBMS_OUTPUT.NEW_LINE;
5 DBMS_OUTPUT.PUT_LINE('THIRD LINE WITH NEW LINE...');
6 DBMS_OUTPUT.PUT('TEST');
7 DBMS_OUTPUT.NEW_LINE;
8 DBMS_OUTPUT.PUT_LINE('FOURTH LINE'||CHR(10)||'EXAMPLE');
9 DBMS_OUTPUT.PUT_LINE(CHR(10));
10 DBMS_OUTPUT.PUT_LINE('FIFTH LINE');
11* END;
SQL> /
ONE LINE...SECOND LINE...
THIRD LINE WITH NEW LINE...
TEST
FOURTH LINE
EXAMPLE
FIFTH LINE
PL/SQL procedure successfully completed.Documentation:
http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_output.htm#i1000062 -
How to Print new line in Acrobat SDK?
I was use "\n" in end of string in PDETextAdd, but its doesn't go for new line.Any one help me pls...
You have to place very single line separately, there is no newline function
in PDETextAdd.
Karl Heinz Kremer
PDF Acrobatics Without a Net
PDF Software Development, Training and More...
[email protected]
http://www.khkonsulting.com -
Tab going to a new line when end of line is reached
In most text editors, when you hold the tab key down, the cursor goes from tab stop to tab stop across the line. When end of the line is reached, the cursor goes to the next line, again goes from tab stop to tab stop on the new line, and so on. You end up with multiple lines.
In TLF, with tabStops set, holding the tab key down, the cursor goes from tab stop to tab stop across the line. But when the cursor reaches the end of the line, it doesn't go to the next line. The cursor stays at the end of the line while more tab characters are inserted into the text flow. There is always only one line.
Is there a way for TLF to have the tab key go to the next line when the cursor reaches the end of the line?
Thanks for the info.
WillThank you very much for the update.
We also discovered that, any line which has the previous line ending in a tab, any leading tabs will not show. For example (all in the same <p>):
Line one ...<tab/>
<tab/>Line two
The leading tab on line two will not display. If the previous line does not end with <tab/>, then the leading tab on the following line shows. Is this related?
Also, will the fix come in a 2.x update? Any time frame?
Thanks again for the info.
Will
Maybe you are looking for
-
I need the Adobe Flash Player version 11.1.102.64plug in on my MacAir to view Ustream videos. Adobe message says the version is for Intel-based Macs with Safari; also says that I "may have to temporarily disable antivirus software. is it safe to down
-
How to populate a table based on a row selection from another table.
Hi, i just started to use ADF BC and Faces. Could some one help me or point me a solution on the following scenario . By using a search component , a table is being displayed as a search result. If i select any row in the resulted table , i need to p
-
I deleted my mac app store and now I don't know how to get it back? What do I do?
Hello, I recently tried to download a game from the app store and upon completion of the download I got an error regarding something to do with a "hash". Anyhow upon further researching on how to fix it, I found a solution which told me to download a
-
Java client for calling a XI web service
Hello, does anyone have created a Java client with Apache Axis? I tried it and it works for web service which aren't provided by SAP XI, but if I use to call a XI web service something went wrong. The XI web service works. I tested it with XML Spy. I
-
Which printer is better for a MacBook Pro: Epson 2540 or HP 5520?
Looking to purchase a MBP and so will my roommate. We were wondering if there is a significant advantage of one over the other. The only difference I noted was that the Epson was able to connect directly through an ethernet port but I don't know how