How to print 3 rows in same line in to smartforms
Hi all experts and seniors.....
I want to print three records in a same row of layout e.x
No. Date Qty No. Date Qty No. Date Qty
1 2007 10 2 2007 20 3 2007 15
4 2007 12 5 2007 21 6 2007 25
thanx in advance
Hi,
For not to print blank lines create one paragraph format and in that parafraph there is a option no blnak lines.Tick that check box.
Hope this helps you.
Thanks
Phani
Similar Messages
-
Printing everything on same line
Hi all,
I want to write text on a text File in a formatted manner, such that there is line break after every line.The problem I am facing is that it print everything on same line. When we use "/n" it generates a dummy character. We are using FileWriter
String s="Hello"+"\n"+"Everybody";
FileWriter f=new FileWriter("abc.txt",true);
f.write(s);
f.close();
I want every time this code is runs it should print sentences on different line.Then I would recommend that you wrap a PrintWriter around your FileWriter and use its methods named println(), then you won't have to worry about newlines yourself. Since a newline is different depending on what OS you run your program on, that is a safer approach than just typing "\n" (which only works as newlines on Unix type OS's btw, on Windows it comes out as garbage when viewd in for example Notepad since Windows uses "\r\n" for newline)
Like this (reusing your code)
FileWriter fw = new FileWriter("abc.txt",true);
PrintWriter pw = new PrintWriter(fw);
pw.println("Hello");
pw.println("Everybody");
pw.close();Another alternative is to use System.getProperty("line.separator") instead of "\n" to make it work on all platforms.
HTH,
Fredrik -
Printing Strings on same line questions
I need to know how to print the same number of _ (underscores) as there are letters in a given string. I already have the int of the number of characters in the string but how do i use that to print the same number of underscores in ONE line, not vertically. responses are appreciated.
In your loop that prints the underscores, use System.out.print("_"), rather than System.out.println("_"). Read the javadocs to see the difference between these two methods.
-
SAPscript address name1 and name2 - print on the same line
I want to print name1 and name2 on the same line in an address on a check. Does anyone know how to do that ? I am usign the ADDRESS SAPscript command.
The ADDRESS command allows you to format according to different countries postal formats. If you want to put two lines in one, I don't think you can use the ADDRESS command, but will have to format it yourself.
Rob -
Is there a way to print over the same line of text?
Hey everyone, does anyone know if it's possible to write over the same line in a console window? I am formatting a diskette an currently it is going:
1 percent complete
2 percent complete
3 percent complete
4 percent complete
5 percent complete
I am currently doing:
System.out.println(bufferedReader.readLine());
to display this .. is there anyway to write over and over on the same line?
Thanks again.I just thought of something!!! Try this:
System.out.println("When the zeros have printed twenty times the disk has been formatted\n");
System.out.println("|-----------------------------------|"\n)
Then add the zeros to the line underneath it as it formats. This will give a progress bar effect. The zeros, when completely done, should fill up the whole |---| segment.
Hope this helps.
Virum -
Sapscript : Printing Text In same line
Hi Friends,
I have created 2 standard text.
I want to print the follwing in the same line -
First standard text + <A hard coded value> + Second standard text.
<b> I have coded like this -</b>
/: INCLUDE SLP OBJECT TEXT ID ST LANGUAGE ZH
= : 999
/: INCLUDE YEARS OBJECT TEXT ID ST LANGUAGE ZH
First two are coming in the same line but third one is coming in second line.
Please suggest.
Regards
KishorHii
'=:' works but try it by increasing your window size
otherwise use READ_TEXT fm
You pass it the Text Identification Details
and it will retrieve the texts into the internal table (IT_TEXTS).
Internal table to store standard texts
DATA: IT_TEXTS like T_LINE occurs o with header line.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id = "Text ID
language = "Laguage
name = "Text name
object = "text object
ARCHIVE_HANDLE = 0
IMPORTING
HEADER =
tables
lines = IT_TEXTS "Internal table
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
The main inputs for the FM are Text name, Language, Text ID and Text object and can be located using the following procedure.
<b>Step 1 Display the desired text with transaction (i.e. ME23)
Step 2 Show long text for a particular text (i.e. Deliver To)
Step 3 Select Header from the Goto menu (Goto->Header). The following screen should appear displaying info needed to retrieve text using the READ_TEXT function module (Text name, Language, Text ID, Text object)</b>
Regards
Naresh -
when I type a document and try to save it, there are black lines over my sentences, as if it had been highlighted, and that's how it prints out, just black lines
Hi Vickey, S,
Sorry for the delay in response. Is it happening with all the files?
Also, please write the steps you are taking to type in the document.
You might try uninstalling and re installing the Reader in case it is happening with all the files.
URL to install the Adobe Reader is Adobe - Adobe Reader download - All versions
Thanks,
Vikrantt Singh -
Column printing on the same line in reports
guys,
i have a report with lets say n no. of columns. Now i want to display column 1 and 2 on the same line, i.e without giving a line break (given the fact that my report is page wise and not tabular). Can i do that? If so, then how?
Any help will be highly appreciated. Kindly reply asapHi Mike,
Sorry, I should have realized you were using LabVIEW's HTML VIs - and it doesn't look like they provide for Table "Nesting" (at least through 7.1)!
Here's a couple of VIs that might help you out. Util.HTML.Table builds the HTML for a table. SideBySide.vi uses this Util to embed two tables into an HTML Report.
I whipped these up just for you - so they may need "polishing". Should you need to fine-tune the table-appearance, I'm afraid you're on your own, though there's lots of help on the web. Don't worry, HTML is pretty easy - and you'll find a nice HTML resource here.
Cheers!
Message Edited by tbd on 03-05-2007 12:47 AM
"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
Attachments:
Util.HTML.Table.vi 63 KB
SideBySide.vi 68 KB -
Tabular report, how to split row into two lines per record
Hi, I have a tabular report based on a collection. The collection has 15 fields and appears horizontally across the screen. I would like to have a break after the 5th column so that each row is on two lines instead of one. Is this possible...any information would be helpful.
a shortened query is: and I would like the break to be between c028 and c029.
thanks
Karen
Select apex_item.select_list_from_lov_xl
(28,
c028,
'GEARS',
'style="width:200px;background-color:#FBEC5D; "'
|| 'onchange="f_set_casc_gear(this,f29_'
|| LPAD (seq_id, 4, '0')
|| ')"',
'YES',
'0',
'- Select Gear -',
'f28_' || LPAD (seq_id, 4, '0'),
NULL,
'NO'
) gear_code,
apex_item.select_list_from_query(29,
c029,
'select lma_desc e, lma_code r
from lobster_mgmt_area
where 1 in (select 1 from gears where gear_code = '
||nvl(c028,0)
||' AND (type_code in (''005'') and category_code in (''160'')) OR ('
||nvl(c028,0)
||' in (''130'')) ) order by lma_code ',
'style="width:75px"',
'YES',
'0',
'- Select -',
'f29_' || LPAD (seq_id, 4, '0'),
NULL,
'NO') lma_code,
apex_item.text
(30,
c030,
6,
NULL,
'style="width:50px;background-color:#FBEC5D;"'
) gear_quantity
from collections where collection_name = 'EFFORT_C'Hello Karen,
>> and each field needs to be updateble ( concatenating two fields does not allow for that).
Did you notice the ‘<br />’ component, as part of the columns concatenations?
The following example is using the same principle – every two updatable column, from the employees table, are sharing the same tabular form row - http://htmldb.oracle.com/pls/otn/f?p=22710:420 . The report query is:
select apex_item.text(10,first_name)||'<br />'||apex_item.text(11,last_name) col01,
apex_item.text(12,phone_number)||'<br />'||apex_item.text(13,email) col02,
apex_item.text(14,salary)||'<br />'||apex_item.text(15,commission) col03
from employeesThe same principle is being used to define custom headings.
Hope this time it will be more clear.
Regards,
Arie. -
How to identfy rows with same column value
Hi
I have a table student
id ( pkey)
name
class
marks
i need to check the existence of duplicate values like
say the values are :
id name class marks
1 alan 6 85
2 victor 4 97
3 alan 6 85
i need to know if there is any matching row in the table --- like in this case id=1 and id=3 have same value for all the columns except for id .
so the result shud tell me the ids which have duplicate values for name , class , marks and also those ids for which there is no duplicacy
for id= 1 i see that id= 3 has same values
and id=2 has no duplicates
how do i show it ??
The result i expect is
name class marks count
alan 6 85 2
victor 4 97 1
Message was edited by:
SHUBHEMP
id name class marks
1 alan 6 85
2 victor 4 97
3 alan 6 85
You can use a self join to pull out the data which are almost duplicate without a column values here in this example without id the first and third records are duplicate.
select e.id,e.name,e.class,e.marks from EMP e,EMP d where e.name=d.ename and e.class=d.class and e.marks=d.marks and e.id<>d.id; -
How to print all the same color events together?
I am wanting to print off a chore schedule and have all of the blue tasks print off together, all of the green tasks printed together, ectra.
It all looks good on the screen with all like colored events grouped together, but when I print it off the events are in random order.
How can I get ical to print off all of these events in the order that they appear on the screen?
I am using ical 2.0.3.I am pretty new to this. How do I calibrate it?
I am not sure what a command workstation is. I have tried different choices in the properties of the printer and it doesn't change anything for the better. Some make the graphics worse. -
How to: print selected pages, same pages, odd pages on a book?
hi,
about book:
how can I print only pages that I want to?
Like selected pages, odds pages or only that I want?
How can I print front-back sheet?
Thank you[Jongware] wrote:
I don't think it's possible to set the page range of a Book.printPreferences
Theoretically it ought to be possible. Can't test for myself now; what does happen when you set the pageRange to overlapping sub-files?
I've just tried it with CS3. It might have been implemented in later versions.
In the print Book dialogue the page range field is disabled. You cannot enter anything there.
If you try to do it with a script it says that printPreferences is read only. -
How to print text in two lines using REUSE_ALV_LIST_DISPLAY
hai gurus,
i want to print the heading of the column in two lines using the REUSE_ALV_LIST_DISPLAY fucntion module
fro example if column is for DOCUMENT TYPE
DOCUMENT TYPE
shoudl be printed as
DOCUMENT
TYPE
regards
afzalLet me know if this helps...I don't know why the formatting is not working...
<MODIFIED BY MODERATOR - RESPECT THE 2,500 CHARS LIMIT>
Edited by: Sourav Bhaduri on Jan 15, 2010 2:37 AM
Edited by: Sourav Bhaduri on Jan 15, 2010 2:42 AM
Edited by: Alvaro Tejada Galindo on Jan 14, 2010 5:58 PM -
How to print something the same in color as black and white?
I have a gray box that I set as black and then set the tint down to 20%. When I print this in color it prints with a pink tone. When I print it in black and white it prints correctly. Any advice?
I am pretty new to this. How do I calibrate it?
I am not sure what a command workstation is. I have tried different choices in the properties of the printer and it doesn't change anything for the better. Some make the graphics worse. -
How to protect a text from line break in smartforms
Hi Gurus,
How to protect line break in a text element of smartforms. Text in that line is printing exactly 70 characters. I want the text to be printed fully till the size of the window. How to stop this automatic line break.
Regards,
Rithika.What I have done may be helpful, so here are the details:
I had a table of text values, so I converted this to a string with concatenate, then string to a long character field, then used RKD_WORD_WRAP to put into table of 132 characters. Then I constructed a table of type tline by looping at my RKD_WORD_WRAP output, and utilized SAVE_TEXT to temporarily store a TEXT entry, like you would save with SO10, saving my desired paragraph format into TDFORMAT field and inserting any necessary character format commands into the text.
In my SmartForm, I then have dynamic text processing pointing to the internal table fieldnames containing tdname, tdid, tdobject, tdspras of what I saved. This allows SmartForms to utilize the full width of the window and optimize text output, based on window width, font, scale, paragraph format, character format, etc. These text identifier values are passed as part of my internal table via the SmartForms interface.
At the end of SmartForms processing, I loop at my internal table and utilize DELETE_TEXT to remove the temporary texts that I created for this set of output.
To avoid page breaks in my text, I put my output for a "block" of data into a folder (see the SmartForms folder feature). I have page protection on the folder...that way, SmartForms examines the length of the folder content and decides whether a page break should occur before any output for my block of data begins. My block of data contains a few data elements over 5 rows of output followed by two separate dynamic texts of various lengths. If the entire block won't fit on the remaining part of a page, page-break occurs first.
Maybe you are looking for
-
Error Message: Could not read this files because the plugin could not recognise the file
It wont let me open a file I saved yesterday? What does this error message mean & how do I fix it?
-
Error when trying to add a hint to inner query in WHERE clause
I have a form where the WHERE clause in a block starts like: where seqno in (select seqno from nddf n, restriction r... I need to add a hint to the inner query like following: where seqno in (select /*+ ORDERED */ seqno from nddf n, restriction r...
-
Dear All, i want to use a single click to link two queries in the WAD. I have created the Jump targets etc. and the context menu works fine (with Goto). I believe it is possible to have the link via a single click (Left mouse button) for jump to anot
-
500 Pre-Order Bonus Points Missing
I have several games I've pre-ordered and picked up this year but I can't seem to find the bonus points and I can't look back more than 90 days. The most recent is COD: MW but there have been others. I have GCU and have followed the rules. Can som
-
List item tags li not closing in HTML export
Can anyone explain what triggers list items <li> to close in HTML exported from InDesign CC? I have bulleted and numbered lists followed by paragraphs and headings, but InDesing is exporting everything following the last list item inside of the last