How to Add Carriage Return After PageBreak using XSL code?
Hi,
I have created one RTF Template for Check printing. My requirement is to print check on next page if total number of invoices exceeds certain value.
I achieved this and used below condition in my RTF Template.
<xsl:if xdofo:ctx="inblock" test="count($invLines)>=$lpp"><xsl:attribute name="break-after">page</xsl:attribute></xsl:if>
"lpp" is global variable whose value is set at the start of template. Now i also want to add some space after pagebreak in my Template.
Like presently, check prints at the top of page, so i want to print it after leaving 9-10 lines blank.
Can anyone please help me to achieve this?
Thanks
Amit
Hi,
I tried below syntax but its working only for first page, its not giving space for second page
<xsl:if xdofo:ctx="inblock" test="count($invLines)>$lpp"><xsl:attribute name='space-after'>700pt</xsl:attribute></xsl:if>
I want to combine it with page-break. Like i need specific space only after page break. I tried to combine both, but its not working. Any inputs on these?
<xsl:if xdofo:ctx="inblock" test="count($invLines)>$lpp"><xsl:attribute name='space-after'>100pt</xsl:attribute>
<xsl:attribute name="break-after">page</xsl:attribute></xsl:if>
Thanks
Amit
Edited by: user11982820 on Apr 14, 2010 5:52 AM
Similar Messages
-
Greetings all
I often download lyrics to songs and often they copy into MS Word without hard carriage returns-so they look as one huge paragraph.
I think the solution is that I must first find out what escape characters are in there, then search and replace with maybe 0A, 0D hex, or something like this.
Can you tell me first, how to view the actual characters in Terminal or any other program, then how to search and replace.
can this be done in Text Edit, or Ms Word?
Thanks much.Check out the thread at
http://hints.macworld.com/article.php?story=20031018164326986
Or: from http://sed.sourceforge.net/sed1line.txt :
Using the Unix stream editor sed (type man sed in Terminal for usage):
# IN UNIX ENVIRONMENT: convert DOS newlines (CR/LF) to Unix format.
sed 's/.$//' # assumes that all lines end with CR/LF
sed 's/^M$//' # in bash/tcsh, press Ctrl-V then Ctrl-M
sed 's/\x0D$//' # works on ssed, gsed 3.02.80 or higher
# IN UNIX ENVIRONMENT: convert Unix newlines (LF) to DOS format.
sed "s/$/`echo -e \\\r`/" # command line under ksh
sed 's/$'"/`echo \\\r`/" # command line under bash
sed "s/$/`echo \\\r`/" # command line under zsh
sed 's/$/\r/' # gsed 3.02.80 or higher
# IN DOS ENVIRONMENT: convert Unix newlines (LF) to DOS format.
sed "s/$//" # method 1
sed -n p # method 2
# IN DOS ENVIRONMENT: convert DOS newlines (CR/LF) to Unix format.
# Can only be done with UnxUtils sed, version 4.0.7 or higher. The
# UnxUtils version can be identified by the custom "--text" switch
# which appears when you use the "--help" switch. Otherwise, changing
# DOS newlines to Unix newlines cannot be done with sed in a DOS
# environment. Use "tr" instead.
sed "s/\r//" infile >outfile # UnxUtils sed v4.0.7 or higher
tr -d \r <infile >outfile # GNU tr version 1.22 or higher -
I have a macro that copies data from a Target workbook then pastes the data into a destination workbook. I then wish to use lookups in the destination workbook to view specific data from the pasted range of data on a separate sheet.
The problem is, the cells that contain numbers from the pasted data have the green dogeared error flags associated with the cell. The only way I can make a lookup function work, is to go to each cell and manually enter a carriage return after each entry.
The code for the macro is given below. What can be done so that the pasted data contains no errors associated with the number cells? Or can a second macro be written to clean the data. If so can you help me out? Thanks in advance.
Kindest Regards
Sub ImportData()
' ImportData Macro allows user to select an Excel workbook (i.e. Orchestrate Excel Output),
' then copy & paste it into the MediaSpreadsheet.
Dim wbk As Workbook
Set wbk = Application.Run("MediaSpreadsheet_1.0.xlsm!OpenFile")
If wbk Is Nothing Then
Beep
Exit Sub
End If
Set wbk = ActiveWorkbook
Range("A9:S116").Copy
Workbooks("MediaSpreadsheet_1.0.xlsm").Activate
Sheets("OrchestrateData").Select
Range("A1").Select
ActiveSheet.Paste
With Selection.Font
.ColorIndex = xlAutomatic
.TintAndShade = 0
End With
With Selection.Interior
.Pattern = xlNone
.TintAndShade = 0
.PatternTintAndShade = 0
End With
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
Selection.Borders(xlEdgeLeft).LineStyle = xlNone
Selection.Borders(xlEdgeTop).LineStyle = xlNone
Selection.Borders(xlEdgeBottom).LineStyle = xlNone
Selection.Borders(xlEdgeRight).LineStyle = xlNone
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
wbk.Close
Sheets("MediaSchedule").Select
End Sub
DAPulliam64Hi DAPAugust64,
The green "dogeared error flags" of the cells means that you paste numbers in these cells, but they're formated as Text.
So you need to change the cells back to the correct format so that the lookup function works fine. You can simply call this method after pasting:
ActiveSheet.Cells(1, 1).NumberFormat = "General"
ActiveSheet.Cells(1, 1) = ActiveSheet.Cells(1, 1).Text
Or use PasteSpecial method to paste the numbers as well as it's format:
https://msdn.microsoft.com/en-us/library/office/ff837425.aspx
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to add new tab after reason for rejection tab using tcode va01
Hello,
how to add new tab after reason for rejection tab using tcode va01.Hi,
You can check this link...
Hope it will be helpful to you.
[https://forums.sdn.sap.com/click.jspa?searchID=23016273&messageID=6825861]
[http://www.sapdevelopment.co.uk/enhance/fexits.htm]
-Maharshi
Edited by: Maharshi Vyas on Mar 3, 2009 12:45 PM -
Add carriage return in XML file
Hi,
I found a topic that correspond to my requirement :
[Add carriage return in XML file|https://wiki.sdn.sap.com/wiki/display/XI/HowtoappendCarriageReturnintheendofeachtagofxml+file]
But i don't know where created this udf, which input parameter pass?
Thank you for your help.Hi Frantzy,
The link does not give enough explanation. What I am assuming is if you have xml string in one field then if you need to add new line after each tag then you can follow that.
If you want a udf where you want to insert a new line use this udf:
Create a Value UDF with one input argument 'a' and name the udf as addnewline. Then add this code:
Imports: java.*;
String lines;
lines = "";
lines = lines.concat(a + '\n' );
return lines;
Then where ever you want a new line just add this udf in your mapping. If you want a new line for 10 fields then you can put in all the 10 fields.
Example:
Source field --> logic --> udf (addnewline) --> target.
So after logic if you have the value as 123 then in the target you will see 123 followed by a carriage return.
Regards,
---Satish -
HT5654 how to add videos to the ipad using the latest version of itunes
how to add videos to the ipad using the latest version of itunes ?
Hello zaraa90,
After reviewing your post, I have located an article that can help with syncing content. It contains a number of troubleshooting steps and helpful advice for the issue you are experiencing:
Sync your iPhone, iPad and iPod with iTunes using USB
Thank you for contributing to Apple Support Communities.
Cheers,
BobbyD -
How to add an image over another using af:image
How to add an image over another using af:image
Thanks,
Veerai have a image which is black strip. i have added that to af:image
<af:image source="image1" id="image" />
on the black strip, i need to add company logo.
how to achieve it.
Thanks,
Veera. -
How to add Substitution fields after prerequisite (in step)
Hi,
Can anybody help me how to add substituion fields after prerequisites.Any configuration steps would be helpful except sap help.com.
Thanks®ards,Hi,
I am sorry , i hope, my question was not clear to u. In OBBH i have created Substitution, Then created prerequistites, For that prerequisites i want to add substitutions(for fulfilled requirements).
Substitution
step
prerequisite
substitution fields
HOw to create the aboue substituion fields, or any configuration could you please provide me.
Thanks in advance,
Veena -
How to add target to jmsSystemResource MBean using JMX
Does anybody know how to add target to jmsSystemResource MBean using JMX in WebLogic 9.0?(I am not using WSLT) I always get "NoSuchMethodException":
[jmsServer] Caused by: java.lang.NoSuchMethodException: addTarget(weblogic.management.configuration.
TargetMBean,) for com.bea:Name=admin01DefaultJMSServer,Type=JMSSystemResourcego to the object which u want to compare
go to->version management->select the TR request no->and select remote comparision there->and give the system where u need to compare this object
and next press compare
hope it will work
cheer
s.janagar -
How to add discussions to Collaboration Room using Rooms API
Hi All,
How to add discussions to any room using the Rooms API?
I looked at the NW04s javadocs, but could not find which would help?
Any pointers will be appreciated.
Regards,SandipHi All,
Any help!
Any help from SAP? Are the discussion APIs available?
Any input is appreciated. Thanks
Regards
Sandip
Message was edited by:
Sandip Agarwal -
How to add one column to the standard t.code : CAT2.
Hi,
How to add one column to the standard t.code : CAT2.
thanksHi Chinna
see the enhancements by using SMOD <b>CATS0007</b> , or <b>CATS0012</b> and create a project using CMOD and you can implement your requirement.
Hope This Info Helps YOU.
<i>Reward Points If It Helps YOU.</i>
Regards,
Raghav -
How to add the new dep area in existing cod
Dear all,
how to add the new dep area in existing cod we are planing to implement the IFRS by using leading ledger and non leading ledger present we are using OL leading ledger
present we are using dep area 01 ,15
how to achive the parallel accounting in asset accounting how to add new dep area 30 in existing COD
if any document plz refer meHi Bhayyapu,
Please refer to the links given below.
New Depreciation area
Adding a New Depreciation Area to Existing Assets - Financial Accounting (FI) - SAP Library
Hope this will help you.
Regards
Eugene -
How do I produce an excel file using java code
How do i produce an excel file using java code.
If it is possible would ne one have ne source code as an example.
I have tried looking up information on outputing the information to a *.csv file but unfortunality i have had no luck in finding any information. To be exact ne source code.
Thanks
LeeThat's what I use and I'd be the first to admit that it's very messy. But it works. Go use Google and see what else you can find.
-
How to increase TD width in SAP using HTML code in mail body
Dear guru.
how to increase TD width in SAP using HTML code in mail body
Sample Code :
CONCATENATE '<tr height= "3%"> <td style="background-color:#CCC8AA;" style="font = 12.0" colspan = 3 >' WA_EIS_TOT-DESC '</td>'
INTO WA_OBJTXT-LINE separated by space.
APPEND WA_OBJTXT TO T_OBJTXT.
CLEAR: WA_OBJTXT.
Regards,
Dharmin ShahHi Dharmin,
Did you try something like
CONCATENATE '<tr height= "3%"> <td height="23" width="84" style="background-color:#CCC8AA;" style="font = 12.0" colspan = 3 >' WA_EIS_TOT-DESC '</td>'
Regards,
Soundarya. -
How is add/insert jpeg/gif files on wiki (code gallery)
Hi;
I prepared new wiki-code gallery page. I must insert/add jpeg/gif files on my page. But I dont know How is add/insert jpeg/gif files on wiki (code gallery).
Please help me.
Thanks.
http://wiki.sdn.sap.com/wiki/display/Snippets/NewTimeDomainandConversionRoutineforTotalTimeHi;
Mr Moshe Naveh helped me. He sended me new template page.
I again prepared my wiki with new template. ( http://wiki.sdn.sap.com/wiki/pages/createpage-entervariables.action?spaceKey=stage&templateId=113147905 ) I added jpeg files on new wiki page.
Then He moved my new page.
Thanks him.
Best regards.
Maybe you are looking for
-
Ringtones and email notifications!
I just got the droid razr yesterday (it's also my first smartphone) and I can't figure out how to get ringtones! My husband has a plain phone and sent me ringtones but when I open them they play the music but there is nothing under options saying use
-
While playing a game the touchpad arrow does not align correctly
The arrow will be shown in one area and the placement will be in another area. I want the aroow and the palcement to be in the same palce. I have gone to the control panel to see if I could adjust he settings but no go. What can I do
-
Pl find the error in ws to file scenario
all the information in IR and Id is given . <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP:Body> <SOAP:Fault> <faultcode>SOAP:Server</faultcode> <faultstring>System Error</fau
-
In Yahoo Mail, Firefox asks me to verify Password many times a day
Is this a Mozilla or Yahoo problem? Instructions say clear cache but I can find No way to clear just the cache without deleting the cookies. I want the cookies to stay.....
-
Can't import .m4p iTunes song to a diff appl
I bought my first song from iTunes, and it has a .m4p extension. I can't import it into a different application (read iPod rip-off). Songs with .wav, .wma and .mp3 can be imported. Advice?